Mistral logo
Mistral

Mistral Medium 3.1

Call Mistral Medium 3.1 for general-purpose chat, reasoning, and tool use — through one OpenAI-compatible endpoint, with local payments, on the Go plan and up.

Model id mistral-medium-3.1 Context 131K tokens Plan Go plan & up Input $0.40 /1M Output $2.00 /1M

Last updated June 5, 2026

Pricing

Per 1M tokens, billed from your credit balance — there is no markup on usage.

DirectionPrice / 1M tokens
Input$0.40
Output$2.00
How billing works. The rate above is what usage costs against your prepaid credits on a paid plan — no per-token markup, and Zylo's flat 25% platform fee applies only when you add credits. The free Basic plan instead gives a daily allowance of Basic-tier models (10 requests/min, no card, no credits). Mistral Medium 3.1 requires the Go plan or higher — the free Basic plan only includes Basic-tier models. Prices update live from our catalogue.

Quickstart

Already using the OpenAI SDK? Change two lines — base_url and your key — and set the model to mistral-medium-3.1.

Terminal
curl https://api.zyloai.net/v1/chat/completions \
  -H "Authorization: Bearer YOUR_ZYLO_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "model": "mistral-medium-3.1",
    "messages": [{"role": "user", "content": "Hello from Zylo!"}]
  }'
Python
# pip install openai
from openai import OpenAI

client = OpenAI(
    api_key="YOUR_ZYLO_KEY",
    base_url="https://api.zyloai.net/v1",
)

response = client.chat.completions.create(
    model="mistral-medium-3.1",
    messages=[{"role": "user", "content": "Hello from Zylo!"}],
)
print(response.choices[0].message.content)
Node.js
// npm install openai
import OpenAI from "openai";

const client = new OpenAI({
  apiKey: "YOUR_ZYLO_KEY",
  baseURL: "https://api.zyloai.net/v1",
});

const response = await client.chat.completions.create({
  model: "mistral-medium-3.1",
  messages: [{ role: "user", content: "Hello from Zylo!" }],
});
console.log(response.choices[0].message.content);

Migrating?

On OpenRouter this model is mistralai/mistral-medium-3.1; on Zylo, use the id mistral-medium-3.1.

Frequently asked questions

How much does Mistral Medium 3.1 cost on Zylo?

Mistral Medium 3.1 is billed at its base per-token rate: $0.40 per 1M input tokens and $2.00 per 1M output tokens, deducted from your prepaid credits. There is no markup on usage — Zylo's 25% platform fee applies only when you add credits.

Which plan do I need to use Mistral Medium 3.1?

Mistral Medium 3.1 requires the Go plan or higher. The free Basic plan only includes Basic-tier models; paid plans (Go and up) add premium models like Mistral Medium 3.1 and include credits you spend on usage at the rate above.

What is the context window of Mistral Medium 3.1?

Mistral Medium 3.1 supports up to 131K tokens of context through Zylo's OpenAI-compatible API.

Is Mistral Medium 3.1 OpenAI-compatible?

Yes. Point any OpenAI SDK at https://api.zyloai.net/v1, use your Zylo API key, and set the model to mistral-medium-3.1.

How do I switch Mistral Medium 3.1 from OpenRouter to Zylo?

On OpenRouter this model is mistralai/mistral-medium-3.1. On Zylo, use the bare id mistral-medium-3.1 with base URL https://api.zyloai.net/v1 — no vendor prefix.

Related reading

Guides for building on Mistral Medium 3.1 and other models through one API.

Start building with Mistral Medium 3.1

Mistral Medium 3.1 runs on the Go plan or higher — create an account and upgrade to the Go plan to call it.

Create your account