MistralvsZ.ai·Updated Nov 2026
Codestral 2508 logovsGLM 4 Flash 250414 logo

Codestral 2508 vs GLM 4 Flash 250414

Side-by-side pricing tables, surcharge math, capability benchmarks, and 30-day spend estimators across 411 live models and cloud GPU matchups.

Switch Comparison Matchup411 · Updated Nov 2026
Cheaper Input
GLM 4 Flash 250414 logoGLM 4 Flash 250414-83%

$0.05 vs $0.30 / 1M

Cheaper Output
GLM 4 Flash 250414 logoGLM 4 Flash 250414-89%

$0.10 vs $0.90 / 1M

AA Intelligence / AA Engineering
GLM 4 Flash 250414

—

Context Window
Codestral 2508 logoCodestral 25082×

256K vs 128K tokens

Capability Benchmarks & Third-Party Evaluations

Compare Artificial Analysis intelligence and engineering indexes, core capability matrices, and standardized external leaderboards.

AA Intelligence · Engineering · Arena · SWE-bench
Artificial Analysis Benchmarks
AA Intelligence
Codestral 2508 logoCodestral 2508Pending
GLM 4 Flash 250414 logoGLM 4 Flash 250414Pending
AA Engineering
Codestral 2508 logoCodestral 2508Pending
GLM 4 Flash 250414 logoGLM 4 Flash 250414Pending
Core Capability Profile
MetricCodestral 2508GLM 4 Flash 250414
Reasoning—Yes
Input Modalitiestext, filetext
Tools & JSONToolsTools
Prompt Caching$0.03/1M$0.05/1M
Open-WeightOpenOpen

Side-by-side specification matrix

USD ·
MetricCodestral 2508 logoCodestral 2508GLM 4 Flash 250414 logoGLM 4 Flash 250414Compare
Input / 1M$0.30$0.05GLM 4 Flash 250414 -83%
Output / 1M$0.90$0.10GLM 4 Flash 250414 -89%
5m Cache Write / 1M$0.30$0.05GLM 4 Flash 250414 -83%
1h Cache Write / 1M———
Cache Read$0.03$0.05Codestral 2508 -40%
Web Search / Call———
Context256K (256,000)128K (128,000)Codestral 2508 2×
Max Output205K (204,800)32K (32,000)Codestral 2508 6.4×
AA Intelligence(Artificial Analysis)———
AA Engineering———
Capabilitiestext, filetextCodestral 2508
ReasoningNot listedSupportedGLM 4 Flash 250414
Structured Outputs(JSON Schema)Not listedNot listedEqual
Open-WeightOpen-WeightOpen-WeightEqual

30-day production cost estimator

Adjust daily volume, prompt length, and cache hit rate to model 30-day API spend.

LLM API Monthly Cost Calculator
2,000
2,500
500
50%
0
60,000 · 150.0M · 30.0M
Est. 30-Day Spend
Estimated monthly savings with GLM 4 Flash 250414 $41.25/mo ($495.00)
-80%
Codestral 2508 logoCodestral 2508
$51.75/mo
In: $22.50
Cache: $2.25
Out: $27.00
Search: N/A
GLM 4 Flash 250414 logoGLM 4 Flash 250414Best Value
$10.50/mo
In: $3.75
Cache: $3.75
Out: $3.00
Search: N/A

Frequently Asked Questions

Is Codestral 2508 or GLM 4 Flash 250414 cheaper per API token?

GLM 4 Flash 250414 is 83% cheaper on input tokens ($0.05 vs $0.30 per 1M). For output tokens, GLM 4 Flash 250414 costs 89% less ($0.10 vs $0.90 per 1M).

How do Codestral 2508 and GLM 4 Flash 250414 prompt caching discounts compare?

Codestral 2508 offers 40% cheaper cache reads at $0.03/1M compared to $0.05/1M for GLM 4 Flash 250414. Codestral 2508 5m write: $0.30/1M; GLM 4 Flash 250414 5m write: $0.05/1M.

Which model has a larger context window: Codestral 2508 or GLM 4 Flash 250414?

Codestral 2508 provides a 2× larger context window (256K vs 128K tokens). For single-turn output generation, Codestral 2508 caps at 205K tokens and GLM 4 Flash 250414 caps at 32K tokens.

How do Codestral 2508 and GLM 4 Flash 250414 compare on benchmarks and capabilities?

Compare Codestral 2508 (Mistral) and GLM 4 Flash 250414 (Z.ai) across tool calling (yes vs yes) and reasoning support above.

Related Head-to-Head Matchups

Comparisons