Codestral

Mistral

Specialized 22B open-weight model trained for code generation and fill-in-the-middle tasks

Pricing

per 1M tokens

Input / 1M$0.30
Output / 1M$0.90

Specifications

API Model IDcodestral-2508
Context Window256K tokens
Max Output64K tokens

Modalities

text

Capabilities

tool-usestreamingjson-modecode

Other Mistral Text / Chat Models

ModelInput / 1MOutput / 1MCache Read / 1MCache Write / 1M
Mistral Large 3$0.50$1.50
Mistral Medium 3$0.40$2.00
Mistral Small 3.2$0.06$0.18
Pixtral Large$2.00$6.00