---
title: "Get a model version"
method: GET
path: "/models/{model_owner}/{model_name}/versions/{version_id}"
---

# Get a model version

`GET /models/{model_owner}/{model_name}/versions/{version_id}`

Example cURL request:

```console
curl -s \
  -H "Authorization: Bearer $REPLICATE_API_TOKEN" \
  https://api.replicate.com/v1/models/replicate/hello-world/versions/5c7d5dc6dd8bf75c1acaa8565735e7986bc5b66206b55cca93cb72c9bf15ccaa
```

The response will be the version object:

```json
{
  "id": "5c7d5dc6dd8bf75c1acaa8565735e7986bc5b66206b55cca93cb72c9bf15ccaa",
  "created_at": "2022-04-26T19:29:04.418669Z",
  "cog_version": "0.3.0",
  "openapi_schema": {...}
}
```

Every model describes its inputs and outputs with [OpenAPI Schema Objects](https://spec.openapis.org/oas/latest.html#schemaObject) in the `openapi_schema` property.

The `openapi_schema.components.schemas.Input` property for the [replicate/hello-world](https://replicate.com/replicate/hello-world) model looks like this:

```json
{
  "type": "object",
  "title": "Input",
  "required": [
    "text"
  ],
  "properties": {
    "text": {
      "x-order": 0,
      "type": "string",
      "title": "Text",
      "description": "Text to prefix with 'hello '"
    }
  }
}
```

The `openapi_schema.components.schemas.Output` property for the [replicate/hello-world](https://replicate.com/replicate/hello-world) model looks like this:

```json
{
  "type": "string",
  "title": "Output"
}
```

For more details, see the docs on [Cog's supported input and output types](https://github.com/replicate/cog/blob/75b7802219e7cd4cee845e34c4c22139558615d4/docs/python.md#input-and-output-types)

## Path parameters

- `model_owner` string, required
- `model_name` string, required
- `version_id` string, required

## Response `200`

Success

- SchemasVersionResponse
  - `cog_version` string, nullable — The version of Cog used to create this version
  - `created_at` string, date-time — The date and time the version was created
  - `id` string — The ID of the version
  - `openapi_schema` object, nullable — The OpenAPI schema for the model's inputs and outputs

## Changes

- **2025-06-26** `c768f02321ff` — 1 info
  - added the media type `application/json` for the response with the status `200`

[Change history](https://skmtc.dev/replicate/apis/replicate-http-api/changes/models/:model_owner/:model_name/versions/:version_id/get.md)

---

[API](https://skmtc.dev/replicate/apis/replicate-http-api.md) · [All operations](https://skmtc.dev/replicate/apis/replicate-http-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/replicate/replicate-http-api/revisions/7a537f433b0b/schema)
