Get a model version
GET
/v1/models/{model_owner}/{model_name}/versions/{version_id}
curl -s \
-H "Authorization: Token <paste-your-token-here>" \
https://api.replicate.com/v1/models/replicate/hello-world/versions/5c7d5dc6dd8bf75c1acaa8565735e7986bc5b66206b55cca93cb72c9bf15ccaa
{
"id": "5c7d5dc6dd8bf75c1acaa8565735e7986bc5b66206b55cca93cb72c9bf15ccaa",
"created_at": "2022-04-26T19:29:04.418669Z",
"cog_version": "0.3.0",
"openapi_schema": {...}
}
openapi_schema
property.openapi_schema.components.schemas.Input
property for the replicate/hello-world model looks like this:{
"type": "object",
"title": "Input",
"required": [
"text"
],
"properties": {
"text": {
"x-order": 0,
"type": "string",
"title": "Text",
"description": "Text to prefix with 'hello '"
}
}
}
openapi_schema.components.schemas.Output
property for the replicate/hello-world model looks like this:{
"type": "string",
"title": "Output"
}
Request Request Example
Shell
JavaScript
Java
Swift
curl --location --request GET 'https://api.replicate.com/v1/models///versions/?members&reference&Type&_postman_listIndexKey=key&_postman_listAllowsMultipleValues'
Response Response Example
{}
Request
Path Params
model_owner
string
required
model_name
string
required
version_id
string
required
Responses
Modified at 2023-12-22 03:33:22