Choose Anthropic: Claude Sonnet 4 if…
No advantage on the data we track — pick it for provider preference or output quality on your own prompts.
OpenAI: o3 comes out ahead on the data we track: 4 advantages and none for Anthropic: Claude Sonnet 4.
| Spec | Anthropic: Claude Sonnet 4 | OpenAI: o3 |
|---|---|---|
| Provider | Anthropic | OpenAI |
| Input price (per 1M tokens) | $3.00 | $2.00 |
| Output price (per 1M tokens) | $15.00 | $8.00 |
| Blended price (3:1 input/output) | $6.00 | $3.50 |
| Cheaper than … of all models we track | 8% | 17% |
| Context window | 200K tokens (~300 pages) | 200K tokens (~300 pages) |
| Larger context than … of all models | 37% | 37% |
| Max output per response | 64K tokens (~48,000 words) | 100K tokens (~75,000 words) |
| Input types | image, text, file | image, text, file |
| Output types | text | text |
| Free variant | No | No |
| Listed since | 2025-05-22 | 2025-04-16 |
Monthly cost at list price for five common workloads. Token counts per unit are stated so you can scale them to your own traffic. A workload that does not fit a model's context window is marked rather than priced.
| Workload (per month) | Anthropic: Claude Sonnet 4 | OpenAI: o3 | Difference |
|---|---|---|---|
| Customer-support chatbot 50,000 conversations — each a 6-turn conversation (1,500 in / 400 out tokens) | $525 | $310 | OpenAI: o3 saves $215 |
| RAG search over documents 20,000 questions — each a question answered from ~8 retrieved passages (6,000 in / 500 out tokens) | $510 | $320 | OpenAI: o3 saves $190 |
| Coding / tool-using agent 2,000 tasks — each a multi-step task with tool calls and file context (60,000 in / 6,000 out tokens) | $540 | $336 | OpenAI: o3 saves $204 |
| Batch summarisation 10,000 documents — each a 6,000-word report summarised to a page (8,000 in / 600 out tokens) | $330 | $208 | OpenAI: o3 saves $122 |
| Long-document analysis 500 documents — each a 150-page contract or codebase read in one pass (100,000 in / 2,000 out tokens) | $165 | $108 | OpenAI: o3 saves $57.00 |
| Capability | Anthropic: Claude Sonnet 4 | OpenAI: o3 | What it lets you do |
|---|---|---|---|
| Tool / function calling | ✓ Yes | ✓ Yes | call your APIs and run agent loops |
| Structured output (JSON schema) | — | ✓ Yes | return JSON that validates against your schema |
| Reasoning / thinking mode | ✓ Yes | ✓ Yes | spend extra tokens thinking before answering hard problems |
| Image input | ✓ Yes | ✓ Yes | read screenshots, charts and scanned pages |
| Audio input | — | — | take speech or audio directly |
| File / PDF input | ✓ Yes | ✓ Yes | accept documents without your own parsing step |
| Image output | — | — | generate images, not just text |
| Built-in web search | ✓ Yes | ✓ Yes | answer from live web results |
| Seed (reproducible sampling) | — | ✓ Yes | repeat a generation for tests and evals |
| Log-probabilities | — | — | read token confidence for classification and scoring |
From each model's published parameters and input/output types. “—” means not advertised, not proven absent.
No advantage on the data we track — pick it for provider preference or output quality on your own prompts.
OpenAI: o3 comes out ahead on the data we track: 4 advantages and none for Anthropic: Claude Sonnet 4.
OpenAI: o3 is cheaper: $3.50 vs $6.00 per 1M tokens at a typical 3:1 input/output mix, 42% less. For 50,000 support conversations a month that is $310 against $525.
Anthropic: Claude Sonnet 4 costs $3.00 per 1M input tokens and $15.00 per 1M output tokens; OpenAI: o3 costs $2.00 input and $8.00 output. Output tokens are billed separately, so long answers shift the gap.
Both take 200K tokens per request — roughly 300 pages of text.
Tool calling — Anthropic: Claude Sonnet 4: yes, OpenAI: o3: yes. JSON-schema structured output — Anthropic: Claude Sonnet 4: not advertised, OpenAI: o3: yes.
Yes, both accept image input.
No free variant is listed for either; both are pay-per-token.
Anthropic: Claude Sonnet 4 can write up to 64K tokens (about 48,000 words) per response; OpenAI: o3 up to 100K (about 75,000 words).
Anthropic: Claude Sonnet 4 was listed on 2025-05-22; OpenAI: o3 on 2025-04-16.
Claude Sonnet 4 significantly enhances the capabilities of its predecessor, Sonnet 3.7, excelling in both coding and reasoning tasks with improved precision and controllability. Achieving state-of-the-art performance on SWE-bench (72.7%),...
Full Anthropic: Claude Sonnet 4 specs →o3 is a well-rounded and powerful model across domains. It sets a new standard for math, science, coding, and visual reasoning tasks. It also excels at technical writing and instruction-following....
Full OpenAI: o3 specs →