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 LatestGoogle: Gemini 3.1 Pro Preview
Model idanthropic/claude-sonnet-latestgoogle/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.