Quick Verdict

DeepSeek offers 6 models ranging from $0.150 to $0.550 per million input tokens. Cheapest: DeepSeek Jiuge.

xAI offers 5 models ranging from $0.300 to $5.00 per million input tokens. Cheapest: Grok 3 Mini.

Winner on price: DeepSeek ($0.150/M input). Winner on average: DeepSeek (avg $0.302/M).

Winner Per Scenario

Which provider has the cheapest model for each coding scenario?

ScenarioDeepSeek BestxAI BestWinner
Small Script (1K lines) DeepSeek Jiuge — $0.02 Grok 3 Mini — $0.03 DeepSeek wins by <$0.01
Medium Feature (10K lines) DeepSeek Jiuge — $0.17 Grok 3 Mini — $0.21 DeepSeek wins by $0.03
Large Project (50K lines) DeepSeek Jiuge — $0.86 Grok 3 Mini — $1.02 DeepSeek wins by $0.16
Code Review (5K lines) DeepSeek Jiuge — $0.04 Grok 3 Mini — $0.07 DeepSeek wins by $0.02

Head-to-Head Model Comparisons

Each DeepSeek model matched against its closest-priced xAI competitor. Medium project cost (500K input + 200K output).

DeepSeekxAICostCostSavings
DeepSeek Chat V3 Grok 3 Mini $0.31 $0.21 Grok 3 Mini saves $0.11 (35%)
DeepSeek Coder V2 Grok 3 Mini $0.31 $0.21 Grok 3 Mini saves $0.11 (35%)
DeepSeek Reasoner (R1) Grok 3 Mini $0.63 $0.21 Grok 3 Mini saves $0.43 (67%)
DeepSeek Coder V3 Grok 3 Mini $0.31 $0.21 Grok 3 Mini saves $0.11 (35%)
DeepSeek V3.2 Grok 3 Mini $0.34 $0.21 Grok 3 Mini saves $0.14 (41%)
DeepSeek Jiuge Grok 3 Mini $0.17 $0.21 DeepSeek Jiuge saves $0.03 (16%)

Full Ranking — All 11 Models

Every model from both providers, ranked by medium project cost.

#ModelProviderInput ($/M)Medium Project
1 DeepSeek Jiuge DeepSeek $0.150 $0.17
2 Grok 3 Mini xAI $0.300 $0.21
3 DeepSeek Chat V3 DeepSeek $0.270 $0.31
4 DeepSeek Coder V2 DeepSeek $0.270 $0.31
5 DeepSeek Coder V3 DeepSeek $0.270 $0.31
6 DeepSeek V3.2 DeepSeek $0.300 $0.34
7 DeepSeek Reasoner (R1) DeepSeek $0.550 $0.63
8 Grok Code xAI $1.50 $2.02
9 Grok 3 xAI $3.00 $4.05
10 Grok 3 Vision xAI $5.00 $5.75
11 Grok 4 xAI $5.00 $6.75

Explore Individual Comparisons

Detailed side-by-side comparisons between specific models.

DeepSeek Chat V3 vs Grok 3 MiniDeepSeek Coder V2 vs Grok 3 MiniDeepSeek Reasoner (R1) vs Grok 3 MiniDeepSeek Coder V3 vs Grok 3 Mini