Compare Claude Sonnet 5 from Anthropic and Gemini 3.7 Flash from Google on key metrics including benchmarks, price, context length, and other model features. Access both models and hundreds of others through the OpenRouter API.
Claude Sonnet 5 and Gemini 3.7 Flash are available through the OpenRouter API, so switching between them takes a model slug change rather than a new integration.
Claude Sonnet 5, from Anthropic, has a 1,000,000-token context window and is priced at $2/M tokens input, $10/M tokens output on OpenRouter.
Gemini 3.7 Flash, from Google, has a 1,048,576-token context window and is priced at $0.75/M tokens input, $3.75/M tokens output on OpenRouter.
| Attribute | Claude Sonnet 5 | Gemini 3.7 Flash |
|---|---|---|
| Input price | $2/M tokens | $0.75/M tokens |
| Output price | $10/M tokens | $3.75/M tokens |
| Context window | 1,000,000 tokens | 1,048,576 tokens |
| Intelligence Index | 34.4 | 39.6 |
| Coding Index | Not available | 71.5 |
| Agentic Index | Not available | Not available |
| Latency (p50) | 2.25 s | 1.34 s |
| Throughput (p50) | 74.0 tok/s | 97.0 tok/s |
Benchmark data updated
Gemini 3.7 Flash is cheaper than Claude Sonnet 5 on OpenRouter: Gemini 3.7 Flash costs $0.75/M tokens input and $3.75/M tokens output, while Claude Sonnet 5 costs $2/M tokens input and $10/M tokens output.
Gemini 3.7 Flash has the longer context window at 1,048,576 tokens, compared with 1,000,000 tokens for Claude Sonnet 5.
Gemini 3.7 Flash is faster on OpenRouter, generating a median 97.0 tokens per second compared with 74.0 tokens per second for Claude Sonnet 5.