Claude Sonnet 5 vs Gemini 3.1 Pro Preview: API price and specs
Claude Sonnet 5 is 17% cheaper than Gemini 3.1 Pro Preview on output price.
Claude Sonnet 5 is 9% cheaper than Gemini 3.1 Pro Preview on a 1M-in / 200k-out workload.
Gemini 3.1 Pro Preview has a 4.9% larger context than Claude Sonnet 5.
| Field | Claude Sonnet 5 | Gemini 3.1 Pro Preview |
|---|---|---|
| Lowest input, per 1M | $1.00 | $1.00 |
| Median input, per 1M | $2.00 | $2.00 |
| Lowest output, per 1M | $5.00 | $6.00 +20% |
| Median output, per 1M | $10.00 | $12.00 +20% |
| Lowest unit price | — | — |
| Cost of 1M in + 200k out | $2.00 | $2.20 +10% |
| Context | 1M +4.6% | 1M |
| Max output | 128K | 66K +48.8% |
| Providers | 33 | 28 +15.2% |
| Regions | APAC, AU, EU, GLOBAL, IN, JP, US | GLOBAL, US |
| Accepts | application/pdf, file, image, image/gif, image/jpeg, image/png, image/webp, pdf, text | application/pdf, audio, audio/aac, audio/aiff, audio/alaw, audio/flac, audio/l16, audio/m4a, audio/mp3, audio/mpeg, audio/mulaw, audio/ogg, audio/opus, audio/wav, audio/webm, file, image, image/heic, image/heif, image/jpeg, image/png, image/webp, pdf, text, video, video/3gpp, video/avi, video/mov, video/mp4, video/mpeg, video/mpg, video/webm, video/wmv, video/x-flv |
| Returns | text | text |
| Type | Text models | Text models |
| Free option | no | no |
| Cheapest provider | openrouter | kilo |
Your own workload: how many tokens the model gets (input) and gives back (output) - for example, in a month. The "Cost" row of the table above is recalculated for these numbers, for each model.
Computed from current offers each time the page opens; the best value of a row is bold, the percent is how far behind the best.
Providers selling both
302ai, abacus, aihubmix, aiml, cometapi, deepinfra, edenai, fastrouter, google-vertex, impossibl, jiekou, kenari, kilo, meganova, ofox, opencode, openrouter, orcarouter, perplexity-agent, requesty, standardcompute, trustedrouter, vercel, zenmux
Frequently asked questions
Which is cheaper, Claude Sonnet 5 or Gemini 3.1 Pro Preview?
Claude Sonnet 5 is 17% cheaper than Gemini 3.1 Pro Preview on output price. Claude Sonnet 5 is 9% cheaper than Gemini 3.1 Pro Preview on a 1M-in / 200k-out workload.
Which has the larger context, Claude Sonnet 5 or Gemini 3.1 Pro Preview?
Claude Sonnet 5: 1M tokens; Gemini 3.1 Pro Preview: 1M tokens.
Where can I use both Claude Sonnet 5 and Gemini 3.1 Pro Preview?
302ai, abacus, aihubmix, aiml, cometapi, deepinfra, edenai, fastrouter, google-vertex, impossibl, jiekou, kenari, kilo, meganova, ofox, opencode, openrouter, orcarouter, perplexity-agent, requesty, standardcompute, trustedrouter, vercel, zenmux