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?'
})
Throughput

P50 throughput on live AI Gateway traffic, in tokens per second (TPS). Visit the docs for more info.