Samprix

Claude Sonnet 5 vs Gemini 3.1 Pro Preview: API cost

Standard, cached and batch API prices for Claude Sonnet 5 (Anthropic) and Gemini 3.1 Pro Preview (Google), and what each costs for your usage.

Prices last checked: how

Claude Sonnet 5 is cheaper than Gemini 3.1 Pro Preview at standard rates, with the same input price and 17% cheaper output.

Your usage
Claude Sonnet 5 / month $156.00 $0.0052 per request
  • Input $60.00
  • Cached input $6.00
  • Output $90.00
Gemini 3.1 Pro Preview / month $174.00 $0.0058 per request
  • Input $60.00
  • Cached input $6.00
  • Output $108.00
Claude Sonnet 5 is cheaper for this usage by $18.00 a month (10% less).

How cost changes with reply length

  • Claude Sonnet 5
  • Gemini 3.1 Pro Preview
$0$5$10$1502004006008001,000Output tokens per 1,000 input tokensClaude Sonnet 5Gemini 3.1 Pro Pr…
Cost of 1,000 requests with 1,000 input tokens each, at standard rates without caching. Hover or use the arrow keys to read values.
Show as a table
Output tokensClaude Sonnet 5Gemini 3.1 Pro Preview
0$2.00$2.00
250$4.50$5.00
500$7.00$8.00
750$9.50$11.00
1,000$12.00$14.00

Price per million tokens

Token typeClaude Sonnet 5Gemini 3.1 Pro Preview
Input$2$2
Cached input$0.20$0.20
Output$10$12
Batch input$1$1
Batch cached input$0.10$0.20
Batch output$5$6

Gemini 3.1 Pro Preview: Prompts over 200K tokens are billed at a higher rate.

Standard rates in USD, before tax Claude API pricing Gemini API pricing

Monthly cost for typical workloads

WorkloadClaude Sonnet 5Gemini 3.1 Pro Preview
Support chatbot
2,000 in / 300 out tokens, 1,000 requests a day, 50% cached
$156.00$174.00
Document summaries
10,000 in / 800 out tokens, 200 requests a day
$168.00$177.60
Tagging / classifying
400 in / 20 out tokens, 20,000 requests a day
$600.00$624.00
Standard rates in USD, before tax. A month is 30 days.

Or see Claude Sonnet 5 pricing, Gemini 3.1 Pro Preview pricing, or compare any two models.

FAQ

Frequently asked questions

Is Claude Sonnet 5 cheaper than Gemini 3.1 Pro Preview?

Claude Sonnet 5 is cheaper than Gemini 3.1 Pro Preview at standard rates, with the same input price and 17% cheaper output. Based on standard API rates last checked on 28 Sept 2026.

How much do Claude Sonnet 5 and Gemini 3.1 Pro Preview cost per million tokens?

Claude Sonnet 5: $2 per million input tokens and $10 per million output tokens. Gemini 3.1 Pro Preview: $2 input and $12 output. These are standard rates in USD, before tax, from each provider’s own pricing page.

Which is cheaper with the Batch API?

Claude Sonnet 5’s batch rates are $1 input and $5 output per million tokens (50% off); Gemini 3.1 Pro Preview’s batch rates are $1 input and $6 output per million tokens (50% off).

Does prompt caching change the comparison?

Claude Sonnet 5 charges $0.20 per million cached input tokens, against $2 for normal input; Gemini 3.1 Pro Preview charges $0.20 per million cached input tokens, against $2 for normal input. Cache write and storage charges are extra and aren’t included here.

© 2026 Samprix. Not affiliated with OpenAI, Anthropic or Google.