Codestral by Mistral
Dedicated code model with a free “Codestral” API key - fill-in-the-middle + chat.
Quickstart
curl https://api.mistral.ai/v1/chat/completions \
-H "Authorization: Bearer $KEY" \
-d '{"model":"codestral-latest","messages":[{"role":"user","content":"write fizzbuzz"}]}'Frequently asked
Is Codestral free?
Yes. Mistral offers it as Free API tier with these limits: 30 RPM free tier. No credit card is required.
Can I use Codestral commercially?
The free tier is non-commercial. For production or commercial use you need a paid plan or a different model.
How do I start using Codestral?
Get a free API key from the provider dashboard. Set the base URL to https://api.mistral.ai/v1 and the model to codestral-latest. Dedicated code model with a free “Codestral” API key - fill-in-the-middle + chat.
Building with this model?
We wire free-tier and open-weight models into production stacks: evals against your real inputs, failover, cost caps.
Free monthly update
The monthly free-models update
What is newly free, what got rate-limited, and what to switch to. One email a month. Unsubscribe anytime.
Related free models
- Kimi K2.6 (Ollama Cloud) · Free tier
- GLM 4.6 (Z.ai) · Self-host free
- Qwen3.7 Max (Qwen) · Free tier
- Gemini 2.5 Flash (Google AI Studio) · Generous · no card
- Gemini 2.5 Pro (Google Gemini) · 5 RPM, 50 RPD
- Gemini 3.5 Flash (Google Gemini) · 15 RPM, 1,500 RPD