Codestral 25.08 vs Gemma 4 31B IT
Price and specs side by side · USD per 1M tokens · verified 2026-11-29
// side by side
| metric | Codestral 25.08 | Gemma 4 31B IT |
|---|
| input / 1M | $0.30 | $0.09 |
| output / 1M | $0.90 | $0.34 |
| blended (3:1) | $0.45 | $0.1525 |
| cache read / 1M | $0.03 | $0.05 |
| context | 256K | 262.1K |
| max output | 8.2K | 16.4K |
| input types | text · pdf | text · image · video |
| reasoning | no | yes |
| tool calling | yes | yes |
| structured output | yes | yes |
| open weights | no | yes |
| released | 2025-07-30 | 2026-04-02 |
| knowledge cutoff | n/a | 2025-01 |
| lab | Mistral | Google |
// monthly cost scenarios
| workload | tokens in / out | Codestral 25.08 | Gemma 4 31B IT |
|---|
| Chatbot | 10M / 2M | $4.80 | $1.58 |
| RAG app | 50M / 5M | $19.50 | $6.20 |
| Coding agent | 20M / 10M | $15.00 | $5.20 |
// verdict
- Gemma 4 31B IT is 66.1% cheaper than Codestral 25.08 on a blended 3:1 input/output basis.
- Gemma 4 31B IT has the larger context window (262.1K vs 256K tokens).
- Only Gemma 4 31B IT supports built-in reasoning.
- Only Gemma 4 31B IT accepts image input.
- Chatbot (10M input / 2M output tokens per month): Gemma 4 31B IT costs $1.58 vs $4.80 for Codestral 25.08, saving $3.22 per month.
- RAG app (50M input / 5M output tokens per month): Gemma 4 31B IT costs $6.20 vs $19.50 for Codestral 25.08, saving $13.30 per month.
- Coding agent (20M input / 10M output tokens per month): Gemma 4 31B IT costs $5.20 vs $15.00 for Codestral 25.08, saving $9.80 per month.
// Codestral 25.08 or Gemma 4 31B IT: which one to choose
- Choose Gemma 4 31B IT for cost-sensitive, high-volume workloads.
- Choose Gemma 4 31B IT for long documents and large codebases (262.1K-token context).
- Choose Gemma 4 31B IT if you need built-in reasoning.
- Choose Gemma 4 31B IT if you need image input.
- Choose Gemma 4 31B IT if you want open weights you can self-host.