mistralai

Mistral: Codestral 2508

mistralai/codestral-2508

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)

Prices updated: 7/28/2026

Input
60
credits / 1M tokens
Output
180
credits / 1M tokens
Context
256k
tokens
Messages per $1 USD
≈ 670
typical message: 1k tokens in + 500 out

Prices in credits per million tokens. 1 credit = $0.01 USD. Final price, billed in MXN at the exchange rate on payment day + VAT (CFDI). Subject to change without notice.

Additional prices

Cache (read): 6.0 /1M

Spec sheet

Inputs
text, file
Outputs
text
Max output tokens
Knowledge cutoff
2025-03-31
Tokenizer
Mistral
Capabilities
Text / LLM
Tools
JSON

Use it in your code

One OpenAI-compatible endpoint. Switch models by changing one line.

curl https://api.deployalo.com/ai/gateway/v1/chat/completions \
  -H "Authorization: Bearer $DEPLOYALO_AI_KEY" \
  -H "Content-Type: application/json" \
  -d '{"model":"mistralai/codestral-2508","messages":[{"role":"user","content":"Hola"}]}'

Ready to use it?

Top up a credit pack, create your API key with a spend cap and start in minutes.