Codestral by Mistral
Dedicated code model with a free “Codestral” API key - fill-in-the-middle + chat.
Access
Free API tier
Free limits
30 RPM free tier
Modality
code, text
Credit card
Not required
Commercial use
Not on the free tier
Model ID
codestral-latest
Base URL
https://api.mistral.ai/v1
Last verified
June 2026
How to use Codestral
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?
Dedicated code model with a free “Codestral” API key - fill-in-the-middle + chat.
Related free models
- Kimi K2.6 (Ollama Cloud) · Free tier
- Gemini 2.5 Flash (Google AI Studio) · Generous · no card
- GLM 4.6 (Z.ai) · Self-host free
- @cf/openai/gpt-oss-120b (Cloudflare Workers AI) · 10K neurons/day (shared)
- bytedance-seed/dola-seed-2.0-pro:free (Kilo Code) · ~200 req/hr
- @cf/deepseek-ai/deepseek-r1-distill-qwen-32b (Cloudflare Workers AI) · 10K neurons/day (shared)
Want this wired into your business?
We build production automations and agents on free and paid models, picked for your workload and budget.
Book a build call