47 model prices
  1. Home
  2. Models
  3. Comparisons
  4. Claude Opus 5.5 vs Gemini 3.1 Pro Preview

Claude Opus 5.5 vs Gemini 3.1 Pro Preview: API pricing and context window

Gemini 3.1 Pro Preview is 50% cheaper than Claude Opus 5.5 for input ($2.00 vs $4.00 per 1M tokens) and 40% cheaper for output ($12.00 vs $20.00). Context window: 1,000,000 tokens for Claude Opus 5.5, 1,048,576 for Gemini 3.1 Pro Preview. A 10K-input, 1K-output request costs $0.06 on Claude Opus 5.5 and $0.032 on Gemini 3.1 Pro Preview.

Last updated: Pricing data: LiteLLM (MIT)

Claude Opus 5.5
$4.00 / $20.00
Input / Output, per 1M tokens · 1M context window
Gemini 3.1 Pro Preview
$2.00 / $12.00
Input / Output, per 1M tokens · 1M context window

Side by side

FieldClaude Opus 5.5Gemini 3.1 Pro PreviewClaude Opus 5.5 vs Gemini 3.1 Pro Preview
Input$4.00$2.00+100%
Output$20.00$12.00+67%
Cached input$0.20$0.20
Context window1,000,0001,048,576-5%
Max output128,00065,536+95%
Long-context thresholdnone200,000
Batch API input$2.00$1.00+100%
Batch API output$10.00$6.00+67%
Image inputYesYes
Function callingYesYes
ReasoningYesYes
Prompt cachingYesYes
PDF inputYesYes
Web searchYesYes
Structured outputYesYes
Minimum cacheable prompt5124,096

Cost per task

TaskClaude Opus 5.5Gemini 3.1 Pro PreviewCheaper
Chat request (10K in + 1K out)$0.06$0.032Gemini 3.1 Pro Preview (47% less)
Codebase question (100K in + 2K out)$0.44$0.224Gemini 3.1 Pro Preview (49% less)
Same question, context cached (100K cached + 2K out)$0.06$0.044Gemini 3.1 Pro Preview (27% less)
Long document (300K in + 4K out)$1.28$1.27Gemini 3.1 Pro Preview (0.6% less)
1M tokens a month (750K in + 250K out)$8.00$4.50Gemini 3.1 Pro Preview (44% less)

Estimate your own workload in the calculator

Which one to pick

Full pages: Claude Opus 5.5 · Gemini 3.1 Pro Preview

More comparisons

Questions

Which is cheaper, Claude Opus 5.5 or Gemini 3.1 Pro Preview?

Gemini 3.1 Pro Preview is 50% cheaper than Claude Opus 5.5 for input ($2.00 vs $4.00 per 1M tokens) and 40% cheaper for output ($12.00 vs $20.00). A 10K-input, 1K-output request costs $0.06 on Claude Opus 5.5 and $0.032 on Gemini 3.1 Pro Preview.

Which has the larger context window, Claude Opus 5.5 or Gemini 3.1 Pro Preview?

Gemini 3.1 Pro Preview accepts more: 1,048,576 input tokens, against 1,000,000 for Claude Opus 5.5. Max output: 128,000 tokens for Claude Opus 5.5, 65,536 for Gemini 3.1 Pro Preview.

How much does a typical request cost on Claude Opus 5.5 and Gemini 3.1 Pro Preview?

A chat request with 10K input and 1K output tokens costs $0.06 on Claude Opus 5.5 and $0.032 on Gemini 3.1 Pro Preview. A 100K-token codebase question with a 2K answer costs $0.44 and $0.224.

What are the differences between Claude Opus 5.5 and Gemini 3.1 Pro Preview?

Claude Opus 5.5 / Gemini 3.1 Pro Preview: input: $4.00 / $2.00; output: $20.00 / $12.00; context window: 1,000,000 / 1,048,576; max output: 128,000 / 65,536; long-context threshold: none / 200,000; Batch API input: $2.00 / $1.00; Batch API output: $10.00 / $6.00; minimum cacheable prompt: 512 / 4,096.