# Replicate Integration via LowCodeAPI

**Last Updated**: February 11, 2026

## Overview
AI model hosting and inference

**Categories:**
- {'id': 'inference-cloud', 'name': 'Inference Cloud'}

## Base Endpoint
https://api.lowcodeapi.com/replicate

**Important**: Always include the provider name in the URL path after `api.lowcodeapi.com/`

## Authentication
**Type:** TOKEN

**Official Documentation:** https://replicate.com/docs

## URL Format (Important)

LowCodeAPI supports two URL formats. **Always try the New Format first**, then fall back to Old Format if needed.

### New Format (Priority)
- Path parameters stay in the URL path
- Do NOT include path parameters as query parameters
- Example: `https://api.lowcodeapi.com/{provider}/resource/{id}?api_token=XXX`

### Old Format (Fallback)
- Path parameters become query parameters
- Example: `https://api.lowcodeapi.com/{provider}/resource/id?id={id}&api_token=XXX`

### Decision Flow for AI Agents
1. Always use **New Format** first - keep path parameters in the URL path
2. If you get a 404 or error, try **Old Format** with sanitized path
3. Log which format worked for future requests to this provider

## API Categories

## Common Endpoints

### Get a model

**Method:** GET
**LowCodeAPI Path:** /v1/models/{model_owner}/{model_name}

**New Format URL:**
https://api.lowcodeapi.com/replicate/v1/models/{model_owner}/{model_name}?api_token=YOUR_API_TOKEN

**Old Format URL:**
https://api.lowcodeapi.com/replicate/v1/models/model_owner/model_name?model_name={model_name}&model_owner={model_owner}&api_token=YOUR_API_TOKEN

**Path Parameters:**

| Parameter | Type | Description |
|-----------|------|-------------|
| model_name | string |  |
| model_owner | string |  |

**Example Request (New Format):**

```bash
curl -X GET 'https://api.lowcodeapi.com/replicate/v1/models/{model_owner}/{model_name}?api_token=YOUR_API_TOKEN'
```

**Official Documentation:** https://replicate.com/docs/reference/http#models.get

### Get a collection of models

**Method:** GET
**LowCodeAPI Path:** /v1/collections/{collection_slug}

**New Format URL:**
https://api.lowcodeapi.com/replicate/v1/collections/{collection_slug}?api_token=YOUR_API_TOKEN

**Old Format URL:**
https://api.lowcodeapi.com/replicate/v1/collections/collection_slug?collection_slug={collection_slug}&api_token=YOUR_API_TOKEN

**Path Parameters:**

| Parameter | Type | Description |
|-----------|------|-------------|
| collection_slug | string |  |

**Example Request (New Format):**

```bash
curl -X GET 'https://api.lowcodeapi.com/replicate/v1/collections/{collection_slug}?api_token=YOUR_API_TOKEN'
```

**Official Documentation:** https://replicate.com/docs/reference/http#collections.get

### List model versions

**Method:** GET
**LowCodeAPI Path:** /v1/models/{model_owner}/{model_name}/versions

**New Format URL:**
https://api.lowcodeapi.com/replicate/v1/models/{model_owner}/{model_name}/versions?api_token=YOUR_API_TOKEN

**Old Format URL:**
https://api.lowcodeapi.com/replicate/v1/models/model_owner/model_name/versions?model_name={model_name}&model_owner={model_owner}&api_token=YOUR_API_TOKEN

**Path Parameters:**

| Parameter | Type | Description |
|-----------|------|-------------|
| model_name | string |  |
| model_owner | string |  |

**Example Request (New Format):**

```bash
curl -X GET 'https://api.lowcodeapi.com/replicate/v1/models/{model_owner}/{model_name}/versions?api_token=YOUR_API_TOKEN'
```

**Official Documentation:** https://replicate.com/docs/reference/http#models.versions.list

### Delete a model version

**Method:** DELETE
**LowCodeAPI Path:** /v1/models/{model_owner}/{model_name}/versions/{version_id}

**New Format URL:**
https://api.lowcodeapi.com/replicate/v1/models/{model_owner}/{model_name}/versions/{version_id}?api_token=YOUR_API_TOKEN

**Old Format URL:**
https://api.lowcodeapi.com/replicate/v1/models/model_owner/model_name/versions/version_id?model_name={model_name}&model_owner={model_owner}&version_id={version_id}&api_token=YOUR_API_TOKEN

**Path Parameters:**

| Parameter | Type | Description |
|-----------|------|-------------|
| model_name | string |  |
| model_owner | string |  |
| version_id | string |  |

