Auto-generated comparison

OpenAI: GPT-5.1-Codex vs Anthropic Claude Sonnet Latest

OpenAI: GPT-5.1-Codex and Anthropic Claude Sonnet Latest are evenly matched on 6 axes — pick the one whose provider, latency, or licensing fits your stack.

Side-by-side comparison

CapabilityOpenAI: GPT-5.1-CodexAnthropic Claude Sonnet LatestWinner
Context window
Maximum number of input tokens the model can attend to in a single request.
400K1M🏆 Anthropic Claude Sonnet Latest
Input price (per 1M)
Cost per million input tokens billed by the provider.
$1.25$2.00🏆 OpenAI: GPT-5.1-Codex
Output price (per 1M)
Cost per million output tokens billed by the provider.
$10.00$10.00Tie
Tool / function calling
First-class support for emitting structured tool calls.
YesYesTie
Vision input
Accepts image inputs alongside text.
YesYesTie
Reasoning mode
Internal chain-of-thought / extended-thinking support.
YesYesTie

Frequently asked questions

Is OpenAI: GPT-5.1-Codex better than Anthropic Claude Sonnet Latest?

OpenAI: GPT-5.1-Codex and Anthropic Claude Sonnet Latest are evenly matched on 6 axes — pick the one whose provider, latency, or licensing fits your stack.

What's the price difference between OpenAI: GPT-5.1-Codex and Anthropic Claude Sonnet Latest?

Input: $1.25 vs $2.00 per 1M tokens. Output: $10.00 vs $10.00 per 1M tokens.

What context windows do OpenAI: GPT-5.1-Codex and Anthropic Claude Sonnet Latest support?

OpenAI: GPT-5.1-Codex supports up to 400K tokens. Anthropic Claude Sonnet Latest supports up to 1M tokens.

Do both OpenAI: GPT-5.1-Codex and Anthropic Claude Sonnet Latest support tool calling?

OpenAI: GPT-5.1-Codex: yes. Anthropic Claude Sonnet Latest: yes.

Compare OpenAI: GPT-5.1-Codex with other models

Compare Anthropic Claude Sonnet Latest with other models