Codestral vs Grok 2 Vision

Performance benchmarks + pricing comparison — updated April 2026

Codestral

Mistral

Mistral's dedicated coding model. Open-weight and highly optimized for code generation and completion.

Input$0.300/M
Output$0.900/M
Context128K tokens
Best ForCode completion, code generation, IDE integration
Benchmark60/100

Grok 2 Vision

xAI

Grok 2 with image input support. Vision capabilities combined with real-time X knowledge.

Input$2.00/M
Output$10.00/M
Context128K tokens
Best ForImage analysis with social context, visual understanding

Cost Comparison by Scenario

Estimated cost per project with 30% cache hit rate. Actual costs may vary based on usage patterns.

ScenarioCodestralGrok 2 VisionSavings
Small Script (1K lines) $0.04 $0.37 Codestral saves $0.33 (90%)
Medium Feature (10K lines) $0.29 $2.70 Codestral saves $2.42 (89%)
Large Project (50K lines) $1.43 $13.50 Codestral saves $12.07 (89%)
Code Review (5K lines) $0.07 $0.60 Codestral saves $0.53 (88%)

Verdict

Codestral wins on both price and performance — $0.300/M input with a benchmark score of N/A/100.

For most developers, this is the clear choice between these two models.

Compare with Other Models