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 trainings

      GET
      /v1/trainings
      Get a paginated list of trainings that you've created. This will include trainings created from the API and the website. It will return 100 records per page.
      Example cURL request:
      curl -s \
        -H "Authorization: Token <paste-your-token-here>" \
        https://api.replicate.com/v1/trainings
      The response will be a paginated JSON array of training objects, sorted with the most recent training first:
      {
        "next": null,
        "previous": null,
        "results": [
          {
            "completed_at": "2023-09-08T16:41:19.826523Z",
            "created_at": "2023-09-08T16:32:57.018467Z",
            "error": null,
            "id": "zz4ibbonubfz7carwiefibzgga",
            "input": {
              "input_images": "https://example.com/my-input-images.zip"
            },
            "metrics": {
              "predict_time": 502.713876
            },
            "output": {
              "version": "...",
              "weights": "..."
            },
            "started_at": "2023-09-08T16:32:57.112647Z",
            "source": "api",
            "status": "succeeded",
            "urls": {
              "get": "https://api.replicate.com/v1/trainings/zz4ibbonubfz7carwiefibzgga",
              "cancel": "https://api.replicate.com/v1/trainings/zz4ibbonubfz7carwiefibzgga/cancel"
            },
            "model": "stability-ai/sdxl",
            "version": "da77bc59ee60423279fd632efb4795ab731d9e3ca9705ef3341091fb989b7eaf",
          }
        ]
      }
      id will be the unique ID of the training.
      source will indicate how the training was created. Possible values are web or api.
      status will be the status of the training. Refer to get a single training for possible values.
      urls will be a convenience object that can be used to construct new API requests for the given training.
      version will be the unique ID of model version used to create the training.
      Request Request Example
      Shell
      JavaScript
      Java
      Swift
      curl --location --request GET 'https://api.replicate.com/v1/trainings'
      Response Response Example
      {}

      Request

      Authorization
      Provide your bearer token in the
      Authorization
      header when making requests to protected resources.
      Example:
      Authorization: Bearer ********************

      Responses

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