Claude 3.5 Sonnet vs GPT-4o Mini: Detailed Comparison

Choosing between Claude 3.5 Sonnet (Anthropic) and GPT-4o Mini (OpenAI) comes down to three things: per-token pricing, context window, and which capability matters most for your workload. Claude 3.5 Sonnet costs $3.00/M input vs $0.15/M for GPT-4o Mini; context windows are 200K vs 128K tokens. Detailed breakdown below.

Side-by-side specs

SpecClaude 3.5 SonnetGPT-4o Mini
ProviderAnthropicOpenAI
Released2024-10-222024-07-18
Input price $3.00/M $0.15/M
Output price $15.00/M $0.60/M
Cached input $0.3000/M $0.0750/M
Context window 200K 128K
Max output 8K 16K
Modalities text image text image
Tokenizer claude-3 o200k_base

Capability matrix

CapabilityClaude 3.5 SonnetGPT-4o Mini
function calling Yes Yes
json mode Yes Yes
vision Yes Yes
streaming Yes Yes
tool use Yes No

Per-call cost on typical workloads

Workload (in/out tokens)Claude 3.5 SonnetGPT-4o MiniCheaper by
Standard chat (1K / 500) $0.010500 $0.000450 GPT-4o Mini by $0.010050
RAG (4K / 500) $0.019500 $0.000900 GPT-4o Mini by $0.018600
Long doc (20K / 1K) $0.075000 $0.003600 GPT-4o Mini by $0.071400
Very long context (100K / 2K) $0.322500 $0.015900 GPT-4o Mini by $0.306600

When to choose Claude 3.5 Sonnet over GPT-4o Mini

  • Larger context window (200K vs 128K) — relevant when whole documents or long histories must fit in a single call.
  • Supports tool use — GPT-4o Mini does not.

When to choose GPT-4o Mini over Claude 3.5 Sonnet

  • Per-token input cost is 95% lower than Claude 3.5 Sonnet.

Related comparisons