Anthropic
claude-opus-4.7
anthropic/claude-opus-4.7
Price per million tokens
- Input
- $6.330
- Output
- $31.650
- Cache write
- $7.912
- Cache read
- $0.633
What you pay. It is what the tokens cost us to buy plus 20%, and your usage page shows what we paid beside what you paid on every request you send.
Limits
- Context window
- 1,000,000 tokens
- Max output
- 128,000 tokens
- Images
- supported
What it costs to run
| Workload | Input | Output | Cost | Per 1,000 calls |
|---|---|---|---|---|
| Short chat turn | 1,000 | 500 | $0.0222 | $22.16 |
| Long document summary | 50,000 | 2,000 | $0.3798 | $379.80 |
| Agent step with tools | 20,000 | 1,500 | $0.1741 | $174.07 |
| 1M in, 1M out | 1,000,000 | 1,000,000 | $37.9800 | $37980.00 |
Calling it
const res = await client.chat.completions.create({ model: "anthropic/claude-opus-4.7", messages: [{ role: "user", content: "Hello" }], });