Codestral

MistralStandard

Code-specialized model. Optimized for code generation, review, and completion.

Pricing

Input (per 1M tokens)
$0.30
Output (per 1M tokens)
$0.90

Cost Examples

ScenarioCost
100 chat messages (500 in / 200 out each)$0.0330
1K API calls (2K in / 500 out each)$1.0500
10K short requests (200 in / 100 out each)$1.5000
1M tokens input + 100K output$0.3900

Capabilities

Context Window
256K
Max Output
8K
Speed
100 tok/s
Released
2025-01-14
NoVision
NoTool Use
YesStreaming
YesJSON Mode

API Details

Model IDcodestral-latest
API Endpointhttps://api.mistral.ai/v1/chat/completions
Last Updated2026-04-12

Other Mistral Models

Open Cost Calculatorto compare Codestral costs with other models