v22

latestOpenAPI 3.1.0raw.githubusercontent.com2025-10-15361989.5 KB

List examples for a model

List example predictions made using the model. These are predictions that were saved by the model author as illustrative examples of the model's capabilities.

If you want all the examples for a model, use this operation.

If you just want the model's default example, you can use the models.get operation instead, which includes a default_example object.

Example cURL request:

curl -s \
  -H "Authorization: Bearer $REPLICATE_API_TOKEN" \
  https://api.replicate.com/v1/models/replicate/hello-world/examples

The response will be a pagination object containing a list of example predictions:

{
  "next": "https://api.replicate.com/v1/models/replicate/hello-world/examples?cursor=...",
  "previous": "https://api.replicate.com/v1/models/replicate/hello-world/examples?cursor=...",
  "results": [...]
}

Each item in the results list is a prediction object.

get/models/{model_owner}/{model_name}/examples

Path parameters

model_ownerstring required

The name of the user or organization that owns the model.

model_namestring required

The name of the model.

Response

Success

nextstring nullable

A URL pointing to the next page of prediction objects, if any

previousstring nullable

A URL pointing to the previous page of prediction objects, if any