Claude Sonnet 5 costs $3 per million input tokens and $15 per million output tokens on the Anthropic API (as of 2026-07-13), with a 1M-token context window.
Anthropic's best speed-to-intelligence balance — near-Opus quality on coding and agentic work at Sonnet cost.
Introductory pricing of $2 input / $10 output per 1M tokens applies through Aug 31, 2026.
Prices as of 2026-07-13 · verify on Anthropic's pricing page
…
Tokens (o200k)
exact for GPT-family
28
Words
— tokens/word
145
Characters
— chars/token
| Model | Input tokens | Input $/1M | Output $/1M | Context | This request |
|---|
GPT-family counts are exact — they use the same open o200k tokenizer as the models. Anthropic and Google keep their tokenizers private, so those counts are clearly-labeled estimates (Claude typically tokenizes ~10–20% above o200k; use Anthropic's free count_tokens API endpoint for exact numbers). Prices come from each provider's public pricing page — follow the links on the model pages to verify. Everything runs in your browser; your text is never uploaded.
| Request | Input tokens | Output tokens | Cost |
|---|---|---|---|
| Short prompt | 500 | 500 | $0.009 |
| Long prompt / article | 5,000 | 1,000 | $0.03 |
| Small codebase / big doc | 50,000 | 4,000 | $0.21 |
| Full context window | 1,000,000 | 8,000 | $3.12 |