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

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

Claude Sonnet 5.5 and Gemini 3.1 Pro Preview cost the same for input ($2.00 per 1M tokens); Claude Sonnet 5.5 is 17% cheaper for output ($10.00 vs $12.00). Context window: 1,000,000 tokens for Claude Sonnet 5.5, 1,048,576 for Gemini 3.1 Pro Preview. A 10K-input, 1K-output request costs $0.03 on Claude Sonnet 5.5 and $0.032 on Gemini 3.1 Pro Preview.

Last updated: Pricing data: LiteLLM (MIT)

Claude Sonnet 5.5
$2.00 / $10.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 Sonnet 5.5Gemini 3.1 Pro PreviewClaude Sonnet 5.5 vs Gemini 3.1 Pro Preview
Input$2.00$2.00
Output$10.00$12.00-17%
Cached input$0.10$0.20-50%
Context window1,000,0001,048,576-5%
Max output128,00065,536+95%
Long-context thresholdnone200,000
Batch API input$1.00$1.00
Batch API output$5.00$6.00-17%
Image inputYesYes
Function callingYesYes
ReasoningYesYes
Prompt cachingYesYes
PDF inputYesYes
Web searchYesYes
Structured outputYesYes
Minimum cacheable prompt5124,096

Cost per task

TaskClaude Sonnet 5.5Gemini 3.1 Pro PreviewCheaper
Chat request (10K in + 1K out)$0.03$0.032Claude Sonnet 5.5 (6% less)
Codebase question (100K in + 2K out)$0.22$0.224Claude Sonnet 5.5 (2% less)
Same question, context cached (100K cached + 2K out)$0.03$0.044Claude Sonnet 5.5 (32% less)
Long document (300K in + 4K out)$0.64$1.27Claude Sonnet 5.5 (50% less)
1M tokens a month (750K in + 250K out)$4.00$4.50Claude Sonnet 5.5 (11% less)

Estimate your own workload in the calculator

Which one to pick

Full pages: Claude Sonnet 5.5 · Gemini 3.1 Pro Preview

More comparisons

Questions

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

Claude Sonnet 5.5 and Gemini 3.1 Pro Preview cost the same for input ($2.00 per 1M tokens); Claude Sonnet 5.5 is 17% cheaper for output ($10.00 vs $12.00). A 10K-input, 1K-output request costs $0.03 on Claude Sonnet 5.5 and $0.032 on Gemini 3.1 Pro Preview.

Which has the larger context window, Claude Sonnet 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 Sonnet 5.5. Max output: 128,000 tokens for Claude Sonnet 5.5, 65,536 for Gemini 3.1 Pro Preview.

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

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

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

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