Anthropic: Claude Sonnet 5 vs Google: Gemini 3.1 Pro Preview

They cost about the same for input tokens: Anthropic: Claude Sonnet 5 $2.00 per M, Google: Gemini 3.1 Pro Preview $2.00 per M. Anthropic: Claude Sonnet 5 is 1.2× cheaper for output tokens: Anthropic: Claude Sonnet 5 costs $10.00 per M and Google: Gemini 3.1 Pro Preview costs $12.00 per M. About the same: Anthropic: Claude Sonnet 5 takes up to 1,000,000 tokens of context and Google: Gemini 3.1 Pro Preview up to 1,048,576. Anthropic: Claude Sonnet 5 accepts file, image, text; Google: Gemini 3.1 Pro Preview accepts audio, file, image, text, video.

Anthropic: Claude Sonnet 5Google: Gemini 3.1 Pro Preview
Model idanthropic/claude-sonnet-5google/gemini-3.1-pro-preview
Input$2.00 per M$2.00 per M
Output$10.00 per M$12.00 per M
Context length1,000,000 tokens1,048,576 tokens
Acceptsfile, image, textaudio, file, image, text, video
Producestexttext
Served byanthropicgoogle

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.