Compare Claude Opus 4.7 from Anthropic and Gemini 3.1 Pro Preview 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 Opus 4.7 and Gemini 3.1 Pro Preview are available through the OpenRouter API, so switching between them takes a model slug change rather than a new integration.
Claude Opus 4.7, from Anthropic, has a 1,000,000-token context window and is priced at $5/M tokens input, $25/M tokens output on OpenRouter.
Gemini 3.1 Pro Preview, from Google, has a 1,048,576-token context window and is priced at $2/M tokens input, $12/M tokens output on OpenRouter.
| Claude Opus 4.7 | Gemini 3.1 Pro Preview | |
|---|---|---|
| Input price | $5/M tokens | $2/M tokens |
| Output price | $25/M tokens | $12/M tokens |
| Context window | 1,000,000 tokens | 1,048,576 tokens |
| Intelligence Index | Not available | 29.7 |
| Coding Index | 73.6 | 68.8 |
| Agentic Index | 38.6 | 8.2 |
| Latency (p50) | 1.71 s | 94.91 s |
| Throughput (p50) | 50.0 tok/s | 18.0 tok/s |
Gemini 3.1 Pro Preview has the longer context window at 1,048,576 tokens, compared with 1,000,000 tokens for Claude Opus 4.7.
Claude Opus 4.7 is faster on OpenRouter, generating a median 50.0 tokens per second compared with 18.0 tokens per second for Gemini 3.1 Pro Preview.
Claude Opus 4.7 scores higher on coding, with an Artificial Analysis Coding Index of 73.6 compared with 68.8 for Gemini 3.1 Pro Preview.