Model Comparison

Devstral Medium vs Grok Code Fast 1Which is better in 2026?

Grok Code Fast 1 significantly outperforms across most benchmarks. Grok Code Fast 1 is 1.5x cheaper per token.

Verdict: Devstral Medium vs Grok Code Fast 1 — which is better?

Devstral Medium (by Mistral AI) and Grok Code Fast 1 (by xAI) are two of the AI models people compare most. Here is how they stack up on benchmarks, price and capabilities, and which one to pick in 2026.

Devstral Medium outperforms in 0 benchmarks, while Grok Code Fast 1 is better at 1 benchmark (SWE-Bench Verified). Grok Code Fast 1 significantly outperforms across most benchmarks.

On price, Grok Code Fast 1 is roughly 1.5x cheaper per token on a blended 3:1 input/output basis, which adds up quickly at production volume.

Grok Code Fast 1 also accepts a larger context window (256,000 input tokens), making it the stronger choice for long documents and large codebases.

Choose Devstral Medium if…

  • you want predictable pricing at $0.40/M input and $2.00/M output

Choose Grok Code Fast 1 if…

  • you want the strongest raw capability — it leads on 1 of 1 shared benchmarks
  • cost matters — it's about 1.5x cheaper per token
  • you process long inputs — it offers a 256,000 token context window
  • you want the most recent training data — it shipped Aug 2025

Performance Benchmarks

Comparative analysis across standard metrics

1 benchmarks

Devstral Medium outperforms in 0 benchmarks, while Grok Code Fast 1 is better at 1 benchmark (SWE-Bench Verified).

Grok Code Fast 1 significantly outperforms across most benchmarks.

Sun Jul 26 2026 • llm-stats.com

Arena Performance

Human preference votes

Pricing Analysis

Price comparison per million tokens

Grok Code Fast 1 costs less

For input processing, Devstral Medium ($0.40/1M tokens) is 2.0x more expensive than Grok Code Fast 1 ($0.20/1M tokens).

For output processing, Devstral Medium ($2.00/1M tokens) is 1.3x more expensive than Grok Code Fast 1 ($1.50/1M tokens).

In conclusion, Devstral Medium is more expensive than Grok Code Fast 1.*

* Using a 3:1 ratio of input to output tokens

Lowest available price from all providers
Sun Jul 26 2026 • llm-stats.com
Mistral AI
Devstral Medium
Input tokens$0.40
Output tokens$2.00
Best providerMistral
xAI
Grok Code Fast 1
Input tokens$0.20
Output tokens$1.50
Best providerxAI
Notice missing or incorrect data?Start an Issue

Context Window

Maximum input and output token capacity

Grok Code Fast 1 accepts 256,000 input tokens compared to Devstral Medium's 128,000 tokens. Devstral Medium can generate longer responses up to 128,000 tokens, while Grok Code Fast 1 is limited to 10,000 tokens.

Mistral AI
Devstral Medium
Input128,000 tokens
Output128,000 tokens
xAI
Grok Code Fast 1
Input256,000 tokens
Output10,000 tokens
Sun Jul 26 2026 • llm-stats.com

License

Usage and distribution terms

Both models are licensed under proprietary licenses.

Both models have usage restrictions defined by their respective organizations.

Devstral Medium

Proprietary

Closed source

Grok Code Fast 1

Proprietary

Closed source

Release Timeline

When each model was launched

Devstral Medium was released on 2025-07-10, while Grok Code Fast 1 was released on 2025-08-28.

Grok Code Fast 1 is 2 months newer than Devstral Medium.

Devstral Medium

Jul 10, 2025

1.0 years ago

Grok Code Fast 1

Aug 28, 2025

11 months ago

1mo newer

Knowledge Cutoff

When training data ends

Neither model specifies a knowledge cutoff date.

Unable to compare the recency of their training data.

No cutoff dates available

Provider Availability

Devstral Medium is available from Mistral AI. Grok Code Fast 1 is available from xAI.

Devstral Medium

mistral logo
Mistral
Input Price:Input: $0.40/1MOutput Price:Output: $2.00/1M

Grok Code Fast 1

xai logo
xAI
Input Price:Input: $0.20/1MOutput Price:Output: $1.50/1M
* Prices shown are per million tokens

Outputs Comparison

Notice missing or incorrect data?Start an Issue discussion

Key Takeaways

No standout differentiators in the data we have for this pair.

Larger context window (256,000 tokens)
Less expensive input tokens
Less expensive output tokens
Higher SWE-Bench Verified score (70.8% vs 61.6%)

Detailed Comparison

Interactive Arena

Judge for yourself.

Run your own prompts against Devstral Medium and Grok Code Fast 1 side-by-side, then vote on the output you prefer.

Devstral Medium
✓ Preferred
Grok Code Fast 1
Open in Playground
AI Model Comparison Table
Feature
Mistral AI
Devstral Medium
xAI
Grok Code Fast 1

FAQ

Common questions about Devstral Medium vs Grok Code Fast 1.

Which is better, Devstral Medium or Grok Code Fast 1?

Grok Code Fast 1 significantly outperforms across most benchmarks. Devstral Medium is made by Mistral AI and Grok Code Fast 1 is made by xAI. The best choice depends on your use case — compare their benchmark scores, pricing, and capabilities above.

How does Devstral Medium compare to Grok Code Fast 1 in benchmarks?

Devstral Medium scores SWE-Bench Verified: 61.6%. Grok Code Fast 1 scores SWE-Bench Verified: 70.8%.

Is Devstral Medium cheaper than Grok Code Fast 1?

Grok Code Fast 1 is 2.0x cheaper for input tokens. Devstral Medium costs $0.40/M input and $2.00/M output via mistral. Grok Code Fast 1 costs $0.20/M input and $1.50/M output via xai.

What are the context window sizes for Devstral Medium and Grok Code Fast 1?

Devstral Medium supports 128K tokens and Grok Code Fast 1 supports 256K tokens. A larger context window lets you process longer documents, conversations, or codebases in a single request.

What are the main differences between Devstral Medium and Grok Code Fast 1?

Key differences include context window (128K vs 256K), input pricing ($0.40 vs $0.20/M). See the full comparison above for benchmark-by-benchmark results.

Who makes Devstral Medium and Grok Code Fast 1?

Devstral Medium is developed by Mistral AI and Grok Code Fast 1 is developed by xAI.