Skip to content
llmmodels

Claude Sonnet 5 vs Gemini 3.1 Pro Preview Custom Tools

Claude Sonnet 5 is slightly cheaper on a blended (3:1 input:output) token price. Gemini 3.1 Pro Preview Custom Tools has the larger context window (1M vs 1M).

SpecClaude Sonnet 5Gemini 3.1 Pro Preview Custom Tools
ProviderAnthropicGoogle DeepMind
ReleasedJun 29, 2026 (better)Feb 19, 2026
TypeReasoning LLMReasoning LLM
Parameters——
Context window1M1M (better)
Max output125K (better)64K
Input price / 1M$2$2
Output price / 1M$10 (better)$12
Input modalitiestext, image, pdf, filetext, image, audio, video, pdf, file (better)
Open weightsNoNo
LicenseProprietaryProprietary
Reasoning modeYesYes
Tool callingYesYes
API providers56 (better)11
Epoch Capabilities Index156.9—
GPQA Diamond90.5%—
SWE-bench Verified—75.6%
WebDev Arena1537—
OTIS Mock AIME94.7%—
FrontierMath65.6%—
SimpleQA Verified33.7%—

Cost example

For a workload of 10M input + 2M output tokens per month: Claude Sonnet 5 costs $40.00 and Gemini 3.1 Pro Preview Custom Tools costs $44.00 at list price (Anthropic / google pricing).

About Claude Sonnet 5

Claude Sonnet 5 is a proprietary reasoning llm from Anthropic, released Jun 29, 2026. It has a 1M-token context window and accepts text, image, pdf, file input. API pricing starts at $2 per million input tokens and $10 per million output tokens. It is available from 56 API providers. It scores 156.9 on the Epoch Capabilities Index. Full Claude Sonnet 5 specs →

About Gemini 3.1 Pro Preview Custom Tools

Gemini 3.1 Pro Preview Custom Tools is a proprietary reasoning llm from Google DeepMind, released Feb 19, 2026. It has a 1M-token context window and accepts text, image, audio, video, pdf, file input. API pricing starts at $2 per million input tokens and $12 per million output tokens. It is available from 11 API providers. Full Gemini 3.1 Pro Preview Custom Tools specs →

Compare other models

FAQ

Which is better, Claude Sonnet 5 or Gemini 3.1 Pro Preview Custom Tools?

Claude Sonnet 5 is slightly cheaper on a blended (3:1 input:output) token price. Gemini 3.1 Pro Preview Custom Tools has the larger context window (1M vs 1M).

Is Claude Sonnet 5 cheaper than Gemini 3.1 Pro Preview Custom Tools?

Claude Sonnet 5 costs $2 input / $10 output per 1M tokens; Gemini 3.1 Pro Preview Custom Tools costs $2 / $12. Claude Sonnet 5 is cheaper overall.

Which has a bigger context window?

Claude Sonnet 5: 1,000,000 tokens. Gemini 3.1 Pro Preview Custom Tools: 1,048,576 tokens.

Are Claude Sonnet 5 and Gemini 3.1 Pro Preview Custom Tools open source?

Claude Sonnet 5 is proprietary; Gemini 3.1 Pro Preview Custom Tools is proprietary.