{"source":"https://modelpricing.xyz","license":"MIT","currency":"USD","unit":"per_1m_tokens","totalModels":35,"models":[{"id":"claude-5-5-sonnet","name":"Claude Sonnet 5.5","provider":"Anthropic","category":"Coding","inputPricePerMillion":2,"outputPricePerMillion":10,"cachedInputPricePerMillion":0.1,"contextWindow":1000000,"maxOutputTokens":128000,"officialSourceUrl":"https://www.anthropic.com/pricing","description":"Anthropic's official replacement for retired Claude 4.5 Sonnet—delivering 1M context, 128k output, and 33% lower base pricing ($2/$10) with 95% cache read discounts.","bestFor":"Production agentic coding, Claude 4.5 Sonnet migrations, long-context software engineering"},{"id":"claude-5-5-opus","name":"Claude Opus 5.5","provider":"Anthropic","category":"Flagship","inputPricePerMillion":4,"outputPricePerMillion":20,"cachedInputPricePerMillion":0.2,"contextWindow":1000000,"maxOutputTokens":128000,"officialSourceUrl":"https://www.anthropic.com/pricing","description":"Anthropic's heaviest frontier reasoning tier with 1M token context, $0.20/M cache reads, and deep multi-step autonomous execution.","bestFor":"Complex multi-agent orchestration, deep R&D, architecture audits"},{"id":"gpt-6-2-sol","name":"GPT-6.2 Sol","provider":"OpenAI","category":"Reasoning","inputPricePerMillion":2,"outputPricePerMillion":10,"cachedInputPricePerMillion":0.1,"contextWindow":1050000,"maxOutputTokens":128000,"officialSourceUrl":"https://openai.com/api/pricing","description":"OpenAI's versatile flagship and official migration target for retiring GPT-5 and o3 models, featuring 1.05M context and $0.10/M prompt cache reads.","bestFor":"GPT-5 & o3 migrations, autonomous Responses API agents, multi-step coding"},{"id":"gpt-6-1-terra","name":"GPT-6.1 Terra","provider":"OpenAI","category":"Flagship","inputPricePerMillion":1,"outputPricePerMillion":5,"cachedInputPricePerMillion":0.05,"contextWindow":1050000,"maxOutputTokens":128000,"officialSourceUrl":"https://openai.com/api/pricing","description":"OpenAI's fast, cost-efficient mid-tier model and recommended upgrade path for retiring GPT-5 mini workloads.","bestFor":"Visual reasoning, precise computer use, GPT-5 mini migration"},{"id":"gpt-6-luna","name":"GPT-6 Luna","provider":"OpenAI","category":"Fast & Cheap","inputPricePerMillion":0.1,"outputPricePerMillion":0.5,"cachedInputPricePerMillion":0.01,"contextWindow":1050000,"maxOutputTokens":128000,"officialSourceUrl":"https://openai.com/api/pricing","description":"OpenAI's ultra-budget 1.05M-context workhorse replacing GPT-5 nano with sub-cent cached reads ($0.01/M).","bestFor":"High-volume extraction, fast routing, cost-sensitive batch classification"},{"id":"gemini-4-argon","name":"Gemini 4 Argon","provider":"Google","category":"Flagship","inputPricePerMillion":4,"outputPricePerMillion":20,"cachedInputPricePerMillion":0.2,"contextWindow":1048576,"maxOutputTokens":65536,"officialSourceUrl":"https://cloud.google.com/vertex-ai/generative-ai/pricing","description":"Google's Pro-class Gemini 4 model (updated Dec 1, 2026 from $2/$10 intro rate to $4/$20 standard pricing) with 1M unified context.","bestFor":"General enterprise knowledge work, multimodal synthesis, long-context analysis","pricingNote":"Standard rate doubled Dec 1, 2026 from $2.00/$10.00 intro pricing."},{"id":"gemini-4-carbon","name":"Gemini 4 Carbon","provider":"Google","category":"Reasoning","inputPricePerMillion":4,"outputPricePerMillion":20,"cachedInputPricePerMillion":0.2,"contextWindow":1048576,"maxOutputTokens":65536,"officialSourceUrl":"https://cloud.google.com/vertex-ai/generative-ai/pricing","description":"Google's heavy reasoning and cybersecurity flagship (updated Dec 1, 2026 to $4/$20 standard pricing) with deep verification loops.","bestFor":"Complex multi-step coding, cybersecurity audits, deep scientific reasoning","pricingNote":"Standard rate doubled Dec 1, 2026 from $2.00/$10.00 intro pricing."},{"id":"gemini-4-neon","name":"Gemini 4 Neon","provider":"Google","category":"Coding","inputPricePerMillion":3,"outputPricePerMillion":15,"cachedInputPricePerMillion":0.15,"contextWindow":1048576,"maxOutputTokens":65536,"officialSourceUrl":"https://cloud.google.com/vertex-ai/generative-ai/pricing","description":"Google's mid-tier Gemini 4 coding and agentic engine offering adjustable reasoning effort and $0.15/M context cache reads.","bestFor":"Agentic coding workflows, cost-balanced Gemini 4 deployments"},{"id":"gemini-4-hydrogen","name":"Gemini 4 Hydrogen","provider":"Google","category":"Fast & Cheap","inputPricePerMillion":1.5,"outputPricePerMillion":7.5,"cachedInputPricePerMillion":0.075,"contextWindow":1048576,"maxOutputTokens":65536,"officialSourceUrl":"https://cloud.google.com/vertex-ai/generative-ai/pricing","description":"Google's efficient Gemini 4 workhorse powering Antigravity and high-throughput developer workflows at $1.50/$7.50 with 1M unified context.","bestFor":"Daily coding copilots, interactive tool use, cost-efficient reasoning"},{"id":"claude-5-5-haiku","name":"Claude Haiku 5.5","provider":"Anthropic","category":"Fast & Cheap","inputPricePerMillion":0.1,"outputPricePerMillion":0.5,"cachedInputPricePerMillion":0.01,"contextWindow":1000000,"maxOutputTokens":128000,"officialSourceUrl":"https://www.anthropic.com/pricing","description":"Anthropic's ultra-fast, budget-tier Dec 2026 model featuring 1M context, $0.01/M cached reads, and $0.10/$0.50 base pricing for prompts up to 100K tokens.","bestFor":"High-volume agent routing, real-time classification, lightweight coding subagents","pricingNote":"Prompts up to 100K tokens: $0.10/$0.50 per 1M; >100K prompts scale to $0.50/$2.50 per 1M."},{"id":"claude-5-2-fable","name":"Claude Fable 5.2","provider":"Anthropic","category":"Reasoning","inputPricePerMillion":8,"outputPricePerMillion":40,"cachedInputPricePerMillion":0.2,"contextWindow":1000000,"maxOutputTokens":128000,"officialSourceUrl":"https://www.anthropic.com/pricing","description":"Anthropic's apex long-horizon reasoning flagship with 1M context, 128k output, and $0.20/M cache reads (97.5% read discount).","bestFor":"Autonomous long-horizon R&D, multi-file systems engineering, mission-critical reasoning","pricingNote":"Optional 2.5x Fast Mode ($16/$80 per 1M); Batch API reduces standard rates by 50% ($4/$20)."},{"id":"gpt-6-2-astra","name":"GPT-6.2 Astra","provider":"OpenAI","category":"Reasoning","inputPricePerMillion":8,"outputPricePerMillion":40,"cachedInputPricePerMillion":0.4,"contextWindow":1050000,"maxOutputTokens":128000,"officialSourceUrl":"https://openai.com/api/pricing","description":"OpenAI's highest-intelligence GPT-6.2 reasoning tier (<=272K standard rate $8/$40) built for extreme STEM deduction and 128k output generation.","bestFor":"Frontier scientific R&D, autonomous software verification, hardest reasoning benchmarks","pricingNote":"Standard <=272K tier: $8/$40 per 1M ($0.40 cache read); >272K prompts scale to $16/$60 per 1M."},{"id":"gpt-5","name":"GPT-5","provider":"OpenAI","category":"Reasoning","inputPricePerMillion":1.25,"outputPricePerMillion":10,"cachedInputPricePerMillion":0.13,"contextWindow":256000,"maxOutputTokens":64000,"officialSourceUrl":"https://openai.com/api/pricing","description":"OpenAI's previous frontier flagship scheduled for API shutdown on Dec 11, 2026. Official migration path is GPT-6.2 Sol.","bestFor":"Legacy GPT-5 migration budgeting toward GPT-6.2 Sol","status":"deprecating","deprecationDate":"2026-12-11","replacementModelId":"gpt-6-2-sol","pricingNote":"Retiring Dec 11, 2026 — migrate to GPT-6.2 Sol."},{"id":"claude-4-5-sonnet","name":"Claude 4.5 Sonnet","provider":"Anthropic","category":"Reasoning","inputPricePerMillion":3,"outputPricePerMillion":15,"cachedInputPricePerMillion":0.3,"contextWindow":200000,"maxOutputTokens":64000,"officialSourceUrl":"https://www.anthropic.com/pricing","description":"Retired by Anthropic on Nov 30, 2026. Replaced by Claude Sonnet 5.5 at 33% lower token rates ($2/$10) and 5x larger context.","bestFor":"Migration cost comparison against Claude Sonnet 5.5","status":"retired","deprecationDate":"2026-11-30","replacementModelId":"claude-5-5-sonnet","pricingNote":"Retired Nov 30, 2026 — replaced by Claude Sonnet 5.5."},{"id":"gemini-3-1-pro","name":"Gemini 3.1 Pro Preview","provider":"Google","category":"Flagship","inputPricePerMillion":2,"outputPricePerMillion":12,"cachedInputPricePerMillion":0.2,"contextWindow":2000000,"maxOutputTokens":16384,"officialSourceUrl":"https://cloud.google.com/vertex-ai/generative-ai/pricing","description":"Google DeepMind's official preview foundation model delivering an industry-leading 2M token context window.","bestFor":"Full-repository codebase analysis, multi-hour video and audio understanding, enterprise document intelligence"},{"id":"grok-4-7","name":"Grok 4.7","provider":"xAI","category":"Reasoning","inputPricePerMillion":2,"outputPricePerMillion":6,"cachedInputPricePerMillion":0.3,"contextWindow":500000,"maxOutputTokens":32768,"officialSourceUrl":"https://x.ai/api","description":"xAI's official flagship reasoning model featuring a 500k context window and competitive $2.00/$6.00 rate structure.","bestFor":"Mathematical modeling, high-precision STEM deduction, high-throughput logic extraction"},{"id":"deepseek-v4-pro","name":"DeepSeek V4 Pro","provider":"DeepSeek","category":"Reasoning","inputPricePerMillion":0.5,"outputPricePerMillion":2,"cachedInputPricePerMillion":0.1,"contextWindow":1000000,"maxOutputTokens":16384,"officialSourceUrl":"https://www.deepseek.com","description":"DeepSeek's 1M context reasoning engine offering competitive peak/off-peak inference economics.","bestFor":"High-volume production reasoning, automated verification pipelines, budget-conscious enterprise scale"},{"id":"claude-4-5-opus","name":"Claude 4.5 Opus","provider":"Anthropic","category":"Flagship","inputPricePerMillion":5,"outputPricePerMillion":25,"cachedInputPricePerMillion":0.5,"contextWindow":200000,"maxOutputTokens":32768,"officialSourceUrl":"https://www.anthropic.com/pricing","description":"Anthropic's heaviest reasoning tier reserved for deep scientific research and complex regulatory analysis.","bestFor":"Executive decision modeling, patent analysis, complex regulatory compliance synthesis"},{"id":"gemini-3-8-flash","name":"Gemini 3.8 Flash","provider":"Google","category":"Fast & Cheap","inputPricePerMillion":0.75,"outputPricePerMillion":3.75,"cachedInputPricePerMillion":0.1,"contextWindow":1000000,"maxOutputTokens":8192,"officialSourceUrl":"https://cloud.google.com/vertex-ai/generative-ai/pricing","description":"Google DeepMind's specialized fast-reasoning tier (promotional rate card through Dec 31).","bestFor":"High-throughput multimodal parsing, interactive streaming tools, low-latency reasoning"},{"id":"gemini-3-flash","name":"Gemini 3 Flash","provider":"Google","category":"Fast & Cheap","inputPricePerMillion":0.5,"outputPricePerMillion":3,"cachedInputPricePerMillion":0.08,"contextWindow":1000000,"maxOutputTokens":8192,"officialSourceUrl":"https://cloud.google.com/vertex-ai/generative-ai/pricing","description":"Official Google DeepMind production rate card for high-throughput 1M context workloads.","bestFor":"High-volume document extraction, audio/video transcription, internal enterprise search"},{"id":"deepseek-flash","name":"DeepSeek Flash (V4.1)","provider":"DeepSeek","category":"Fast & Cheap","inputPricePerMillion":0.12,"outputPricePerMillion":0.36,"cachedInputPricePerMillion":0.03,"contextWindow":1000000,"maxOutputTokens":8192,"officialSourceUrl":"https://www.deepseek.com","description":"DeepSeek's sub-dollar 1M context MoE workhorse for mass extraction and batch automation.","bestFor":"Massive batch classification, programmatic SEO, continuous data parsing"},{"id":"gpt-5-mini","name":"GPT-5 mini","provider":"OpenAI","category":"Fast & Cheap","inputPricePerMillion":0.3,"outputPricePerMillion":1.25,"cachedInputPricePerMillion":0.05,"contextWindow":128000,"maxOutputTokens":16384,"officialSourceUrl":"https://openai.com/api/pricing","description":"Legacy mini tier retiring Dec 11, 2026. OpenAI recommends migrating workloads to GPT-6.1 Terra.","bestFor":"Legacy GPT-5 mini migration benchmarking toward GPT-6.1 Terra","status":"deprecating","deprecationDate":"2026-12-11","replacementModelId":"gpt-6-1-terra","pricingNote":"Retiring Dec 11, 2026 — migrate to GPT-6.1 Terra."},{"id":"deepseek-v3","name":"DeepSeek V3","provider":"DeepSeek","category":"Fast & Cheap","inputPricePerMillion":0.14,"outputPricePerMillion":0.28,"cachedInputPricePerMillion":0.035,"contextWindow":64000,"maxOutputTokens":8192,"officialSourceUrl":"https://www.deepseek.com","description":"Ultra-low-cost Mixture-of-Experts workhorse delivering frontier-tier text generation at near-zero token expense.","bestFor":"Bulk text processing, large-scale indexing, high-frequency chat automation"},{"id":"claude-3-7-sonnet","name":"Claude 3.7 Sonnet","provider":"Anthropic","category":"Reasoning","inputPricePerMillion":3,"outputPricePerMillion":15,"cachedInputPricePerMillion":0.3,"contextWindow":200000,"maxOutputTokens":64000,"officialSourceUrl":"https://www.anthropic.com/pricing","description":"The standard hybrid reasoning baseline combining instant generation with dynamic thinking tokens.","bestFor":"Production agent migration baseline, legacy Claude infrastructure comparison"},{"id":"openai-o3","name":"OpenAI o3","provider":"OpenAI","category":"Reasoning","inputPricePerMillion":2,"outputPricePerMillion":8,"cachedInputPricePerMillion":0.5,"contextWindow":200000,"maxOutputTokens":100000,"officialSourceUrl":"https://openai.com/api/pricing","description":"OpenAI's legacy STEM reasoning model scheduled for shutdown on Dec 11, 2026. Migrate to GPT-6.2 Sol (with reasoning.mode: pro for o3-pro).","bestFor":"Legacy o3 migration cost planning toward GPT-6.2 Sol","status":"deprecating","deprecationDate":"2026-12-11","replacementModelId":"gpt-6-2-sol","pricingNote":"Retiring Dec 11, 2026 — migrate to GPT-6.2 Sol."},{"id":"grok-3","name":"Grok 3","provider":"xAI","category":"Reasoning","inputPricePerMillion":3,"outputPricePerMillion":15,"contextWindow":131072,"maxOutputTokens":16384,"officialSourceUrl":"https://x.ai/api","description":"xAI's Colossus-trained reasoning powerhouse serving as the benchmark standard for Grok 4.7 migration.","bestFor":"Mathematical validation and uncensored enterprise chat baseline"},{"id":"grok-3-mini","name":"Grok 3 Mini","provider":"xAI","category":"Fast & Cheap","inputPricePerMillion":0.3,"outputPricePerMillion":0.9,"contextWindow":131072,"maxOutputTokens":8192,"officialSourceUrl":"https://x.ai/api","description":"High-speed compact reasoning model from xAI for fast agentic routing.","bestFor":"Rapid code completion, interactive developer tooling, fast agentic routing"},{"id":"deepseek-r1","name":"DeepSeek R1","provider":"DeepSeek","category":"Reasoning","inputPricePerMillion":0.55,"outputPricePerMillion":2.19,"cachedInputPricePerMillion":0.14,"contextWindow":64000,"maxOutputTokens":8192,"officialSourceUrl":"https://www.deepseek.com","description":"Breakthrough open-weights reasoning model matching frontier reasoning at 1/15th the traditional market price.","bestFor":"High-volume logical workflows, math deduction on an extreme budget"},{"id":"claude-3-5-sonnet","name":"Claude 3.5 Sonnet","provider":"Anthropic","category":"Flagship","inputPricePerMillion":3,"outputPricePerMillion":15,"cachedInputPricePerMillion":0.3,"contextWindow":200000,"maxOutputTokens":8192,"officialSourceUrl":"https://www.anthropic.com/pricing","description":"Proven enterprise workhorse for software engineering and complex analytical tasks.","bestFor":"Agentic workflows, legacy code refactoring, enterprise document parsing"},{"id":"gpt-4o","name":"GPT-4o","provider":"OpenAI","category":"Flagship","inputPricePerMillion":2.5,"outputPricePerMillion":10,"cachedInputPricePerMillion":1.25,"contextWindow":128000,"maxOutputTokens":16384,"officialSourceUrl":"https://openai.com/api/pricing","description":"Omnichannel multimodal model with strong tool calling and structured JSON outputs.","bestFor":"Customer support, vision tasks, fast function calling"},{"id":"gpt-4o-mini","name":"GPT-4o mini","provider":"OpenAI","category":"Fast & Cheap","inputPricePerMillion":0.15,"outputPricePerMillion":0.6,"cachedInputPricePerMillion":0.075,"contextWindow":128000,"maxOutputTokens":16384,"officialSourceUrl":"https://openai.com/api/pricing","description":"Cost-effective model for high-volume text classification and data extraction.","bestFor":"Bulk text parsing, light chat agents, classification"},{"id":"gemini-2-flash","name":"Gemini 2.0 Flash","provider":"Google","category":"Fast & Cheap","inputPricePerMillion":0.1,"outputPricePerMillion":0.4,"cachedInputPricePerMillion":0.025,"contextWindow":1000000,"maxOutputTokens":8192,"officialSourceUrl":"https://cloud.google.com/vertex-ai/generative-ai/pricing","description":"Google's multimodal speed demon featuring a 1M context window and rock-bottom caching costs.","bestFor":"Long-document RAG, low-latency audio/video processing, enterprise pipelines"},{"id":"openai-o3-mini","name":"OpenAI o3-mini","provider":"OpenAI","category":"Reasoning","inputPricePerMillion":1.1,"outputPricePerMillion":4.4,"cachedInputPricePerMillion":0.55,"contextWindow":200000,"maxOutputTokens":100000,"officialSourceUrl":"https://openai.com/api/pricing","description":"Specialized STEM and coding reasoning model with adjustable reasoning effort tiers.","bestFor":"Science calculations, competitive coding, algorithmic validation"},{"id":"claude-3-5-haiku","name":"Claude 3.5 Haiku","provider":"Anthropic","category":"Fast & Cheap","inputPricePerMillion":0.8,"outputPricePerMillion":4,"cachedInputPricePerMillion":0.08,"contextWindow":200000,"maxOutputTokens":8192,"officialSourceUrl":"https://www.anthropic.com/pricing","description":"High-speed Claude model for fast conversational routing.","bestFor":"Fast code linting, user-facing conversational chatbots, smart routing"},{"id":"llama-3-3-70b","name":"Llama 3.3 70B","provider":"Meta","category":"Flagship","inputPricePerMillion":0.7,"outputPricePerMillion":0.8,"contextWindow":128000,"maxOutputTokens":4096,"officialSourceUrl":"https://llama.meta.com","description":"Self-hosted open-weights baseline offering predictable fixed GPU economics for sovereign private deployments.","bestFor":"Self-hosted private deployments, enterprise data sovereignty"}]}