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
July 2026

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.

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