Calculators
ModelPricing.xyz
Free AI model token pricing calculator and cost simulator for 2026 frontier models
Compare API costs across 23 foundation models including GPT-5, Claude 4.5, Gemini 3.1, and DeepSeek with prompt caching discounts.
Mission brief

ModelPricing.xyz is a free, open-source calculator that tracks token pricing and costs for 23 foundation AI models from OpenAI, Anthropic, Google, DeepSeek, xAI, and Meta. Users can simulate their projected monthly API bills, compare per-task costs across models, and explore up to 90% cost savings from prompt caching discounts. The site provides live rates verified against official provider registries, head-to-head model comparisons, and 253 pairwise cost analyses. All pricing data is maintained publicly under the MIT license in structured formats that developers can audit or integrate programmatically.
Payload
- Interactive cost simulator for 23 foundation models
- Real-time token price verification from official provider registries
- Prompt caching discount calculator with up to 90% savings
- 253 head-to-head model comparison pairs
- Workload scaling simulator from startup to scale tier
- Open dataset downloadable in JSON and CSV formats
- Cost comparison across input and output token pricing
- Model filtering by provider, architecture tier, and use case
Pricing
Pricing model: Free
Compare and explore
See the alternatives to ModelPricing.xyz, Shipping Calculations vs ModelPricing.xyz, ModelPricing.xyz vs CalculatorsBlast, more in Calculators.
Questions from the ground
Which AI model has the cheapest API token pricing in 2026?
DeepSeek V3 and Gemini 3 Flash offer the cheapest API token pricing in 2026. DeepSeek V3 costs $0.14 per million input tokens and $0.28 per million output tokens. Gemini 3 Flash costs $0.30 per million input tokens ($0.08 with prompt caching) and $2.50 per million output tokens.
What is the API pricing for OpenAI GPT-5 and Claude 4.5 Sonnet?
OpenAI GPT-5 costs $1.25 per million input tokens ($0.13 with prompt caching) and $10.00 per million output tokens. Anthropic Claude 4.5 Sonnet costs $3.00 per million input tokens ($0.30 with prompt caching) and $15.00 per million output tokens.
How does Prompt Caching reduce AI inference costs?
Prompt caching stores pre-computed KV states for repeated context in memory. Subsequent API calls reading the cached prefix receive steep discounts between 50% and 90%. For example, Claude 4.5 Sonnet drops from $3.00 per million to $0.30 per million, and GPT-5 drops from $1.25 per million to $0.13 per million.
What is the difference between input tokens and output tokens?
Input tokens comprise your prompt instructions, system context, and document data sent to the model. Output tokens are the completion response generated by the LLM. Output tokens typically cost 3x to 5x more than input tokens because autoregressive decoding requires sequential GPU compute per token generated.
How do you calculate LLM API token costs?
To calculate monthly LLM API costs: count your monthly input and output tokens, identify repetitive system prompts eligible for prompt caching, multiply uncached input tokens by the base rate per million, multiply cached input tokens by the discounted cache rate, multiply output tokens by the completion rate per million, and sum these values to get your net monthly bill.
Leave a review for ModelPricing.xyz
No reviews logged for ModelPricing.xyz yet. Send the first one up. Free to review. Reviews can never be bought.
ModelPricing.xyz has a free listing. The owner can unlock the full profile with a paid launch for $5:
- Founder story (locked)
- Milestones (locked)
- Demo video (locked)
- Dofollow website link: not on this free listing (its website link is nofollow)