Mistral Free API Tested: 167 tok/s, No Credit Card

On this page
  1. Free Models on La Plateforme
  2. How fast is it? We measured
  3. Get a Free Key and Make Your First Call
  4. Drop-In Replacement for the OpenAI SDK
  5. Code Generation with Codestral
  6. Mistral vs Other Free AI APIs
  7. Pricing (When You Need More)
  8. When to Use Mistral AI
  9. Final Verdict
Quick answer: Mistral AI's hosted platform, La Plateforme, gives free, rate-limited API access to Nemo, Ministral and Codestral with no credit card required — but not to Mistral Small, Medium or Mixtral, which a free key can't call (tested September 29, 2026). The API is fully OpenAI-compatible, so you switch existing code over by changing two lines. The exact free-tier limits are not published — treat them as "enough to prototype, not for production."

Mistral AI is a French company, founded in 2023, that releases most of its language models as open weights — you can run them locally, fine-tune them, or call them through the hosted API. For developers who want capable European models with permissive open-source licensing, it is one of the best free options in 2026.

Free Models on La Plateforme

These are the same open-weight models published on Hugging Face, but here you call them through a hosted endpoint with no infrastructure to manage.

Model IDSizeContextBest For
open-mistral-nemo12B128k tokensGeneral, multilingual, summarization
open-mistral-7b7B32k tokensFast responses, prototyping
open-mixtral-8x7b56B MoE32k tokens429 on a free key (Sept 2026)
open-mixtral-8x22b141B MoE64k tokens429 on a free key (Sept 2026)
codestral-latest22B32k tokensCode generation and completion

Mistral Nemo is the recommended starting point — trained with NVIDIA, 128k context, native English/French/Spanish/German. For code, codestral-latest is a strong Copilot alternative. Free-tier access is rate-limited; paid tiers unlock higher throughput plus Mistral Small and Large.

Checked September 29, 2026 on a free key: open-mistral-nemo, open-mistral-7b, codestral-latest and the ministral-3b/8b/14b-latest models all answered. open-mixtral-8x7b and open-mixtral-8x22b returned 429, and so did mistral-small-latest and every mistral-medium model — even with 12 seconds between calls. The response header explains it: x-ratelimit-limit-req-minute: 0 for mistral-small-latest, against 188 for ministral-8b-latest. A limit of zero means the free plan simply doesn't include those models; waiting won't help. mistral-large-latest returned 403 "not available in your subscription tier".

How fast is it? We measured

We ran Mistral through our open benchmark against every other free AI API — same US machine, same prompt, timed from each API's own token counts (2026-08-31):

ProviderFirst tokenGeneration
Groq0.38 s527 tok/s
Mistral (mistral-small-latest, 31 Aug — no longer callable on our free key)0.43 s167 tok/s
Google Gemini34.5 s141 tok/s
NVIDIA NIM3.5 s33 tok/s

Two honest readings of that. On 31 August Mistral was second fastest overall and its 0.43-second first token was essentially tied with Groq's — unlike Gemini's 34-second pause. But on raw generation Groq was three times quicker, so if throughput is the only thing you care about, Mistral isn't the pick. Caveat: those numbers are for mistral-small-latest, which a free key can no longer call. On 2026-10-09 the models a free key can call took 0.69 s (ministral-8b-latest) to 4.98 s (codestral-latest) to the first token; we have not re-measured their generation speed.

Where Mistral earns its place is the combination: a genuinely free tier with no credit card, European hosting, and models tuned for multilingual work. That mix is rarer than raw speed. Full comparison: free AI APIs benchmarked.

Get a Free Key and Make Your First Call

Sign up at console.mistral.ai (no credit card), verify your email, then API Keys → Create new key and copy it — it's shown only once. Set it as export MISTRAL_API_KEY="your_key_here", install the SDK, and call any free model:

pip install mistralai
import os
from mistralai import Mistral

client = Mistral(api_key=os.environ["MISTRAL_API_KEY"])

