Need help with your APIs? I offer API discovery, governance & evangelism services. Explore services →
API Evangelist API Evangelist
Discovery
Learnings
Guidance
Toolbox
Alignment
API Evangelist LLC

Replicate Model API

The Model API from Replicate — 5 operation(s) for model.

Replicate Model API is one of 16 APIs that Replicate publishes on the APIs.io network, described by a machine-readable OpenAPI specification and an AsyncAPI event-driven specification.

Tagged areas include Model. The published artifact set on APIs.io includes an OpenAPI specification, API documentation, and an AsyncAPI specification.

This API exposes 7 operations across 5 paths, and defines 2 schemas. It is described by OpenAPI 3.1.0, at version 1.0.0-a1.

Requests are made against a single base URL, https://api.replicate.com/v1.

7 operations 5 paths 2 schemas 2 DELETE3 GET2 POST

Metadata

The identity and technical contract details declared by the specification.

Specification
OpenAPI 3.1.0
API Version
1.0.0-a1
Server
https://api.replicate.com/v1
Authentication
HTTP Bearer
Terms of Service
Resource Areas
1

Authentication & Security 1

Replicate Model API declares 1 security scheme for authenticating requests. It accepts HTTP bearer tokens (All API requests must include a valid API token in the `Authorization` request header. The token must be prefixed by "Bearer", followed by a space and the token value. Example: `Authorization: Bearer r8_Hw***********************************` Find your tokens at https://replicate.com/account/api-tokens ) (bearerAuth). By default, every request must be authenticated.

Paths & Operations 7

Across 5 paths, the API surfaces 7 operations — 2 DELETE, 3 GET, 2 POST. Each is listed below with its method, path, parameters, and response codes.

Model 7
DELETE
/models/{model_owner}/{model_name}
Delete a Model
models.delete 2 params → 204
GET
/models/{model_owner}/{model_name}
Get a Model
models.get 2 params → 200
POST
/models/{model_owner}/{model_name}/predictions
Create a Prediction Using an Official Model
models.predictions.create 3 params body → 201202
GET
/models/{model_owner}/{model_name}/versions
List Model Versions
models.versions.list 2 params → 200
DELETE
/models/{model_owner}/{model_name}/versions/{version_id}
Delete a Model Version
models.versions.delete 3 params → 202
GET
/models/{model_owner}/{model_name}/versions/{version_id}
Get a Model Version
models.versions.get 3 params → 200
POST
/models/{model_owner}/{model_name}/versions/{version_id}/trainings
Create a Training
trainings.create 3 params body → 201

Schemas 2

The contract defines 2 schemas that model the data the API accepts and returns. The most detailed are schemas_training_request (4 properties), schemas_prediction_request (4 properties). Each schema is shown below with its type and property counts.

schemas_prediction_request
object
4 properties 1 required
schemas_training_request
object
4 properties 2 required

Specification

The full machine-readable OpenAPI contract behind this narrative.

Source

replicate-model-api-openapi.yml Raw ↑

Other APIs Replicate publishes across the network.

Replicate Accounts API
Replicate Cancel API
Replicate Collections API
Replicate Deployments API
Replicate Hardware API
Replicate Models API
Replicate Name API
Replicate Owner API
Replicate Predictions API
Replicate Secrets API
Replicate Slug API
Replicate Training API