MODELS / MISTRAL

Mistral Codestral

Mistral's cutting-edge language model for coding released end of July 2025, Codestral specializes in low-latency, high-frequency tasks such as fill-in-the-middle (FIM), code correction and test generation.

TEXTTOOL-USESTRUCTURED-OUTPUT
128K
CONTEXT WINDOW
4K
MAX OUTPUT TOKENS
$0.3
INPUT PRICE / 1M TOKENS
$0.9
OUTPUT PRICE / 1M TOKENS
QUICKSTART

Call it in one request.

OpenAI-compatible: change the base URL, and the setup is complete.

curl https://enterprise.blackbox.ai/v1/chat/completions \
  -H "Authorization: Bearer $BLACKBOX_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "model": "blackboxai/mistral/codestral",
    "messages": [{ "role": "user", "content": "Hello!" }],
    "stream": true
  }'
SPECIFICATIONS

The full spec sheet.

Context, pricing, modalities, routing, and deployment: everything Mistral Codestral supports, in one table.

MODEL ID
blackboxai/mistral/codestral
DEVELOPED BY
Mistral
MODEL TYPE
Text
RELEASED
May 29, 2024
CONTEXT WINDOW
128K
MAX OUTPUT TOKENS
4K
INPUT MODALITIES
text
OUTPUT MODALITIES
text
INPUT PRICE
$0.3 / 1M tokens
OUTPUT PRICE
$0.9 / 1M tokens
CACHE READ
$0.03 / 1M tokens
REASONING
Not supported
DATA RETENTION
Standard retention
DEDICATED DEPLOYMENT
Not available (closed-weight model)
SUPPORTED PARAMETERS
max_tokenstemperaturestoptoolstool_choiceresponse_formatstructured_outputs