Skip to content
ModelsRankingsChatDocsPricing
mi

Mistral: Codestral 2508

mistralai/codestral-2508

AvailableMistraltext infile intext out

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. [Blog Post](https://mistral.ai/news/codestral-25-08)

Context

256K

tokens in

Max output

205K

tokens out

Price

$0.300 / $0.900

per 1M in / out

Quick start

curl https://api.token265.com/v1/chat/completions \
  -H "Authorization: Bearer ${OPENROUTER_KEY}" \
  -H "Content-Type: application/json" \
  -d '{
    "model": "mistralai/codestral-2508",
    "messages": [{"role": "user", "content": "hello"}]
  }'
from openai import OpenAI

client = OpenAI(base_url="https://api.token265.com/v1", api_key="sk-...")
client.chat.completions.create(
    model="mistralai/codestral-2508",
    messages=[{"role": "user", "content": "hello"}],
)

Supported parameters

frequency_penaltymax_tokenspredictionpresence_penaltyresponse_formatseedstopstructured_outputstemperaturetool_choicetoolstop_p

More from Mistral