Skip to main content
GET
cURL

Overview

The hourly Ornn Token Price Index. Each row is one window, from windowStart to capturedAt (about an hour). A sample at 23:59:30 UTC closes each day and the next day’s first window starts there, so consecutive windows share an edge. Each row carries the lab, indexPerMtok, tokens, and coverage. Windows start 2026-11-10 (UTC). Rows before that date keep the earlier method, the day-so-far price at each hourly sample, and have null windowStart, tokens, and coverage. indexPerMtok is the window’s spend divided by its tokens. It is null when priced tokens cover less than 80% of the window, the settled index’s gate. The settled daily print remains GET /api/otpi. Access is the same: without a key, anthropic, openai, google, and deepseek for the trailing 3 months. A Premium or Full key unlocks all 11 labs and the full history.

Query Parameters

date
string<date>

UTC day in YYYY-MM-DD. Returns every window captured that day. Omit it, and omit the range, for the latest window.

startDate
string<date>

Inclusive start of a UTC-day window. Use with endDate.

endDate
string<date>

Inclusive end of a UTC-day window. Use with startDate.

lab
enum<string>

Filter to a single lab. Without a key, only anthropic, openai, google, and deepseek are available.

Available options:
anthropic,
openai,
google,
deepseek,
minimax,
xiaomi,
qwen,
moonshotai,
z-ai,
mistralai,
meta-llama

Response

Hourly window rows. The latest window carries a top-level capturedAt. A date query carries that date. A range carries startDate and endDate.