**Example Request (New Format):**

```bash
curl -X DELETE 'https://api.lowcodeapi.com/replicate/v1/models/{model_owner}/{model_name}/versions/{version_id}?api_token=YOUR_API_TOKEN'
```

**Official Documentation:** https://replicate.com/docs/reference/http#models.versions.delete

### List collections of models

**Method:** GET
**LowCodeAPI Path:** /v1/collections

**New Format URL:**
https://api.lowcodeapi.com/replicate/v1/collections?api_token=YOUR_API_TOKEN

**Old Format URL:**
https://api.lowcodeapi.com/replicate/v1/collections?api_token=YOUR_API_TOKEN

**Example Request (New Format):**

```bash
curl -X GET 'https://api.lowcodeapi.com/replicate/v1/collections?api_token=YOUR_API_TOKEN'
```

**Official Documentation:** https://replicate.com/docs/reference/http#collections.list

### Get a model version

**Method:** GET
**LowCodeAPI Path:** /v1/models/{model_owner}/{model_name}/versions/{version_id}

**New Format URL:**
https://api.lowcodeapi.com/replicate/v1/models/{model_owner}/{model_name}/versions/{version_id}?api_token=YOUR_API_TOKEN

**Old Format URL:**
https://api.lowcodeapi.com/replicate/v1/models/model_owner/model_name/versions/version_id?model_name={model_name}&model_owner={model_owner}&version_id={version_id}&api_token=YOUR_API_TOKEN

**Path Parameters:**

| Parameter | Type | Description |
|-----------|------|-------------|
| model_name | string |  |
| model_owner | string |  |
| version_id | string |  |

**Example Request (New Format):**

```bash
curl -X GET 'https://api.lowcodeapi.com/replicate/v1/models/{model_owner}/{model_name}/versions/{version_id}?api_token=YOUR_API_TOKEN'
```

**Official Documentation:** https://replicate.com/docs/reference/http#models.versions.get

### List predictions

**Method:** GET
**LowCodeAPI Path:** /v1/predictions

**New Format URL:**
https://api.lowcodeapi.com/replicate/v1/predictions?api_token=YOUR_API_TOKEN

**Old Format URL:**
https://api.lowcodeapi.com/replicate/v1/predictions?api_token=YOUR_API_TOKEN

**Example Request (New Format):**

```bash
curl -X GET 'https://api.lowcodeapi.com/replicate/v1/predictions?api_token=YOUR_API_TOKEN'
```

**Official Documentation:** https://replicate.com/docs/reference/http#predictions.list

### Create a training

**Method:** POST
**LowCodeAPI Path:** /v1/models/{model_owner}/{model_name}/versions/{version_id}/trainings

**New Format URL:**
https://api.lowcodeapi.com/replicate/v1/models/{model_owner}/{model_name}/versions/{version_id}/trainings?api_token=YOUR_API_TOKEN

**Old Format URL:**
https://api.lowcodeapi.com/replicate/v1/models/model_owner/model_name/versions/version_id/trainings?model_name={model_name}&model_owner={model_owner}&version_id={version_id}&api_token=YOUR_API_TOKEN

**Path Parameters:**

| Parameter | Type | Description |
|-----------|------|-------------|
| model_name | string |  |
| model_owner | string |  |
| version_id | string |  |

**Request Body:**

| Field | Type | Description |
|-------|------|-------------|
| destination | string |  |
| input | object |  |
| webhook | string |  |

**Example Request (New Format):**

```bash
curl -X POST 'https://api.lowcodeapi.com/replicate/v1/models/{model_owner}/{model_name}/versions/{version_id}/trainings?api_token=YOUR_API_TOKEN'
```

**Official Documentation:** https://replicate.com/docs/reference/http#trainings.create

### Create a prediction

**Method:** POST
**LowCodeAPI Path:** /v1/predictions

**New Format URL:**
https://api.lowcodeapi.com/replicate/v1/predictions?api_token=YOUR_API_TOKEN

**Old Format URL:**
https://api.lowcodeapi.com/replicate/v1/predictions?api_token=YOUR_API_TOKEN

**Request Body:**

| Field | Type | Description |
|-------|------|-------------|
| input | object |  |
| version | string |  |
| webhook | string |  |
| webhook_events_filter | array |  |

**Example Request (New Format):**

```bash
curl -X POST 'https://api.lowcodeapi.com/replicate/v1/predictions?api_token=YOUR_API_TOKEN'
```

**Official Documentation:** https://replicate.com/docs/reference/http#predictions.create

### Get a prediction

**Method:** GET
**LowCodeAPI Path:** /v1/predictions/{prediction_id}

