Mistral / mistral/codestral-latest
Codestral - access through LLMTR
A focused model for code generation, completion, and editor integrations. Delivers the most value in software development workflows rather than general chat.
Technical specifications
| Canonical ID | mistral/codestral-latest |
|---|---|
| Provider | Mistral |
| Context window | 128,000 tokens |
| Operations | CHAT_COMPLETIONS |
| Modalities | text |
Pricing
An 8% platform margin applies to credit top-ups; model usage prices are not separately marked up.
| Operation | Metric | Unit | Price |
|---|---|---|---|
| CHAT_COMPLETIONS | INPUT_TEXT | PER_1M_TOKENS | $0.300000 |
| CHAT_COMPLETIONS | OUTPUT_TEXT | PER_1M_TOKENS | $0.900000 |
Example usage
With existing OpenAI SDK flows, change only the base URL and model identifier.
curl https://llmtr.com/v1/chat/completions -H "Authorization: Bearer llmtr-your_key" -H "Content-Type: application/json" -d '{"model":"mistral/codestral-latest","messages":[{"role":"user","content":"Hello"}]}'
Guides about this model
- Codestral: when to prefer it over a general model in an editor integration - Codestral is listed on its catalog page with a 'Code' status label, and its description states it delivers more value in software development workflows than general chat. This article covers when that focused choice makes sense in an editor integration.
- Mistral Large 3: when to scale up from Ministral or Codestral - The Ministral article covered the edge/API price decision, and the Codestral article covered editor integration. This article covers when you need to move up to the family's strongest member.
Related models
- Mistral Large 3 mistral/mistral-large-latest
- Mistral Small 4 mistral/mistral-small-latest
- Mistral Medium 3.1 mistral/mistral-medium-latest
- Devstral 2 mistral/devstral-medium-latest
- Magistral Medium 1.2 mistral/magistral-medium-latest
- Magistral Small 1.2 mistral/magistral-small-latest
- Devstral Small 2 mistral/devstral-small-latest
- Pixtral 12B mistral/pixtral-12b