MISTRAL VS XAI
Magistral Medium vs Grok Code Fast 1
Grok Code Fast 1 is about 5.2x cheaper than Magistral Medium on a blended 3:1 input:output rate — the same 10K-in/2K-out request costs $0.005 vs $0.03. Grok Code Fast 1 has the larger context window (256,000 vs 128,000 tokens).
Pricing verified
API pricing per 1M tokens
| Model | Input / 1M tokens | Output / 1M tokens | Blended (3:1 mix) |
|---|---|---|---|
| Magistral Medium | $2.00 | $5.00 | $2.75 |
| Grok Code Fast 1 | $0.20 | $1.50 | $0.525 |
Rates from official Mistral pricing and official xAI pricing, checked 2026-08-11.
What a real workload costs
Example: one request with 10,000 input tokens and 2,000 output tokens, then that request at 100,000 runs per month.
| Model | Per request (10K in / 2K out) | Per month (100K requests) | Monthly delta |
|---|---|---|---|
| Magistral Medium | $0.03 | $3,000 | +$2,500 |
| Grok Code Fast 1 | $0.005 | $500 | — |
Model your own prompt sizes and volumes in the token cost analyzer, or check caching savings with the prompt caching calculator.
Specs side by side
| Spec | Magistral Medium | Grok Code Fast 1 |
|---|---|---|
| Provider | Mistral | xAI |
| Context window | 128,000 tokens | 256,000 tokens |
| Model class | Reasoning | General text |
| Tokenizer | Proprietary (counts estimated) | Proprietary (counts estimated) |
Count tokens for each model on its own page: Magistral Medium token counter and Grok Code Fast 1 token counter. All Mistral models are on the Mistral Token Counter. All xAI models are on the Grok Token Counter.
FAQ
Magistral Medium vs Grok Code Fast 1 FAQ
Which is cheaper, Magistral Medium or Grok Code Fast 1?
Grok Code Fast 1 is cheaper. At rates checked 2026-08-11, Magistral Medium costs $2.00 input / $5.00 output per 1M tokens, while Grok Code Fast 1 costs $0.20 input / $1.50 output — about a 5.2x difference on a typical 3:1 input-heavy workload.
How much does a real request cost on Magistral Medium vs Grok Code Fast 1?
A request with 10,000 input tokens and 2,000 output tokens costs about $0.03 on Magistral Medium and $0.005 on Grok Code Fast 1. At 100,000 such requests per month that is $3,000 vs $500 — a difference of $2,500 per month.
Which has the bigger context window, Magistral Medium or Grok Code Fast 1?
Grok Code Fast 1. It supports 256,000 tokens of context versus 128,000 tokens — roughly 192,000 English words in one request.
Do Magistral Medium and Grok Code Fast 1 count tokens the same way?
Not exactly. Magistral Medium uses a proprietary tokenizer (counts are estimates) and Grok Code Fast 1 uses a proprietary tokenizer (counts are estimates). The same prompt will tokenize differently, which shifts effective cost per word.