DeepSeek Coder pricing
Source: litellm · updated 2026-10-27
Short answer: DeepSeek Coder costs $0.140 per million input tokens and $0.280 per million output tokens. That is a 3:1 blended rate of $0.175 per million tokens, ranking it #173 of 704 tracked models by input price.
Price breakdown
| Metric | USD |
|---|---|
| Input, per 1M tokens | $0.140 |
| Output, per 1M tokens | $0.280 |
| Output รท input multiple | 2.00× |
| 3:1 blended, per 1M tokens | $0.175 |
| Context window | 128,000 tokens |
What a typical workload costs
| Monthly volume | Input cost | Output cost | Total | 1M in / 250K out | $0.140 | $0.070 | $0.210 |
|---|---|---|---|
| 10M in / 2.5M out | $1.40 | $0.700 | $2.10 |
| 100M in / 25M out | $14.00 | $7.00 | $21.00 |
Other deepseek models
| Model | Input | Output |
|---|---|---|
| DeepSeek V4.1 Flash | $0.050 | $0.150 |
| DeepSeek V4 Flash 0731 | $0.119 | $0.238 |
| DeepSeek V4 Flash Vision Exp | $0.216 | $0.647 |
| DeepSeek Chat V3.1 | $0.250 | $0.950 |
| DeepSeek Chat | $0.257 | $1.03 |
Compare against
Cheaper alternatives
Next cheaper option: Hermes 3 70 B at $0.120 per 1M input tokens. Next step up: Llama Guard 4 12 B at $0.180 per 1M input tokens.