Codestral Mamba
Codestral Mamba is a language model from Mistral AI. It is currently free at 1 provider with up to 256K tokens of context. The model is suited to coding.
- Developer
- Mistral AI
- Context
- 256K tokens
- Type
- Text
- License
- Proprietary
Where to use Codestral Mamba for free
Each row is a separate free endpoint with its own limits.
| Provider | Context | Limit | Card | |
|---|---|---|---|---|
Mistral AI open-codestral-mamba |
256K | 1 req/min · 500 tokens/min | — | Open |
Quick start
curl https://api.mistral.ai/v1/chat/completions \
-H "Authorization: Bearer $MISTRAL_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"model": "open-codestral-mamba",
"messages": [{"role": "user", "content": "Hello!"}]
}'from openai import OpenAI
client = OpenAI(
base_url="https://api.mistral.ai/v1",
api_key="YOUR_MISTRAL_API_KEY",
)
reply = client.chat.completions.create(
model="open-codestral-mamba",
messages=[{"role": "user", "content": "Hello!"}],
)
print(reply.choices[0].message.content)import OpenAI from "openai";
const client = new OpenAI({
baseURL: "https://api.mistral.ai/v1",
apiKey: process.env.MISTRAL_API_KEY,
});
const reply = await client.chat.completions.create({
model: "open-codestral-mamba",
messages: [{ role: "user", content: "Hello!" }],
});
console.log(reply.choices[0].message.content);Example for Mistral AI. Any OpenAI-compatible client works: Cursor, Cline, OpenCode, Open WebUI.
Benchmarks
This model is not on the Artificial Analysis leaderboard yet. We do not publish our own estimates.
Similar free models
FAQ
Is Codestral Mamba free?
Yes. As of September 26, 2026, Codestral Mamba is free at Mistral AI. Each provider has its own limits — see the table above.
What is the context window of Codestral Mamba?
The largest context among free routes is 256,000 tokens. Some providers cap it lower.
How do I call Codestral Mamba via API?
Use any OpenAI-compatible client with base URL https://api.mistral.ai/v1, model ID open-codestral-mamba, and a Mistral AI key.
Is Codestral Mamba open-weight?
No, it is proprietary: access is only through provider APIs.