API Documentation

Public API for accessing GPU price index history.

GET /api/gpu/:gpuName/index-history

Base URL

https://api.ornnai.com

Parameters

gpuNamerequiredGPU type. One of: H100 SXM, RTX 5090, H200, A100 SXM4, B200
startDateoptionalISO 8601 date (e.g., 2025-12-01). Defaults to 3 months ago.
endDateoptionalISO 8601 date (e.g., 2026-02-01). Defaults to today.

Response

successbooleanRequest status
gpu_typestringGPU type queried
dataarrayDaily index values, sorted by date forwards in time
timestampstringISO 8601 date/time
index_valuenumberPrice index in $/hr

Example Request

curl "https://api.ornnai.com/api/gpu/H100%20SXM/index-history"

Example Response

{
  "success": true,
  "gpu_type": "H100 SXM",
  "data": [
    { "timestamp": "2025-11-24T21:00:00.000Z", "index_value": 1.8517 },
    { "timestamp": "2025-11-25T21:00:00.000Z", "index_value": 1.8592 },
    ...
  ]
}