{"schema_version":"1.0","slug":"llm-api-pricing-2026","title":"LLM API Pricing 2026: Full Comparison Table (Weekly)","description":"LLM API pricing 2026: 39 models from OpenAI, Anthropic, Google, xAI, DeepSeek, and Mistral in one table. Input/output cost per 1M tokens, updated weekly.","data_updated":"2026-07-16","source_post":"https://www.jsonhouse.com/posts/llm-api-pricing-2026/","category":"ai-data-statistics","cluster":"CLUSTER_LLM","format":"D","key_facts":[{"fact":"DeepSeek v4-flash is the cheapest maintained general-purpose LLM API at $0.14 input / $0.28 output per 1M tokens with a 1M-token context window","source":"DeepSeek API docs, retrieved 2026-07-16","category":"data"},{"fact":"Claude Sonnet 5 introductory pricing of $2/$10 per 1M tokens expires 2026-08-31 and rises 50% to $3/$15 on 2026-09-01 — the first pre-announced price increase in the modern LLM API market","source":"Anthropic pricing page, retrieved 2026-07-16","category":"data"},{"fact":"Claude Fable 5 launched at $10 input / $50 output per 1M tokens, double the price of Claude Opus 4.8 ($5/$25)","source":"Anthropic pricing page, retrieved 2026-07-16","category":"data"},{"fact":"Anthropic's newer models (Claude Opus 4.7 and later, Sonnet 5, Fable 5) use a tokenizer that produces approximately 30% more tokens for the same text, making per-token prices non-comparable with earlier Claude models and other providers","source":"Anthropic pricing page, retrieved 2026-07-16","category":"definition"},{"fact":"Standard cache-read discounts reached 90% of input price at Anthropic, OpenAI, and Google, and 98% at DeepSeek ($0.0028 per 1M cache-hit tokens) as of July 2026","source":"Official pricing pages of Anthropic, OpenAI, Google, DeepSeek, retrieved 2026-07-16","category":"data"},{"fact":"Long-context pricing structures diverged: Google and xAI bill roughly 2x per token above 200K-token prompts, while Anthropic bills its full 1M-token context window at standard rates","source":"Google, xAI, Anthropic pricing pages, retrieved 2026-07-16","category":"trend"},{"fact":"The LLM API market is splitting: frontier prices are rising (Fable 5 at 2x Opus, OpenAI pro models at $30/$180) while sub-frontier prices continue to deflate","source":"jsonhouse analysis of official pricing pages, 2026-07-16","category":"trend"},{"fact":"Mistral repositioned its former flagship Mistral Large 3 at $0.50/$1.50 per 1M tokens — one third the price of the newer Mistral Medium 3.5 ($1.50/$7.50)","source":"Mistral pricing page, retrieved 2026-07-16","category":"data"}],"faq_summary":[{"q":"What is the cheapest LLM API in 2026?","a":"DeepSeek v4-flash at $0.14 input / $0.28 output per 1M tokens with 1M context. Among the big three US providers, Gemini 2.5 Flash-Lite is lowest at $0.10 / $0.40."},{"q":"Why is Claude Sonnet 5 priced at $2/$10 only until August 31, 2026?","a":"It is introductory pricing. From September 1, 2026, Sonnet 5 costs $3/$15 per 1M tokens — a pre-announced 50% increase."},{"q":"Are per-token prices directly comparable across providers?","a":"Only approximately. Anthropic's newest models tokenize the same text into roughly 30% more tokens than earlier Claude models, so identical sticker prices can produce different invoices. Compare cost per task, not cost per token."},{"q":"Do these prices include long-context surcharges?","a":"No — base tiers only. Google and xAI roughly double rates above 200K-token prompts; Anthropic bills its 1M context at standard rates."},{"q":"How often is this table updated?","a":"Weekly, from official provider pricing pages only, with every change recorded in the post's changelog. The snapshot series began July 16, 2026."}],"primary_sources":[{"title":"Anthropic API pricing","url":"https://platform.claude.com/docs/en/docs/about-claude/pricing","publisher":"Anthropic"},{"title":"OpenAI API pricing","url":"https://developers.openai.com/api/docs/pricing","publisher":"OpenAI"},{"title":"Gemini API pricing","url":"https://ai.google.dev/gemini-api/docs/pricing","publisher":"Google"},{"title":"xAI models and pricing","url":"https://docs.x.ai/docs/models","publisher":"xAI"},{"title":"DeepSeek API pricing","url":"https://api-docs.deepseek.com/quick_start/pricing","publisher":"DeepSeek"},{"title":"Mistral API pricing","url":"https://mistral.ai/pricing/api","publisher":"Mistral AI"}],"comparison_data":{"dimensions":["provider","tier","input_per_1m_usd","output_per_1m_usd","cache_read_per_1m_usd","context_window","note"],"unit":"USD per 1M tokens, standard non-batch tier, collected 2026-07-16","entries":[{"model":"Claude Fable 5","provider":"Anthropic","tier":"flagship","input_per_1m_usd":10.0,"output_per_1m_usd":50.0,"cache_read_per_1m_usd":1.0,"context_window":1000000,"note":null},{"model":"GPT-5.5-pro","provider":"OpenAI","tier":"flagship","input_per_1m_usd":30.0,"output_per_1m_usd":180.0,"cache_read_per_1m_usd":null,"context_window":null,"note":null},{"model":"GPT-5.4-pro","provider":"OpenAI","tier":"flagship","input_per_1m_usd":30.0,"output_per_1m_usd":180.0,"cache_read_per_1m_usd":null,"context_window":null,"note":null},{"model":"GPT-5.6-sol","provider":"OpenAI","tier":"flagship","input_per_1m_usd":5.0,"output_per_1m_usd":30.0,"cache_read_per_1m_usd":0.5,"context_window":null,"note":null},{"model":"GPT-5.5","provider":"OpenAI","tier":"flagship","input_per_1m_usd":5.0,"output_per_1m_usd":30.0,"cache_read_per_1m_usd":0.5,"context_window":null,"note":null},{"model":"Claude Opus 4.8","provider":"Anthropic","tier":"flagship","input_per_1m_usd":5.0,"output_per_1m_usd":25.0,"cache_read_per_1m_usd":0.5,"context_window":1000000,"note":"Opus 4.5, 4.6, and 4.7 share this pricing"},{"model":"Gemini 3.1 Pro Preview","provider":"Google","tier":"flagship","input_per_1m_usd":2.0,"output_per_1m_usd":12.0,"cache_read_per_1m_usd":0.2,"context_window":null,"note":"$4.00/$18.00 above 200K-token prompts"},{"model":"Grok 4.5","provider":"xAI","tier":"flagship","input_per_1m_usd":2.0,"output_per_1m_usd":6.0,"cache_read_per_1m_usd":0.5,"context_window":500000,"note":"$4.00/$12.00 above 200K-token prompts"},{"model":"Claude Sonnet 5","provider":"Anthropic","tier":"mid-range","input_per_1m_usd":2.0,"output_per_1m_usd":10.0,"cache_read_per_1m_usd":0.2,"context_window":1000000,"note":"Introductory pricing through 2026-08-31; $3.00/$15.00 from 2026-09-01"},{"model":"Claude Sonnet 4.6","provider":"Anthropic","tier":"mid-range","input_per_1m_usd":3.0,"output_per_1m_usd":15.0,"cache_read_per_1m_usd":0.3,"context_window":1000000,"note":null},{"model":"GPT-5.6-terra","provider":"OpenAI","tier":"mid-range","input_per_1m_usd":2.5,"output_per_1m_usd":15.0,"cache_read_per_1m_usd":0.25,"context_window":null,"note":null},{"model":"GPT-5.4","provider":"OpenAI","tier":"mid-range","input_per_1m_usd":2.5,"output_per_1m_usd":15.0,"cache_read_per_1m_usd":0.25,"context_window":null,"note":null},{"model":"Gemini 3.5 Flash","provider":"Google","tier":"mid-range","input_per_1m_usd":1.5,"output_per_1m_usd":9.0,"cache_read_per_1m_usd":0.15,"context_window":null,"note":null},{"model":"Mistral Medium 3.5","provider":"Mistral","tier":"mid-range","input_per_1m_usd":1.5,"output_per_1m_usd":7.5,"cache_read_per_1m_usd":null,"context_window":null,"note":null},{"model":"Grok 4.3","provider":"xAI","tier":"mid-range","input_per_1m_usd":1.25,"output_per_1m_usd":2.5,"cache_read_per_1m_usd":0.2,"context_window":1000000,"note":"$2.50/$5.00 above 200K-token prompts"},{"model":"DeepSeek v4-pro","provider":"DeepSeek","tier":"mid-range","input_per_1m_usd":0.435,"output_per_1m_usd":0.87,"cache_read_per_1m_usd":0.003625,"context_window":1000000,"note":null},{"model":"Claude Haiku 4.5","provider":"Anthropic","tier":"budget","input_per_1m_usd":1.0,"output_per_1m_usd":5.0,"cache_read_per_1m_usd":0.1,"context_window":200000,"note":null},{"model":"GPT-5.6-luna","provider":"OpenAI","tier":"budget","input_per_1m_usd":1.0,"output_per_1m_usd":6.0,"cache_read_per_1m_usd":0.1,"context_window":null,"note":null},{"model":"GPT-5.4-mini","provider":"OpenAI","tier":"budget","input_per_1m_usd":0.75,"output_per_1m_usd":4.5,"cache_read_per_1m_usd":0.075,"context_window":null,"note":null},{"model":"Mistral Large 3","provider":"Mistral","tier":"budget","input_per_1m_usd":0.5,"output_per_1m_usd":1.5,"cache_read_per_1m_usd":null,"context_window":null,"note":"Former flagship, repositioned as budget option"},{"model":"Gemini 2.5 Flash","provider":"Google","tier":"budget","input_per_1m_usd":0.3,"output_per_1m_usd":2.5,"cache_read_per_1m_usd":0.03,"context_window":1000000,"note":null},{"model":"Gemini 3.1 Flash-Lite","provider":"Google","tier":"budget","input_per_1m_usd":0.25,"output_per_1m_usd":1.5,"cache_read_per_1m_usd":0.025,"context_window":null,"note":null},{"model":"GPT-5.4-nano","provider":"OpenAI","tier":"budget","input_per_1m_usd":0.2,"output_per_1m_usd":1.25,"cache_read_per_1m_usd":0.02,"context_window":null,"note":null},{"model":"Mistral Small 4","provider":"Mistral","tier":"budget","input_per_1m_usd":0.15,"output_per_1m_usd":0.6,"cache_read_per_1m_usd":null,"context_window":null,"note":null},{"model":"DeepSeek v4-flash","provider":"DeepSeek","tier":"budget","input_per_1m_usd":0.14,"output_per_1m_usd":0.28,"cache_read_per_1m_usd":0.0028,"context_window":1000000,"note":"Legacy IDs deepseek-chat / deepseek-reasoner map here until 2026-07-24"},{"model":"Gemini 2.5 Flash-Lite","provider":"Google","tier":"budget","input_per_1m_usd":0.1,"output_per_1m_usd":0.4,"cache_read_per_1m_usd":0.01,"context_window":null,"note":null},{"model":"Magistral Medium","provider":"Mistral","tier":"specialist","input_per_1m_usd":2.0,"output_per_1m_usd":5.0,"cache_read_per_1m_usd":null,"context_window":null,"note":"Reasoning model"},{"model":"Grok-build-0.1","provider":"xAI","tier":"specialist","input_per_1m_usd":1.0,"output_per_1m_usd":2.0,"cache_read_per_1m_usd":0.2,"context_window":256000,"note":"Coding model; $2.00/$4.00 above 200K-token prompts"},{"model":"Magistral Small","provider":"Mistral","tier":"specialist","input_per_1m_usd":0.5,"output_per_1m_usd":1.5,"cache_read_per_1m_usd":null,"context_window":null,"note":"Reasoning model"},{"model":"Devstral 2","provider":"Mistral","tier":"specialist","input_per_1m_usd":0.4,"output_per_1m_usd":2.0,"cache_read_per_1m_usd":null,"context_window":null,"note":"Coding model"},{"model":"Codestral","provider":"Mistral","tier":"specialist","input_per_1m_usd":0.3,"output_per_1m_usd":0.9,"cache_read_per_1m_usd":null,"context_window":null,"note":"Coding model"},{"model":"Devstral Small 2","provider":"Mistral","tier":"specialist","input_per_1m_usd":0.1,"output_per_1m_usd":0.3,"cache_read_per_1m_usd":null,"context_window":null,"note":"Coding model"}]}}