Claude Opus 5.5 vs Gemini 3.1 Pro API Cost
Claude Opus 5.5 at $4/$20 against Gemini 3.1 Pro at $2/$12 per million tokens, with caching and Gemini's long-context rates worked in.
Updated · By Niraj Kumar · 6 sources
https://checkpre.com/ai/claude-opus-5-5-vs-gemini-3-1-pro-api-cost
Models
Each request
System prompt, conversation history, documents and tool definitions are all resent on every call.
The visible answer.
Count tokens from a prompt or JSON payloadShowHide
Plain text, OpenAI Chat or Responses JSON, or Anthropic Messages JSON. A final assistant message or a response body counts as output. Counted in your browser; nothing is uploaded.
Loading the tokenizer…
Counts use OpenAI's o200k tokenizer, so they are exact for GPT-6 and GPT-5 models, plus a few tokens of message framing. Other providers' tokenizers count the same text differently and do not publish a conversion factor; Anthropic says Claude models from 4.7 on produce about 30% more tokens than earlier Claude models. For an exact count on another model, paste one of its API responses: the usage it reports is shown above.
Thinking tokens are billed as output. Leave at 0 for models or settings that do not reason.
Volume
30,000 requests over 30 days.
Discounts
The share of input that repeats exactly at the start of every request, such as a fixed system prompt. The prompt caching calculator prices cache writes and expiry in detail.
- Claude Opus 5.5
- $660.00 a month
- $0.022 a request · 20th cheapest of 24
- Gemini 3.1 Pro
- $360.00 a month
- $0.012 a request · 19th cheapest of 24
- At 10× the volume
- $3,000 a month apart
- Cheapest listed model
- Claude Haiku 5.5
- $16.50 a month
| Measure | Claude Opus 5.5 | Gemini 3.1 Pro |
|---|---|---|
| Input, per 1M tokens | $4 | $2 |
| Cache hit, per 1M tokens | $0.20 | $0.20 |
| Output, per 1M tokens | $20 | $12 |
| Context window | 1M tokens | 1.05M tokens |
| Max output | 128K tokens | 65.5K tokens |
| Batch discount | 50% | 50% |
| Long-context surcharge | None | Above 200K input |
| Input cost a month | $360.00 | $180.00 |
| Output cost a month | $300.00 | $180.00 |
- 1Claude Haiku 5.5Anthropic$16.50
- 2GPT-6 LunaOpenAI$16.50
- 3Qwen3.8 FlashAlibaba$20.55
- 4GPT-5.6 LunaOpenAI$36.00
- 5DeepSeek V4.1 FlashDeepSeek$45.00
- 6Qwen3.7 PlusAlibaba$60.00
- 7Gemini 3.5 Flash-LiteGoogle$64.50
- 8Gemini 3.8 FlashGoogle$123.75
- 9Grok 4.3xAI$150.00
- 10Claude Haiku 4.5Anthropic$165.00
- 11DeepSeek V4 ProDeepSeek$178.20
- 12Grok 4.7xAI$270.00
- 13Qwen3.8 MaxAlibaba$270.00
- 14Claude Sonnet 5.5Anthropic$330.00
- 15Claude Sonnet 5Anthropic$330.00
- 16GPT-6.1 SolOpenAI$330.00
- 17GPT-6 SolOpenAI$330.00
- 18GPT-5.6 TerraOpenAI$360.00
- 19Gemini 3.1 ProGoogle$360.00
- 20Claude Opus 5.5Anthropic$660.00
- 21GPT-5.6 SolOpenAI$660.00
- 22Claude Opus 5Anthropic$825.00
- 23Claude Fable 5.1Anthropic$1,650
- 24GPT-6 AstraOpenAI$1,650
How the Claude Opus 5.5 vs Gemini 3.1 Pro API Cost works
cost = (fresh input × input rate + cached input × cache rate + (output + reasoning) × output rate) ÷ 1,000,000This page uses the same method as the LLM API Cost Calculator, which explains each term and assumption in full.
Worked example
A chat feature sending 3,000 input tokens and getting 500 back, 1,000 times a day, priced on both models with no caching.
- 1Claude Opus 5.5: 3,000 × $4 + 500 × $20, ÷ 1,000,000 = $0.022 a request, $660.00 a month
- 2Gemini 3.1 Pro: 3,000 × $2 + 500 × $12, ÷ 1,000,000 = $0.012 a request, $360.00 a month
- 3Difference: $300.00 a month
Gemini 3.1 Pro is $300.00 a month cheaper for this workload, 45% less.
Frequently asked questions
Which is cheaper, Claude Opus 5.5 or Gemini 3.1 Pro?
At standard list rates, Gemini 3.1 Pro is 45% cheaper than Claude Opus 5.5 on a typical chat request (3,000 tokens in, 500 out); Gemini 3.1 Pro is 40% cheaper than Claude Opus 5.5 on output-heavy generation (500 in, 2,000 out); and Gemini 3.1 Pro is 37% cheaper than Claude Opus 5.5 on a large cached prompt (20,000 in, 90% cached, 500 out). Claude Opus 5.5 charges $4 input and $20 output per million tokens; Gemini 3.1 Pro charges $2 and $12.
Is Gemini 3.1 Pro always cheaper than Claude Opus 5.5?
Usually, on uncached work under 200,000 tokens: its rates are half of Opus 5.5's on input and 60% on output. The gap narrows with caching, since both charge $0.20 per million for a cache hit and Gemini adds $4.50 per million tokens an hour to keep its explicit cache. Past 200,000 tokens Gemini rises to $4 and $18, close to Opus 5.5's flat $4 and $20.
Sources
- Anthropic, Claude API pricing · checked
- OpenAI, API pricing · checked
- Google, Gemini API pricing · checked
- DeepSeek, Models and pricing · checked
- xAI, Models and pricing · checked
- Alibaba Cloud Model Studio, Model pricing · checked
Related calculators
- Claude Opus 5.5 API Cost CalculatorPrice Claude Opus 5.5 at $4 in and $20 out per million tokens, with 5% cache hits, and see how it compares with Opus 5, GPT and Gemini.
- Gemini 3.1 Pro API Cost CalculatorPrice Gemini 3.1 Pro at $2 in and $12 out per million tokens, with its higher rates above 200,000 tokens and the hourly cost of its context cache.
- LLM API Cost CalculatorPrice a real workload across Claude, GPT, Gemini, DeepSeek, Grok and Qwen side by side, with prompt caching, batch discounts and exact token counts.
- Prompt Caching ROI CalculatorSee whether caching your system prompt or documents pays off: cache writes, reads, expiry and break-even for Claude, GPT and Gemini.
More in AI, Cloud & Developer
- Claude Opus 5.5 vs Claude Opus 5 API Cost
- Claude Fable 5.1 vs GPT-6 Astra API Cost
- Claude Haiku 4.5 vs GPT-6 Luna API Cost
- Claude Haiku 4.5 vs Gemini 3.8 Flash API Cost
- Claude Haiku 4.5 vs Gemini 3.5 Flash-Lite API Cost
- GPT-6 Sol vs Gemini 3.1 Pro API Cost
- GPT-6 Sol vs GPT-5.6 Terra API Cost
- GPT-6 Luna vs Gemini 3.5 Flash-Lite API Cost
- All 99 AI, Cloud & Developer calculators