DevTk.AI
AI API PricingDeepSeek V4MiniMax M3Claude Opus 4.8Model Pricing

AI API Pricing Comparison (June 2026): 50+ Models Side-by-Side Table

Updated June 2026. Compare API prices for GPT-5.5, Claude Opus 4.8, MiniMax M3, GLM-5.1, DeepSeek V4, Xiaomi MiMo, Gemini, and more.

DevTk.AI 2026-02-19 Updated 2026-06-14 11 min read

The AI model landscape is evolving at breakneck speed in 2026. In the latest refresh cycle, DeepSeek V4 and Xiaomi MiMo-V2.5 changed the low-cost agent market while OpenAI’s GPT-5.5, Google’s Gemini 3.5 Flash / Gemini 3.1 Pro, and Anthropic’s Claude 4.8/4.6 family continue to define the high-capability tier. Eight major providers are competing on price, performance, and specialization — and the pricing gaps between them are wider than ever.

Whether you are building a production chatbot, a code assistant, or an agentic workflow, choosing the right model at the right price point can make or break your unit economics.

This guide breaks down the current pricing for every major AI API, helps you estimate monthly costs, and shows you where to save money without sacrificing quality.

The 2026 AI Provider Landscape

The major API providers competing in June 2026 include:

  • OpenAI remains the largest player. GPT-5.5 ($5/$30 per 1M, $0.50 cached input) is now the frontier model for complex coding and professional work, while GPT-5.3-Codex ($1.75/$14) is the dedicated Codex API model for long-horizon agentic coding.
  • Anthropic is led by the Claude 4.8/4.6 family. Opus 4.8 ($5/$25) is the maximum-capability option, Sonnet 4.6 ($3/$15) is the best-value flagship, and Haiku 4.5 ($1/$5) covers fast lower-cost work.
  • Google now includes Gemini 3.5 Flash ($1.50/$9, $0.15 cached input), Gemini 3.1 Pro ($2.00/$12 in this table), Gemini 3.1 Flash-Lite, and the Gemini 2.5 line. Note that current Gemini 2.5 Flash standard pricing is $0.30/$2.50, not the older $0.15/$0.60 estimate.
  • xAI now centers its API lineup on Grok 4.3 and the coding-focused Grok Build 0.1.
  • DeepSeek shifted the price floor with V4 Flash and V4 Pro. V4 Flash is $0.14/M cache-miss input, $0.0028/M cached input, and $0.28/M output, making cache-heavy agent workloads dramatically cheaper than old V3.2 estimates.
  • Xiaomi MiMo cut MiMo-V2.5 series pay-as-you-go prices effective May 27, 2026. MiMo-V2.5-Pro is now $0.435/M input and $0.87/M output, while MiMo-V2.5 is now $0.14/M input and $0.28/M output with a $0.0028/M cache-hit price.
  • Mistral now prices Large 3 at $0.50/$1.50 and Small 4 at $0.10/$0.30.
  • MiniMax launched M3 with 1M context, native image/video input, and $0.30/$1.20 standard international pricing.
  • Z.AI positions GLM-5.1 for sustained coding and agent work at $1.40/$4.40 on its international API.

Full Pricing Table (Per 1M Tokens)

Here is the complete pricing breakdown as of June 2026. All prices are in USD per 1 million tokens.

Flagship / High-Capability Models

ModelProviderInput (per 1M)Output (per 1M)Context WindowNEW
GPT-5.5OpenAI$5.00$30.001.05MApr 2026
Claude Opus 4.8Anthropic$5.00$25.001MMay 2026
Gemini 3.1 Pro PreviewGoogle$2.00$12.001.05MFeb 2026
GPT-5.5 ProOpenAI$30.00$180.001.05MApr 2026
GPT-5.4OpenAI$2.50$15.001.05M
GPT-5OpenAI$1.25$10.00400K
Gemini 2.5 ProGoogle$1.25$10.001.05M
Grok 4.3xAI$1.25$2.501MMay 2026
o3OpenAI$2.00$8.00200K

