Mistral AI logo

Mistral AI Free API

mistral.ai

European frontier models with a free “Experiment” tier.

Free tier No credit card OpenAI-compatible Verified November 2026
Get your free Mistral AI key

Opens Mistral AI’s official key page. You create and own the key — FreeLLMKeys never sees or stores it.

Quick facts

Base URL
https://api.mistral.ai/v1
Free access
Free “Experiment” plan with rate-limited access to the full model catalog.
Rate limits
~1 request/sec and a monthly token ceiling on the free plan.
Credit card
Not required
OpenAI-compatible
Yes — reuse your OpenAI SDK
Free models
Mistral Large, Mistral Small 3.2, Codestral, Pixtral 12B, Ministral 8B, Mistral Nemo

About 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

  1. 1Go to the official key page: https://console.mistral.ai/api-keys
  2. 2Create a free account — no credit card needed.
  3. 3Open the API keys section and generate a new key. Copy it somewhere safe.
  4. 4In your code, set the base URL to https://api.mistral.ai/v1 and paste your key.
  5. 5Call a model such as mistral-small-latest using the examples below.

Code examples

Replace YOUR_MISTRAL_KEY with the key you created.

Python
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)
JavaScript
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
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