Get the latest token price index by lab
The Ornn Token Price Index (OTPI): a daily, volume-weighted blended price per million tokens for each major model lab. Returns the latest settled day by default, a specific date, or a startDate/endDate range. Use lab to filter to a single lab. Without a key, the free tier covers 4 labs — anthropic, openai, google, deepseek — for the trailing 1 month (the same free window on index.ornn.com); other labs and older history require an API key. The response includes access: "public-1mo" | "full".
Overview
The Ornn Token Price Index (OTPI): a daily, volume-weighted blended price per million tokens for each major model lab. Returns the latest settled day by default, a specificdate, or a startDate/endDate range. Use lab to filter to a single lab. Without a key, the free tier covers 4 labs - anthropic, openai, google, deepseek - for the trailing 1 month (the same free window on index.ornn.com); other labs and older history require an API key. The response includes access: "public-1mo" | "full".Query Parameters
Settlement date in YYYY-MM-DD. Returns that single day. Omit it for the latest settled day, as shown in the runnable examples above. Anonymous callers must compute a recent date at request time because dates older than the trailing 1 month require a key.
Inclusive start of a settlement-date range in YYYY-MM-DD. Use with endDate. For a no-key request, compute a date within the trailing 1 month at request time (for example, 7 days ago); older history requires a key.
Inclusive end of a settlement-date range in YYYY-MM-DD. Use with startDate; compute a current or recent settled date at request time so anonymous examples remain inside the rolling public window.
Filter to a single lab. Without a key, only anthropic, openai, google, deepseek are available; other labs require an API key.
anthropic, openai, google, deepseek, minimax, xiaomi, qwen, moonshotai, z-ai, mistralai, meta-llama Response
OTPI values per lab. Single-day responses (the default, or with date) carry a top-level date; range responses (startDate/endDate) carry top-level startDate and endDate and no date.

