Codestral by Mistral AI

Free "Experiment" plan, no credit card. ~1B tokens/month. Prompts may be used to improve models.

Access
Free API tier
Free limits
~1 RPS, 500K TPM
Modality
code
Credit card
Not required
Commercial use
Unclear, verify
Context window
256,000 tokens
Model ID
codestral-2501
Base URL
https://api.mistral.ai/v1
Last verified
June 2026

How to use Codestral

Free "Experiment" plan, no credit card. ~1B tokens/month. Prompts may be used to improve models.

Quickstart

curl https://api.mistral.ai/v1/chat/completions \
  -H "Authorization: Bearer $KEY" \
  -d '{"model":"codestral-2501","messages":[{"role":"user","content":"hi"}]}'

Frequently asked

Is Codestral free?

Yes. Mistral AI offers it as Free API tier with these limits: ~1 RPS, 500K TPM. No credit card is required.

Can I use Codestral commercially?

Commercial terms are not clearly documented. Check the provider's current terms before shipping.

How do I start using Codestral?

Free "Experiment" plan, no credit card. ~1B tokens/month. Prompts may be used to improve models.

Related free models

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