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 available hardware for models

      GET
      /v1/hardware
      Example cURL request:
      curl -s \
        -H "Authorization: Token <paste-your-token-here>" \
        https://api.replicate.com/v1/hardware
      The response will be a JSON array of hardware objects:
      [
          {"name": "CPU", "sku": "cpu"},
          {"name": "Nvidia T4 GPU", "sku": "gpu-t4"},
          {"name": "Nvidia A40 GPU", "sku": "gpu-a40-small"},
          {"name": "Nvidia A40 (Large) GPU", "sku": "gpu-a40-large"},
      ]
      Request Request Example
      Shell
      JavaScript
      Java
      Swift
      curl --location --request GET 'https://api.replicate.com/v1/hardware'
      Response Response Example
      [
        {
          "name": "string",
          "sku": "string"
        }
      ]

      Request

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

      Responses

      🟢200Success
      application/json
      Body
      array of:
      name
      string 
      optional
      The name of the hardware.
      sku
      string 
      optional
      The SKU of the hardware.
      Modified at 2023-12-22 03:33:22
      Previous
      Get a collection of models
      Next
      List public models
      Built with