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 predictions

      GET
      /v1/predictions
      Get a paginated list of predictions that you've created. This will include predictions 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/predictions
      The response will be a paginated JSON array of prediction objects, sorted with the most recent prediction first:
      {
        "next": null,
        "previous": null,
        "results": [
          {
            "completed_at": "2023-09-08T16:19:34.791859Z",
            "created_at": "2023-09-08T16:19:34.907244Z",
            "error": null,
            "id": "gm3qorzdhgbfurvjtvhg6dckhu",
            "input": {
              "text": "Alice"
            },
            "metrics": {
              "predict_time": 0.012683
            },
            "output": "hello Alice",
            "started_at": "2023-09-08T16:19:34.779176Z",
            "source": "api",
            "status": "succeeded",
            "urls": {
              "get": "https://api.replicate.com/v1/predictions/gm3qorzdhgbfurvjtvhg6dckhu",
              "cancel": "https://api.replicate.com/v1/predictions/gm3qorzdhgbfurvjtvhg6dckhu/cancel"
            },
            "model": "replicate/hello-world",
            "version": "5c7d5dc6dd8bf75c1acaa8565735e7986bc5b66206b55cca93cb72c9bf15ccaa",
          }
        ]
      }
      id will be the unique ID of the prediction.
      source will indicate how the prediction was created. Possible values are web or api.
      status will be the status of the prediction. Refer to get a single prediction for possible values.
      urls will be a convenience object that can be used to construct new API requests for the given prediction.
      model will be the model identifier string in the format of {model_owner}/{model_name}.
      version will be the unique ID of model version used to create the prediction.
      Request Request Example
      Shell
      JavaScript
      Java
      Swift
      curl --location --request GET 'https://api.replicate.com/v1/predictions'
      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
      Create a training
      Next
      Create a prediction
      Built with