How the index works
The AI Model Price Index is a static table of AI model API prices with a cost calculator. It has no backend and no analytics. Everything comes from one file, /data/prices.json.
What's in the table
- Input / Output: USD per 1 million tokens, at the provider's standard tier. Batch, flex, priority/fast and regional surcharges are not included.
- Cached in: the price per 1M input tokens served from the prompt cache (a "cache hit" or "cache read"). A dash means the provider lists no cached price. Cache-write fees are not shown.
- Blend 3:1:
(3 × input + output) ÷ 4. It's one number for rough sorting, assuming three input tokens for every output token. Your real ratio may differ, so use the calculator. - Context: the maximum context window in tokens, from the provider's model page. Where a provider lists a lower maximum input, the calculator uses that too.
- * marks a model with a long-prompt tier. Above a prompt-size threshold, the whole request is billed at a higher rate. The table shows that rate under the base price.
Verified vs. unverified
Every row stores the URL of the page its price came from and the date it was checked (US Pacific calendar date).
| Label | Meaning |
|---|---|
| VERIFIED | Each number in the row was read from the provider's own official pricing or docs page on the "checked" date, and confirmed again by a second, independent read. |
| UNVERIFIED | The number was read from an official page, but something makes it unreliable: for example, the provider says it's a promotional price that is ending and doesn't publish the next price. These rows stay visible, with the reason in the row note. |
If a price couldn't be read from any page, the model isn't listed. No prices are entered from memory or estimated.
How the calculator works
In Requests / day mode, for each model:
prompt = input tokens per request
rate = long-prompt rate if prompt ≥ threshold, else base rate
cost/req = (input × (1 − cache%) × rate.input
+ input × cache% × rate.cached
+ output × rate.output) ÷ 1,000,000
cost/day = cost/req × requests per day
cost/month = cost/day × 30
If a request is larger than a model can take (prompt over its maximum input, or prompt + output over its context window), the calculator shows EXCEEDS CONTEXT instead of a cost and leaves that model out of the "cheapest" pick.
In Tokens / day mode, the calculator doesn't know the size of each prompt, so it always uses base-tier rates. If a model has no cached price, the cache share is ignored for that model and full input price is used.
Not included: tax, cache-write fees, batch discounts, tool or search fees, image/audio inputs, and regional surcharges. DeepSeek is shown at its peak-hour price; its off-peak price is half.
A comparison can be shared as a link. The models and inputs are stored in the part of the URL after #, which is never sent to a server.
Data schema
/data/prices.json is public and can be fetched from any site (CORS is open).
{
"checked": "2026-11-30",
"currency": "USD",
"unit": "per 1M tokens",
"providers": { "<id>": { "name": "...", "pricing_url": "https://..." } },
"models": [{
"id": "gpt-6.2-sol",
"provider": "openai",
"model": "gpt-6.2-sol",
"input": 2.00, // USD per 1M input tokens
"cached_input": 0.10, // USD per 1M cached input tokens, or null
"output": 10.00, // USD per 1M output tokens
"context": 1050000, // tokens
"max_input": 922000, // optional: max prompt tokens, if lower than context
"long": { // or null
"from": 272001, // first prompt size billed at the long rate
"input": 4.00, "cached_input": 0.20, "output": 15.00
},
"source_url": "https://...", // where the price was read
"context_source_url": "https://...", // where the context window was read
"checked": "2026-11-30",
"status": "VERIFIED", // or "UNVERIFIED"
"notes": ["..."]
}]
}
Sources
Every price page used for the current data, with what was read from it:
| Provider | Pricing page | Models |
|---|---|---|
| Loading… | ||
Spotted a wrong price?
Prices change without notice. Check the row's source link first. If the provider's page shows a different number, the index is out of date; the provider's page is always the one that counts.
Limits
- Prices are re-checked by hand. There is no automatic daily check yet (it's on the planned list).
- Only text-token pricing is covered. Image, audio, video, embeddings and fine-tuning prices are not.
- Not financial advice. Experimental software.