← All models
M

Codestral

Mistral

Code-specialized model with 256k context — optimized for fill-in-the-middle

Input price$0.30 / 1M tokens
Output price$0.90 / 1M tokens
Context window256k tokens
Last updated2026-04-20

Quick calculator

tokens
tokens
req/day
Per request
$0.000750
Daily
$7.50
Monthly
$225.00
per month · 30-day estimate
Yearly
$2,737.50

Tips to reduce cost

  • Use prompt caching to reuse repeated system prompts
  • Trim whitespace and reduce verbose instructions
  • Use a smaller model for classification or routing tasks
  • Batch async requests to get 50% discount (OpenAI/Anthropic)
  • Cache identical requests at the application layer

Similar models from Mistral

Compared at your current token settings