Skip to content
Try Hanzo
Language: English (United States)

Codestral 2508

Mistral's cutting-edge language model for coding released end of July 2025.

Context Window
256K
In
$0.334per million tokens
Out
$1.00per million tokens

Mistral

Model IDmistralai/codestral-2508

Specifications

Context Window
256K
Modalities
text
Price
$0.334 in · $1.00 out, per million tokens
Model ID
mistralai/codestral-2508

Quick start

mistralai/codestral-2508

$0.334 in · $1.00 out, per million tokens

TypeScript
import OpenAI from 'openai'
 
const client = new OpenAI({
  apiKey: process.env.HANZO_API_KEY,
  baseURL: 'https://api.hanzo.ai/v1'
})
 
const response = await client.chat.completions.create({
  model: 'mistralai/codestral-2508',
  messages: [{ role: 'user', content: 'Hello!' }]
})
 
console.log(response.choices[0].message.content)
Get an API key →
100K1M$0.100$1.00

$5.34Bill a month

Codestral 2508 costs 1.8× more for this mix.

Codestral 2508$5.34256K
Mistral Small 4$3.01262K

Use Codestral 2508 via Hanzo AI

One API key. Every major model. OpenAI-compatible. Start free.