Mid-Tier / Best Value Models

ModelProviderInput (per 1M)Output (per 1M)Context WindowNEW
Claude Sonnet 4.6Anthropic$3.00$15.001MFeb 2026
GPT-5.3-CodexOpenAI$1.75$14.00400KApr 2026
Gemini 3.5 FlashGoogle$1.50$9.001.05MMay 2026
GLM-5.1Z.AI$1.40$4.40200KApr 2026
Mistral Large 3Mistral$0.50$1.50128K
DeepSeek V4 ProDeepSeek$0.435$0.871MOfficial 1/4-of-original price after May 31
Xiaomi MiMo-V2.5-ProXiaomi MiMo$0.435$0.871MMay 27 price cut
Grok Build 0.1xAI$1.00$2.00256KMay 2026

Budget / High-Throughput Models

ModelProviderInput (per 1M)Output (per 1M)Context Window
DeepSeek V4 FlashDeepSeek$0.14$0.281M
Xiaomi MiMo-V2.5Xiaomi MiMo$0.14$0.281M
MiniMax M3MiniMax$0.30$1.201M
Claude Haiku 4.5Anthropic$1.00$5.00200K
Gemini 3.1 Flash-LiteGoogle$0.25$1.501M
Gemini 2.5 FlashGoogle$0.30$2.501M
Gemini 2.5 Flash-LiteGoogle$0.10$0.401M
Mistral Small 4Mistral$0.10$0.30128K

Use our AI Model Pricing Calculator to run custom comparisons with your own usage patterns.

Best Model for Your Budget

Enterprise ($5,000+/month API spend)

At enterprise scale, you want maximum capability and reliability. GPT-5.5, Claude Opus 4.8, and Gemini 3.1 Pro Preview are current high-capability anchors for complex reasoning, long-form content, and agentic workflows.

Recommended stack: GPT-5.5 or Claude Opus 4.8 for the hardest tasks, Sonnet 4.6 or GPT-5.4 for everyday production traffic, and Haiku/Flash/Small-class models for simple requests.

Startup ($500-$5,000/month)

This is where model routing matters most. Claude Sonnet 4.6, GPT-5.4, GPT-5.3-Codex, Gemini 3.5 Flash, and Mistral Large 3 are stronger current anchors than older GPT-4.1 or Claude 4.5-era recommendations. Pair them with Claude Haiku 4.5, Gemini 2.5 Flash-Lite, DeepSeek V4 Flash, or Grok 4.3 for classification, summarization, and other high-volume tasks.

For a detailed head-to-head, see our OpenAI vs Anthropic comparison.

Hobby / Side Projects (Under $500/month)

Maximize every dollar. DeepSeek V4 Flash and Xiaomi MiMo-V2.5 both sit at $0.14/$0.28 before cache-hit discounts, while Gemini 2.5 Flash-Lite and Mistral Small 4 are strong mature-platform budget choices.

Check out our DeepSeek vs ChatGPT comparison for a deeper look at the cost-performance tradeoff.

Monthly Cost Estimates

To put these prices in perspective, here are estimated monthly costs for three common workloads. Each assumes a 1:1 input-to-output token ratio.

Light Usage (1M input + 1M output tokens/month)

ModelMonthly Cost
DeepSeek V4 Flash$0.42
Xiaomi MiMo-V2.5$0.42
Gemini 2.5 Flash-Lite$0.50
Mistral Small 4$0.40
Llama 3.3 70B$1.76
Gemini 2.5 Flash$2.80
Claude Haiku 4.5$6.00
Gemini 3.5 Flash$10.50
GPT-5$11.25
Claude Sonnet 4.6$18.00

Moderate Usage (50M input + 50M output tokens/month)

ModelMonthly Cost
DeepSeek V4 Flash$21
Xiaomi MiMo-V2.5$21
Gemini 2.5 Flash-Lite$25
Mistral Small 4$20
Llama 3.3 70B$88
Gemini 2.5 Flash$140
Claude Haiku 4.5$300
Gemini 3.5 Flash$525
GPT-5$563
Claude Sonnet 4.6$900

