API Documentation
Public API for accessing GPU price index history.
GET /api/gpu/:gpuName/index-history
Base URL
https://api.ornnai.com
Parameters
| gpuName | required | GPU type. One of: H100 SXM, RTX 5090, H200, A100 SXM4, B200 |
| startDate | optional | ISO 8601 date (e.g., 2025-12-01). Defaults to 3 months ago. |
| endDate | optional | ISO 8601 date (e.g., 2026-02-01). Defaults to today. |
Response
| success | boolean | Request status |
| gpu_type | string | GPU type queried |
| data | array | Daily index values, sorted by date forwards in time |
| timestamp | string | ISO 8601 date/time |
| index_value | number | Price 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 },
...
]
}