Anthropic
qwen3-coder
qwen/qwen3-coder
Price per million tokens
- Input
- $0.380
- Output
- $1.266
- Cache write
- not offered
- Cache read
- $0.127
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
- 262,144 tokens
- Max output
- 65,536 tokens
- Images
- text only
What it costs to run
| Workload | Input | Output | Cost | Per 1,000 calls |
|---|---|---|---|---|
| Short chat turn | 1,000 | 500 | $0.0010 | $1.01 |
| Long document summary | 50,000 | 2,000 | $0.0215 | $21.52 |
| Agent step with tools | 20,000 | 1,500 | $0.0095 | $9.49 |
| 1M in, 1M out | 1,000,000 | 1,000,000 | $1.6458 | $1645.80 |
Calling it
const res = await client.chat.completions.create({ model: "qwen/qwen3-coder", messages: [{ role: "user", content: "Hello" }], });