Anthropic
codestral-2508:batch
mistralai/codestral-2508:batch
Price per million tokens
- Input
- $0.354
- Output
- $1.063
- Cache write
- not offered
- Cache read
- $0.035
What you pay, and your usage page shows what we paid beside what you paid on every request you send.
Limits
- Context window
- 256,000 tokens
- Max output
- 204,800 tokens
- Images
- text only
What it costs to run
| Workload | Input | Output | Cost | Per 1,000 calls |
|---|---|---|---|---|
| Short chat turn | 1,000 | 500 | $0.0009 | $0.89 |
| Long document summary | 50,000 | 2,000 | $0.0199 | $19.85 |
| Agent step with tools | 20,000 | 1,500 | $0.0087 | $8.68 |
| 1M in, 1M out | 1,000,000 | 1,000,000 | $1.4179 | $1417.92 |
Calling it
const res = await client.chat.completions.create({ model: "mistralai/codestral-2508:batch", messages: [{ role: "user", content: "Hello" }], });