Anthropic: Claude Sonnet 4.6 vs OpenAI: GPT-5.4
OpenAI: GPT-5.4 is 1.2× cheaper for input tokens: Anthropic: Claude Sonnet 4.6 costs $3.00 per M and OpenAI: GPT-5.4 costs $2.50 per M. They cost about the same for output tokens: Anthropic: Claude Sonnet 4.6 $15.00 per M, OpenAI: GPT-5.4 $15.00 per M. About the same: Anthropic: Claude Sonnet 4.6 takes up to 1,000,000 tokens of context and OpenAI: GPT-5.4 up to 1,050,000.
| Anthropic: Claude Sonnet 4.6 | OpenAI: GPT-5.4 | |
|---|---|---|
| Model id | anthropic/claude-sonnet-4.6 | openai/gpt-5.4 |
| Input | $3.00 per M | $2.50 per M |
| Output | $15.00 per M | $15.00 per M |
| Context length | 1,000,000 tokens | 1,050,000 tokens |
| Accepts | file, image, text | file, image, text |
| Produces | text | text |
| Served by | anthropic | openai |
Prices are the providers' list prices per million tokens, as of . Both run on your own provider key through one OpenAI-compatible endpoint, with no fee on the tokens.