Heavy Usage (500M input + 500M output tokens/month)

ModelMonthly Cost
DeepSeek V4 Flash$210
Xiaomi MiMo-V2.5$210
Gemini 2.5 Flash-Lite$250
Mistral Small 4$200
Llama 3.3 70B$880
Gemini 2.5 Flash$1,400
Claude Haiku 4.5$3,000
Gemini 3.5 Flash$5,250
GPT-5$5,625
Claude Sonnet 4.6$9,000

Want exact numbers for your workload? Use the AI Token Counter to measure your actual prompt sizes, then plug them into the Pricing Calculator.

Hidden Costs to Watch

Raw per-token pricing does not tell the whole story. Keep these factors in mind:

Rate limits. Most providers impose requests-per-minute (RPM) and tokens-per-minute (TPM) limits on lower tiers. OpenAI and Anthropic both require usage history or prepayment to unlock higher rate limits. If your app needs burst capacity, budget for a higher tier or prepaid credits.

Cached input pricing. Anthropic offers prompt caching for Claude, where repeated system prompts are charged at a reduced rate after the first call. OpenAI has cached input prices for GPT-5.5, GPT-5.4, GPT-5.3-Codex, and other current models. DeepSeek V4 and Xiaomi MiMo now publish separate cache-hit prices; DeepSeek V4 Flash and MiMo-V2.5 cached input are both $0.0028/M, which can make repeated agent context far cheaper than a naive table estimate.

Batch API discounts. OpenAI’s Batch API offers 50% off for non-real-time workloads (24-hour turnaround). Anthropic’s Message Batches API provides similar discounts. If your use case allows asynchronous processing — think data labeling, content generation, or bulk analysis — always use batch endpoints.

Reasoning tokens. Models like o3 consume internal “thinking” tokens that you pay for but never see in the output. A single o3 request might use 5-10x more tokens than the visible output suggests. Monitor your actual token usage carefully with reasoning models.

Minimum spend / commitments. Some enterprise plans require monthly minimums. Google’s Gemini API has different pricing tiers depending on whether you use the free tier, pay-as-you-go, or provisioned throughput.

6 Ways to Reduce Your AI API Costs

  1. Route by complexity. Not every request needs your most expensive model. Use a classifier (even a regex or keyword check) to send simple queries to Haiku/Flash/Small and only escalate complex ones to Opus/GPT-5.

  2. Cache aggressively. If you send the same system prompt with every request, enable prompt caching. For Anthropic, cached prompts cost 90% less on subsequent calls. For application-level caching, store responses for identical or near-identical queries.

  3. Use batch APIs for async work. Any task that does not need a real-time response — content moderation queues, document processing, weekly reports — should run through batch endpoints at half price.

  4. Optimize your prompts. Shorter prompts cost less. Remove redundant instructions, compress examples, and use structured formats. A well-engineered prompt can be 30-50% shorter than a first draft while producing better results. Our AI Token Counter helps you measure exactly how many tokens each prompt version uses.

  5. Fine-tune for repetitive tasks. If you are making thousands of similar API calls, a fine-tuned smaller model often outperforms a general-purpose large model at a fraction of the cost. OpenAI and Mistral both offer fine-tuning APIs.

  6. Monitor and set budgets. All major providers offer usage dashboards and spending alerts. Set hard monthly limits to avoid surprise bills, especially during development and testing phases.

The Bottom Line

The 2026 AI API market offers more options at more price points than ever before. The pricing spread is enormous: from $0.10/1M input tokens (Gemini 2.5 Flash-Lite or Mistral Small 4) to $5.00/1M (GPT-5.5 or Claude Opus 4.8), before the even higher GPT-5.5 Pro tier. The key to managing costs is not picking one model, but building a routing strategy that matches model capability to task complexity.

Start with the AI Model Pricing Calculator to model your specific use case, and revisit your model choices quarterly as pricing continues to evolve.

New model deep dives:

Provider deep dives:

Related Posts