token.app › Compare › GPT-5.1-Codex-Mini vs Claude Sonnet 5

GPT-5.1-Codex-Mini vs Claude Sonnet 5

GPT-5.1-Codex-Mini is 5.8× cheaper per token on a blended 3:1 basis. Claude Sonnet 5 accepts the larger context window (1M).

Head to head
Blended price uses a 3:1 input:output mix
GPT-5.1-Codex-MiniClaude Sonnet 5
ProviderOpenAIAnthropic
Input $/1M$0.250$2.00
Output $/1M$2.00$10.00
Blended $/1M$0.688$4.00
Context window400K1M
Max output128K128K
ReleasedNov 2025Jun 2026
LicenceProprietaryProprietary
Choose GPT-5.1-Codex-Mini if…
  • Costs less per token — $0.688 vs $4.00 blended
Choose Claude Sonnet 5 if…
  • Larger context window (1M)
  • Newer model (released Jun 2026)
FAQ
Which is better, GPT-5.1-Codex-Mini or Claude Sonnet 5?
We do not hold independently-run benchmark scores covering both GPT-5.1-Codex-Mini and Claude Sonnet 5, so we make no quality claim. Their pricing and specifications are compared on this page.
Is GPT-5.1-Codex-Mini cheaper than Claude Sonnet 5?
GPT-5.1-Codex-Mini is cheaper: $0.688 versus $4.00 per million tokens blended at 3:1 input:output. Input alone: $0.250 vs $2.00. Output alone: $2.00 vs $10.00.
What context windows do GPT-5.1-Codex-Mini and Claude Sonnet 5 have?
GPT-5.1-Codex-Mini: 400,000 tokens. Claude Sonnet 5: 1,000,000 tokens.
Who makes GPT-5.1-Codex-Mini and Claude Sonnet 5?
GPT-5.1-Codex-Mini is made by OpenAI. Claude Sonnet 5 is made by Anthropic.
Related comparisons