← All models
Sonnet 5 is Anthropic's most capable Sonnet-class model, with frontier performance across coding, agents, and professional work. 1,000,000 token context window, maximum output of 128,000 tokens. Higher uptime with 4 providers. Includes independent benchmarks from Artificial Analysis.
chatstreamingvisionpdftoolsjson modeimages
Details
- Accepts
- text
- Context window
- 1M tokens
Pricing
- Input
- 250 cr / 1M tokens
- Output
- 1250 cr / 1M tokens
- Cached input
- 25 cr / 1M tokens
- Cache write (5m)
- 313 cr / 1M tokens
- Cache write (1h)
- 500 cr / 1M tokens
Prices in credits (1 credit = $0.01).
Data schema
approximateInput
| Field | Type | Description |
|---|---|---|
| promptrequired | string | The text prompt. |
Output
| Field | Type | Description |
|---|---|---|
| text | string | Generated text (choices[0].message.content). |