Samprix

Claude Sonnet 5 vs Gemini 3.5 Flash: API cost

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

Prices last checked: how

Gemini 3.5 Flash is cheaper than Claude Sonnet 5 at standard rates, with 25% cheaper input and 10% 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.5 Flash / month $130.50 $0.0043 per request
  • Input $45.00
  • Cached input $4.50
  • Output $81.00
Gemini 3.5 Flash is cheaper for this usage by $25.50 a month (16% less).

How cost changes with reply length

  • Claude Sonnet 5
  • Gemini 3.5 Flash
$0$5$10$1502004006008001,000Output tokens per 1,000 input tokensClaude Sonnet 5Gemini 3.5 Flash
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.5 Flash
0$2.00$1.50
250$4.50$3.75
500$7.00$6.00
750$9.50$8.25
1,000$12.00$10.50

Price per million tokens

Token typeClaude Sonnet 5Gemini 3.5 Flash
Input$2$1.50
Cached input$0.20$0.15
Output$10$9
Batch input$1$0.75
Batch cached input$0.10$0.075
Batch output$5$4.50
Standard rates in USD, before tax Claude API pricing Gemini API pricing

Monthly cost for typical workloads

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

Or see Claude Sonnet 5 pricing, Gemini 3.5 Flash pricing, or compare any two models.

FAQ

Frequently asked questions

Is Claude Sonnet 5 cheaper than Gemini 3.5 Flash?

Gemini 3.5 Flash is cheaper than Claude Sonnet 5 at standard rates, with 25% cheaper input and 10% cheaper output. Based on standard API rates last checked on 28 Sept 2026.

How much do Claude Sonnet 5 and Gemini 3.5 Flash cost per million tokens?

Claude Sonnet 5: $2 per million input tokens and $10 per million output tokens. Gemini 3.5 Flash: $1.50 input and $9 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.5 Flash’s batch rates are $0.75 input and $4.50 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.5 Flash charges $0.15 per million cached input tokens, against $1.50 for normal input. Cache write and storage charges are extra and aren’t included here.

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