Mistral AI Free API
mistral.aiEuropean frontier models with a free “Experiment” tier.
Opens Mistral AI’s official key page. You create and own the key — FreeLLMKeys never sees or stores it.
Quick facts
https://api.mistral.ai/v1About Mistral AI’s free API
Mistral’s La Plateforme offers a free “Experiment” tier that unlocks the whole catalog — including Codestral for code and Pixtral for vision — at a capped rate.
You verify a phone number to activate the free plan, after which you get a standard OpenAI-compatible key. Throughput is modest but fine for building and testing.
A strong choice when you want European data handling or the best open code-completion model available for free.
How to get a free Mistral AI API key
- 1Go to the official key page: https://console.mistral.ai/api-keys
- 2Create a free account — no credit card needed.
- 3Open the API keys section and generate a new key. Copy it somewhere safe.
- 4In your code, set the base URL to
https://api.mistral.ai/v1and paste your key. - 5Call a model such as
mistral-small-latestusing the examples below.
Code examples
Replace YOUR_MISTRAL_KEY with the key you created.
from openai import OpenAI
client = OpenAI(
base_url="https://api.mistral.ai/v1",
api_key="YOUR_MISTRAL_KEY"
)
resp = client.chat.completions.create(
model="mistral-small-latest",
messages=[{"role": "user", "content": "Hello!"}]
)
print(resp.choices[0].message.content)import OpenAI from "openai";
const client = new OpenAI({
baseURL: "https://api.mistral.ai/v1",
apiKey: process.env.API_KEY, // your free Mistral AI key
});
const resp = await client.chat.completions.create({
model: "mistral-small-latest",
messages: [{ role: "user", content: "Hello!" }],
});
console.log(resp.choices[0].message.content);curl https://api.mistral.ai/v1/chat/completions \
-H "Content-Type: application/json" \
-H "Authorization: Bearer $API_KEY" \
-d '{
"model": "mistral-small-latest",
"messages": [{"role":"user","content":"Hello!"}]
}'Pros & cons
Pros
- Full catalog on the free plan
- Excellent code model (Codestral)
- EU data handling
- OpenAI-compatible
Cons
- Phone verification required
- Lower throughput than paid
Mistral AI free API — FAQ
Is the Mistral AI API really free?+
Yes. Mistral AI offers free tier access: Free “Experiment” plan with rate-limited access to the full model catalog. No credit card is required to start.
How do I get a free Mistral AI API key?+
Create a free account at https://console.mistral.ai/api-keys, open the API keys section, generate a key, then set your base URL to https://api.mistral.ai/v1 in your OpenAI-compatible code.
Which models does Mistral AI offer for free?+
Mistral Large, Mistral Small 3.2, Codestral, Pixtral 12B, Ministral 8B, Mistral Nemo.
What are the Mistral AI free-tier rate limits?+
~1 request/sec and a monthly token ceiling on the free plan.
Is Mistral AI OpenAI-compatible?+
Yes. Mistral AI exposes an OpenAI Chat Completions compatible endpoint, so you can reuse your existing OpenAI SDK code and only change the base URL and API key.
Popular free models on Mistral AI
Related free LLM APIs
OVHcloud AI Endpoints
European sovereign-cloud inference, free in beta.
Scaleway Generative APIs
EU-hosted open models with a free beta allowance.
Google AI Studio (Gemini)
The most generous permanent free tier for a frontier model.