Skip to content

Mistral Codestral

Mistral Codestral is Mistral AI'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.

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

More models by Mistral AI

Model
Context
Latency
Throughput
Input
Output
Cache
Web Search
Per Query
Capabilities
Providers
ZDR
No Training
Release Date
256K
0.3s
73tps
$0.40/M$2.00/M
mistral logo
12/09/2025
256K
0.2s
123tps
$0.20/M$0.20/M
mistral logo
12/01/2025
128K
0.2s
79tps
$0.10/M$0.10/M
mistral logo
10/01/2024
128K
0.2s
125tps
$0.15/M$0.15/M
mistral logo
10/01/2024
32K
0.3s
$0.10/M$0.30/M
mistral logo
09/01/2024
$0.10/M
mistral logo
12/11/2023