response = client.chat.complete(
    model="open-mistral-nemo",
    messages=[
        {"role": "user", "content": "Explain how mixture-of-experts models work in plain English."}
    ]
)

print(response.choices[0].message.content)

For real-time output, stream instead:

with client.chat.stream(
    model="open-mistral-nemo",
    messages=[
        {"role": "user", "content": "Write a step-by-step guide to building a REST API with FastAPI."}
    ]
) as stream:
    for text in stream.get_text_stream():
        print(text, end="", flush=True)

Node.js is the same shape (npm install @mistralai/mistralai):

import Mistral from "@mistralai/mistralai";

const client = new Mistral({ apiKey: process.env.MISTRAL_API_KEY });

const response = await client.chat.complete({
  model: "open-mistral-nemo",
  messages: [
    { role: "user", content: "What are the key differences between Mistral 7B and Mixtral 8x7B?" }
  ]
});

console.log(response.choices[0].message.content);

Drop-In Replacement for the OpenAI SDK

Mistral's API is fully OpenAI-compatible. If you already call OpenAI, switch in two lines — no new dependencies, no restructuring:

from openai import OpenAI

# Change these two lines to switch from OpenAI to Mistral
client = OpenAI(
    api_key=os.environ["MISTRAL_API_KEY"],
    base_url="https://api.mistral.ai/v1"
)

response = client.chat.completions.create(
    model="open-mistral-nemo",
    messages=[
        {"role": "user", "content": "Summarize the main benefits of using Mistral AI."}
    ]
)

print(response.choices[0].message.content)

Code Generation with Codestral

Codestral supports fill-in-the-middle (FIM) completion — give it the start and end of a function and it fills the middle. It handles Python, JavaScript, TypeScript, Java, Go, Rust, SQL, and 80+ languages:

from mistralai import Mistral

client = Mistral(api_key=os.environ["MISTRAL_API_KEY"])

# Fill-in-the-middle code completion
response = client.fim.complete(
    model="codestral-latest",
    prompt="def calculate_fibonacci(n):n    ",
    suffix="n    return result"
)

print(response.choices[0].message.content)

Mistral vs Other Free AI APIs

ProviderFree TierBest Free ModelSpeedStrengths
Mistral AIRate-limited free modelsMistral Nemo 12BFastOpen-source, EU privacy, code model
Google GeminiFree tier; caps not publishedGemini FlashVery fast1M context, multimodal
Groq30 RPM, 1,000 req/day (chat models)gpt-oss-120bFastest (LPU)Speed, low latency
DeepSeekNone — top-up requireddeepseek-v4-flashFastCheap paid reasoning
GitHub Models (retired)———Shut down 2026-07-30
Cloudflare Workers AI10K neurons/dayLlama 3.1 8BEdge-fastGlobal edge, no cold start

Where Mistral stands out: it's the only major provider here that publishes open-source weights under a permissive license. Prototype via API, then self-host the same Hugging Face models for cost savings — no lock-in.

Pricing (When You Need More)

ModelInput (per 1M)Output (per 1M)Context
Mistral Small 3.1$0.10$0.30128k
Mistral Large 2$2.00$6.00128k
Codestral$0.30$0.9032k
Mistral Embed$0.10—8k

When you hit the free rate limits, Mistral Small at $0.10/1M input tokens is one of the cheapest production-grade models available — versus $0.15/1M for GPT-4o Mini.

When to Use Mistral AI

Reach for Mistral when you need a European provider for GDPR or data residency, want to prototype via API then self-host the same weights, need a strong free code model (Codestral), want OpenAI-compatible drop-in with minimal code changes, or need multilingual support beyond English.

Consider alternatives when you need a huge context window (Gemini Flash, 1M tokens), the fastest inference (Groq), or frontier reasoning that requires GPT-4o or Claude.

Final Verdict

Mistral fills a unique niche: open-source weights, an EU data center, and a fully OpenAI-compatible API. The drop-in compatibility is the practical killer feature — switching existing OpenAI code takes about 30 seconds. Grab a free key at console.mistral.ai and your first call is two minutes away.