📌 Note: The GPU Index API is only available for Plus and Professional tier subscribers.

POST /api/gpu-index/index

Get GPU index data, from starting date(from 2024-09-01) to ending date. The selected range must not exceed a week (7 days). If no date range is provided, data for today will be used by default. A returned value of -1 or any negative number indicates that the data has not yet been generated—please wait or contact support.

Authorization

🔒OAuth2: OAuth2PasswordBearer
Flow type: password
Token URL: token

Request Body

The request body must be in application/json format.

FieldTypeRequiredDescriptionConstraints
gpustringYESGPU type. Currently, we support the H100 series type for querying.[ 1 .. 20 ] characters
starting_datestring or nullNOThe start date for the query in YYYY-MM-DD format. Defaults to today if not provided.
ending_datestring or nullNOThe end date for the query in YYYY-MM-DD format. Defaults to today if not provided.

Request Example

{
  "gpu": "h100",
  "starting_date": "2025-04-01",
  "ending_date": "2025-04-05"
}

Responses

  • 200: Successful Response
{
    "meta": {
        "code": 0,
        "url": "/api/gpu-index/index",
        "message": "OK",
        "timestamp": 1744201871
    },
    "data": {
        "gpu": "h100",
        "starting_date": "2025-04-01",
        "ending_date": "2025-04-05",
        "indexes": {
            "2025-04-01": 2.25,
            "2025-04-02": 2.22,
            "2025-04-03": 2.27,
            "2025-04-04": 2.26,
            "2025-04-05": 2.33
        }
    }
}
  • 422: Validation Error
{
  "detail": [
    {
      "loc": [
        "string"
        ],
        "msg": "string",
        "type": "string"
    }
  ]
}
  • 404: Subscription not found
{
    "meta": {
        "code": 404,
        "url": "/api/gpu-index",
        "message": "404, Not Found",
        "timestamp": 1744289950,
        "args": [],
        "kwargs": {}
    },
    "data": {}
}