Spiral gives your agent every tool with one account. Browse the tools →

Codestral 2508 vs GLM 4.7 Flash (Comparative Analysis)

Loading comparison form...
Comparative Analysis: Codestral 2508 vs. GLM 4.7 Flash
Want to try out these models side by side?Sign up for Spiral

Overview

Codestral 2508 was released 5 months before GLM 4.7 Flash.
Codestral 2508Codestral 2508
GLM 4.7 FlashGLM 4.7 Flash
Model Provider
The organization behind this AI's development
Mistral logoMistral
Z.AI logoZ.AI
Input Context Window
Maximum input tokens this model can process at once
256K
tokens
131.1K
tokens
Output Token Limit
Maximum output tokens this model can generate at once
204.8K
tokens
118K
tokens
Release Date
When this model first became publicly available
August 1st, 2025
January 19th, 2026
Knowledge Cutoff
Latest training-data date reported by the provider
March 31, 2025
Not reported

Capabilities & Features

Compare supported features, modalities, and advanced capabilities
Codestral 2508
GLM 4.7 Flash
Input Types
Supported input formats
📝Text📁File
📝Text
Reasoning Controls
Defaults and configurable reasoning effort
Not reported
Enabled by default
Output Types
Supported output formats
📝Text
📝Text
Tokenizer
Text encoding system
MistralOther
Key Features
Advanced capabilities
✓Function Calling✓Structured OutputReasoning ModeContent Moderation
✓Function Calling✓Structured Output✓Reasoning ModeContent Moderation
Open Source
Model availability
ProprietaryAvailable on HuggingFace →

Pricing

Codestral 2508 is roughly 5.0x more expensive compared to GLM 4.7 Flash for input tokens and roughly 2.3x more expensive for output tokens.
Codestral 2508Codestral 2508
GLM 4.7 FlashGLM 4.7 Flash
Input Token Cost
Cost per million input tokens
$0.30
per million tokens
$0.06
per million tokens
Output Token Cost
Cost per million output tokens
$0.90
per million tokens
$0.40
per million tokens
Cache Read Cost
Cost to reuse cached input tokens
$0.03
per million tokens
Not specified

Benchmarks

Compare relevant benchmarks between Codestral 2508 and GLM 4.7 Flash.
Codestral 2508Codestral 2508
GLM 4.7 FlashGLM 4.7 Flash
Best Design Arena Score
Highest human-preference Elo score across design arenas
1,053 Elo
(#137 in Website (37.8% win rate))
1,234 Elo
(#73 in Website (54.1% win rate))

At a Glance

Quick overview of what makes Codestral 2508 and GLM 4.7 Flash unique.
Mistral logoCodestral 2508 by Mistral can use external tools and APIs, generates structured data. It can handle standard conversations with its 256K token context window. Very affordable at $0.30/M input and $0.90/M output tokens. Released August 1st, 2025.
Z.AI logoGLM 4.7 Flash by Z.AI can use external tools and APIs, offers advanced reasoning, generates structured data. It can handle standard conversations with its 131.1K token context window. Very affordable at $0.06/M input and $0.40/M output tokens. Released January 19th, 2026.

Explore More Comparisons

Compare your models with top performers across different categories