**New Format URL:**
https://api.lowcodeapi.com/replicate/v1/predictions/{prediction_id}?api_token=YOUR_API_TOKEN

**Old Format URL:**
https://api.lowcodeapi.com/replicate/v1/predictions/prediction_id?prediction_id={prediction_id}&api_token=YOUR_API_TOKEN

**Path Parameters:**

| Parameter | Type | Description |
|-----------|------|-------------|
| prediction_id | string |  |

**Example Request (New Format):**

```bash
curl -X GET 'https://api.lowcodeapi.com/replicate/v1/predictions/{prediction_id}?api_token=YOUR_API_TOKEN'
```

**Official Documentation:** https://replicate.com/docs/reference/http#predictions.get


## Usage Examples

### Example 1: Basic Chat Completion

Creating a simple text completion or chat message:

```bash
# Create a chat completion - no path parameters needed
curl -X POST "https://api.lowcodeapi.com/replicate/v1/chat/completions?api_token=YOUR_API_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{
    "model": "your-model-name",
    "messages": [
      {"role": "user", "content": "Hello, how can you help me?"}
    ]
  }'

# Response includes generated content
```

### Example 2: Text Generation with Path Parameters

Generating text with specific model settings:

```bash
# Generate content using a specific model
curl -X POST "https://api.lowcodeapi.com/replicate/v1/models/generate?api_token=YOUR_API_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{
    "prompt": "Write a short poem about technology",
    "max_tokens": 100
  }'

# Or if the provider uses model in the path:
curl -X POST "https://api.lowcodeapi.com/replicate/v1/models/{MODEL_ID}:generateContent?api_token=YOUR_API_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{
    "contents": [{"parts": [{"text": "Write a short story"}]}]
  }'
```

### Example 3: List Available Models

```bash
# Get list of available models
curl -X GET "https://api.lowcodeapi.com/replicate/v1/models?api_token=YOUR_API_TOKEN"
```

## Error Handling

LowCodeAPI returns standard HTTP status codes. Common errors:

| Status Code | Description |
|-------------|-------------|
| 200 | Success - Request completed successfully |
| 400 | Bad Request - Invalid parameters or request body |
| 401 | Unauthorized - Invalid or missing API token |
| 403 | Forbidden - Insufficient permissions |
| 404 | Not Found - Endpoint or resource doesn't exist |
| 429 | Too Many Requests - Rate limit exceeded |
| 500 | Server Error - Provider API error |

All error responses include error details:

```json
{
  "data": {
    "error": {
      "message": "Error description",
      "code": "ERROR_CODE"
    }
  }
}
```

## Complete Endpoint Reference

| Endpoint | Method | Category |
|----------|--------|----------|
| Get a model | GET | Models |
| Get a collection of models | GET | Models |
| List model versions | GET | Models |
| Delete a model version | DELETE | Models |
| List collections of models | GET | Models |
| Get a model version | GET | Models |
| List predictions | GET | Predictions |
| Create a training | POST | Models |
| Create a prediction | POST | Predictions |
| Get a prediction | GET | Predictions |
| Cancel a prediction | POST | Predictions |
| List trainings | GET | Trainings |
| Get a training | GET | Trainings |
| Cancel a training | POST | Trainings |
| Get the signing secret for the default webhook | GET | Webhooks |
| Delete a model | DELETE | Models |
| Create a prediction using an official model | POST | Models |
| Create a model | POST | Models |
| Get the authenticated account | GET | Account |
| List models | GET | Models |
| Update a model | PATCH | Models |
| Get model examples | GET | Models |
| Get model readme | GET | Models |
| List deployments | GET | Deployments |
| Create a deployment | POST | Deployments |
| Get a deployment | GET | Deployments |
| Update a deployment | PATCH | Deployments |
| Delete a deployment | DELETE | Deployments |
| Create a deployment prediction | POST | Deployments |
| List files | GET | Files |
| Upload a file | POST | Files |
| Get a file | GET | Files |
| Delete a file | DELETE | Files |
| Download a file | GET | Files |
| List hardware | GET | Hardware |
| Search models | GET | Search |

## API Definition Endpoints

You can fetch the complete API specification for this provider:

**New Format (OpenAPI spec):**
```bash
curl 'https://backend.lowcodeapi.com/replicate/openapi'
```

**Old Format (API definition):**
```bash
curl 'https://backend.lowcodeapi.com/replicate/definition'
```

## Response Format

All responses are wrapped in a `data` key:

```json
{
  "data": {
    // Actual response from provider (object or array)
  }
}
```