Skip to content
Dashboard

Mistral Codestral

Mistral Codestral is Mistral's first dedicated code generation model, trained on 80+ programming languages with a context window of 128K tokens and fill-in-the-middle (FIM) support for in-context code completion. Your use subject to Mistral's Terms & Privacy Policies.

Tool Use
index.ts
import { streamText } from 'ai'
const result = streamText({
model: 'mistral/codestral',
prompt: 'Why is the sky blue?'
})

More models by Mistral

Model
Context
Latency
Throughput
Input
Output
Cache
Web Search
Capabilities
Providers
ZDR
No Training
Release Date
256K
0.3s
42tps
$0.10/M
$0.30/M
mistral logo
12/09/2025
256K
0.4s
39tps
$0.40/M
$2/M
mistral logo
12/09/2025
256K
0.5s
61tps
$0.50/M
$1.50/M
mistral logo
12/02/2025
128K
0.3s
134tps
$0.10/M
$0.10/M
mistral logo
10/16/2024
32K
0.3s
$0.10/M
$0.30/M
mistral logo
09/17/2024
$0.10/M
mistral logo
12/11/2023