DeepSeek vs Grok API pricing, compared model by model
On 10 November 2026 the cheapest DeepSeek model, DeepSeek V4 Flash 0731, costs $0.07 per million input tokens against $1.00 for the cheapest xAI model, Grok Build 0.1, and the typical DeepSeek model is the cheaper of the two.
| DeepSeek (DeepSeek) | Grok (xAI) | |
|---|---|---|
| Models listed | 14 | 7 |
| Cheapest model | DeepSeek V4 Flash 0731, $0.07 in, $0.14 out | Grok Build 0.1, $1.00 in, $2.00 out |
| Most expensive model | DeepSeek V4 Pro 0423, $0.90 in, $1.50 out | Grok 4.7, $2.00 in, $6.00 out |
| Median input price | $0.265 | $1.25 |
| Median output price | $0.92 | $2.50 |
| Largest context | 1.05M, DeepSeek V4.1 Flash 1017 | 2M, Grok 4.20 Multi-Agent |
| Newest model | DeepSeek V4.1 Flash 1017, 2026-10-17 | Grok 4.7, 2026-09-21 |
| Models with a batch price | 3 | 3 |
Every model, with your monthly cost
| Model | Provider | Input | Output | Cached input | Batch in / out | Context | Your month | Listed |
|---|---|---|---|---|---|---|---|---|
| DeepSeek V4.1 Flash 1017 | DeepSeek | $0.15 | $0.60 | $0.003 | $0.011 / $0.20 | 1.05M | $18.00 | 2026-10-17 |
| Grok 4.7 | xAI | $2.00 | $6.00 | $0.50 | $1.60 / $4.80 | 500K | $210.00 | 2026-09-21 |
| DeepSeek V4.1 Flash Relace, cheapest of 30 hosts | DeepSeek | $0.006 | $0.50 | $0.005 | $0.112 / $0.336 | 1.05M | $7.86 | 2026-09-10 |
| DeepSeek V4 Flash Vision Exp DeepInfra, cheapest of 2 hosts | DeepSeek | $0.44 | $1.32 | $0.014 | 1.05M | $46.20 | 2026-08-21 | |
| DeepSeek V4 Pro 0813 | DeepSeek | $0.66 | $1.98 | $0.022 | 1.05M | $69.30 | 2026-08-12 | |
| Grok 4.6 | xAI | $2.00 | $6.00 | $0.50 | $1.60 / $4.80 | 500K | $210.00 | 2026-08-12 |
| DeepSeek V4 Flash 0731 Relace, cheapest of 24 hosts | DeepSeek | $0.07 | $0.14 | $0.014 | $0.048 / $0.144 | 1.05M | $6.30 | 2026-07-31 |
| Grok 4.5 | xAI | $2.00 | $6.00 | $0.30 | 500K | $210.00 | 2026-07-08 | |
| Grok Build 0.1 | xAI | $1.00 | $2.00 | $0.20 | 256K | $90.00 | 2026-05-20 | |
| Grok 4.3 | xAI | $1.25 | $2.50 | $0.20 | $1.00 / $2.00 | 1M | $112.50 | 2026-04-30 |
| DeepSeek V4 Pro 0423 Relace, cheapest of 12 hosts | DeepSeek | $0.90 | $1.50 | $0.25 | 1.05M | $76.50 | 2026-04-24 | |
| DeepSeek V4 Flash 0423 DeepInfra, cheapest of 13 hosts | DeepSeek | $0.09 | $0.18 | $0.018 | 1.05M | $8.10 | 2026-04-24 | |
| Grok 4.20 Multi-Agent | xAI | $1.25 | $2.50 | $0.20 | 2M | $112.50 | 2026-03-31 | |
| Grok 4.20 | xAI | $1.25 | $2.50 | $0.20 | 2M | $112.50 | 2026-03-31 | |
| DeepSeek V3.2 DeepInfra, cheapest of 7 hosts | DeepSeek | $0.26 | $0.38 | $0.13 | 164K | $21.30 | 2025-12-01 | |
| DeepSeek V3.2 Exp served by SiliconFlow | DeepSeek | $0.27 | $0.41 | 164K | $22.35 | 2025-09-29 | ||
| DeepSeek V3.1 Terminus served by SiliconFlow | DeepSeek | $0.27 | $1.00 | 164K | $31.20 | 2025-09-22 | ||
| DeepSeek V3.1 DeepInfra, cheapest of 4 hosts | DeepSeek | $0.25 | $0.95 | $0.13 | 164K | $29.25 | 2025-08-21 | |
| R1 0528 DeepInfra, cheapest of 3 hosts | DeepSeek | $0.50 | $2.15 | $0.35 | 164K | $62.25 | 2025-05-28 | |
| DeepSeek V3 0324 SiliconFlow, cheapest of 2 hosts | DeepSeek | $0.25 | $1.00 | 164K | $30.00 | 2025-03-24 | ||
| DeepSeek V3 DeepInfra, cheapest of 2 hosts | DeepSeek | $0.32 | $0.89 | 164K | $32.55 | 2024-12-26 |
All DeepSeek prices . All Grok prices . Every provider
Common questions
Is DeepSeek cheaper than Grok?
On 10 November 2026, the median DeepSeek model on this list costs $0.265 per million input tokens and $0.92 per million output tokens, against $1.25 and $2.50 for xAI. By that measure DeepSeek is cheaper, but compare the specific models you would use, since both providers sell models at very different price points.
What is the cheapest DeepSeek model compared with the cheapest Grok model?
The cheapest DeepSeek model on this list is DeepSeek V4 Flash 0731 at $0.07 in and $0.14 out per million tokens. The cheapest xAI model is Grok Build 0.1 at $1.00 in and $2.00 out.
Which has the larger context window, DeepSeek or Grok?
The largest DeepSeek context on this list is 1.05M tokens (DeepSeek V4.1 Flash 1017) and the largest Grok context is 2M tokens (Grok 4.20 Multi-Agent).
How should I choose between DeepSeek and Grok for a production agent?
Price per token is one input. Run both on a set of your own real cases, count how often each needs a retry or a human check, and compare the total cost of a correct answer rather than the cost of a token.
Choosing a model for a production agent
Price is one input. Quality on your own cases, latency and the cost of retries decide the rest. Tell me what you are building.