Anthropic Claude Sonnet Latest vs Google: Gemini 3.1 Pro Preview
They cost about the same for input tokens: Anthropic Claude Sonnet Latest $2.00 per M, Google: Gemini 3.1 Pro Preview $2.00 per M. Anthropic Claude Sonnet Latest is 1.2× cheaper for output tokens: Anthropic Claude Sonnet Latest costs $10.00 per M and Google: Gemini 3.1 Pro Preview costs $12.00 per M. About the same: Anthropic Claude Sonnet Latest takes up to 1,000,000 tokens of context and Google: Gemini 3.1 Pro Preview up to 1,048,576. Anthropic Claude Sonnet Latest accepts file, image, text; Google: Gemini 3.1 Pro Preview accepts audio, file, image, text, video.
| Anthropic Claude Sonnet Latest | Google: Gemini 3.1 Pro Preview | |
|---|---|---|
| Model id | anthropic/claude-sonnet-latest | google/gemini-3.1-pro-preview |
| Input | $2.00 per M | $2.00 per M |
| Output | $10.00 per M | $12.00 per M |
| Context length | 1,000,000 tokens | 1,048,576 tokens |
| Accepts | file, image, text | audio, file, image, text, video |
| Produces | text | text |
| Served by | anthropic |
Prices are the providers' list prices per million tokens, as of . Both run on your own provider key through one OpenAI-compatible endpoint, with no fee on the tokens.