Replicate API
    Replicate API
    • List collections of models
      GET
    • Get a collection of models
      GET
    • List available hardware for models
      GET
    • List public models
      GET
    • Create a model
      POST
    • Get a model
      GET
    • List model versions
      GET
    • Delete a model version
      DELETE
    • Get a model version
      GET
    • Create a training
      POST
    • List predictions
      GET
    • Create a prediction
      POST
    • Get a prediction
      GET
    • Cancel a prediction
      POST
    • List trainings
      GET
    • Get a training
      GET
    • Cancel a training
      POST

      List model versions

      GET
      /v1/models/{model_owner}/{model_name}/versions
      Example cURL request:
      curl -s \
        -H "Authorization: Token <paste-your-token-here>" \
        https://api.replicate.com/v1/models/replicate/hello-world/versions
      The response will be a JSON array of model version objects, sorted with the most recent version first:
      {
        "next": null,
        "previous": null,
        "results": [
          {
            "id": "5c7d5dc6dd8bf75c1acaa8565735e7986bc5b66206b55cca93cb72c9bf15ccaa",
            "created_at": "2022-04-26T19:29:04.418669Z",
            "cog_version": "0.3.0",
            "openapi_schema": {...}
          }
        ]
      }
      Request Request Example
      Shell
      JavaScript
      Java
      Swift
      curl --location --request GET 'https://api.replicate.com/v1/models///versions'
      Response Response Example
      {}

      Request

      Authorization
      Provide your bearer token in the
      Authorization
      header when making requests to protected resources.
      Example:
      Authorization: Bearer ********************
      Path Params
      model_owner
      string 
      required
      The name of the user or organization that owns the model.
      model_name
      string 
      required
      The name of the model.

      Responses

      🟢200Success
      application/json
      Body
      object {0}
      Modified at 2023-12-22 03:33:22
      Previous
      Get a model
      Next
      Delete a model version
      Built with