Mistral Small 4 API
Access Mistral Small 4 through one API key. Europe's leading AI model at a great price.
Mistral's efficient general-purpose model. Fast, affordable, and strong at code, reasoning, and multilingual tasks.
Takes 30 seconds.
Mistral Small 4 API pricing
Pay per request from your YepAPI balance — no subscription, no monthly minimum. Prices updated September 27, 2026.
| Token type | Price |
|---|---|
| Input | $0.22 / 1M tokens |
| Output | $0.89 / 1M tokens |
| Context window | 262K tokens |
| What it costs | Per job | Per 1,000 |
|---|---|---|
| Chat reply1K input + 500 output tokens | $0.0007 | $0.665 |
| RAG answer8K input + 800 output tokens | $0.0025 | $2.47 |
| Agent step with tools30K input + 2K output tokens | $0.0084 | $8.38 |
| Long document summary100K input + 2K output tokens | $0.024 | $23.78 |
4,900+
Developers
2.3M+
API calls served
184
Endpoints
$0.01
Per call
Yep, that's it.
Try it live
Send a message and see Mistral Small 4 respond in real time.
Maximum tokens in the response.
Real-time tokens
Mistral Small 4 specs
| Provider | Mistral |
|---|---|
| Model ID | mistralai/mistral-small-2603 |
| Endpoint | /v1/ai/chat |
| Type | Text Generation |
| Context window | 262K tokens |
| Max output | 8K tokens |
| Reasoning | No |
| OpenAI-compatible | Yes — /v1/ai/chat/completions |
How to get a Mistral Small 4 API key
- 1
Create an account
Sign up at yepapi.com with Google or email. It takes about 30 seconds.
- 2
Create an API key
Open the dashboard, go to API Keys and create a key. Copy it — it starts with yep_sk_.
- 3
Call Mistral Small 4
Send a request to /v1/ai/chat with the x-api-key header and model "mistralai/mistral-small-2603".
- 4
Pay as you go
Usage is billed per request from your balance. Top up any amount; there is no subscription.
Strengths
Mistral's efficient general-purpose model, optimized for low latency and high throughput, with a 262,144-token context window and up to 8,192 output tokens.
Solid coverage across European and other languages despite its small size, reflecting Mistral's multilingual focus.
Capable code generation and basic debugging for routine programming tasks, punching above its weight for an ultra-low-cost model.
At $0.22 / $0.89 per 1M tokens it is one of the cheapest capable models available, built for very high-volume, cost-sensitive workloads.
Quick start
Copy this snippet and start making calls with Mistral Small 4.
const res = await fetch('https://api.yepapi.com/v1/ai/chat', {
method: 'POST',
headers: {
'x-api-key': 'YOUR_API_KEY',
'Content-Type': 'application/json',
},
body: JSON.stringify({
"model": "mistralai/mistral-small-2603",
"messages": [
{
"role": "user",
"content": "Explain API gateways in 2 sentences."
}
],
"maxTokens": 256
}),
});
const { data } = await res.json();
console.log(data.message.content);Mistral Small 4 vs similar models
Every model below runs on the same API key — switch by changing the model ID.
| Model | Provider | Price | Context |
|---|---|---|---|
| Mistral Small 4 | Mistral | $0.22 in / $0.89 out per 1M | 262K |
| Devstral 2 | Mistral | $0.59 in / $2.95 out per 1M | 262K |
| Mistral Large 4 | Mistral | $2.01 in / $6.17 out per 1M | 1.0M |
| Mistral Medium 3.5 | Mistral | $2.22 in / $11.08 out per 1M | 262K |
| Nemotron 3 Super | NVIDIA | $0 in / $0 out per 1M | 262K |
| Qwen3.7 Flash | Qwen | $0.04 in / $0.19 out per 1M | 1M |
| Solar Mini 4 | Upstage | $0.07 in / $0.30 out per 1M | 524K |
| Nemotron 3.5 Lightning | NVIDIA | $0.10 in / $0.30 out per 1M | 262K |
Why use Mistral Small 4 through YepAPI?
Mistral Small 4 API — pricing, context window & access
Mistral Small 4 is Mistral's efficient general-purpose model — fast, affordable, and capable at code, reasoning, and multilingual tasks. It pairs a 262,144-token context window with up to 8,192 output tokens at an ultra-low price.
Through YepAPI you reach Mistral Small 4 over an OpenAI-compatible endpoint with one key that also covers Mistral Medium 3.5, Devstral 2, Claude, Gemini, Grok, Qwen, and Perplexity Sonar, plus SEO, SERP, and web-scraping endpoints.
What is Mistral Small 4?
Mistral Small 4 is the efficient, low-cost model in Mistral's lineup, designed for speed and volume. It handles general reasoning, code, and multilingual tasks well for its size, and is tuned to keep latency and price low. It carries a 262,144-token context window — large for a small model — and returns up to 8,192 output tokens. As Europe's leading lab's affordable model, it suits high-throughput applications where most requests are routine and cost-per-call is the priority.
Build with Mistral Small 4 via YepAPI
Set the model to mistral-small-2603 on YepAPI's OpenAI-compatible /v1/ai/chat endpoint; standard OpenAI SDK code needs only a base-URL and model-name change. Run Small 4 as a cheap default and escalate harder requests to Mistral Medium 3.5 or Claude with a one-string swap. The same key reaches Devstral 2 for coding and Sonar for web-grounded answers, so tiering needs no extra wiring.
Mistral Small 4 API pricing — $0.22 / $0.89 per 1M tokens
Mistral Small 4 costs $0.22 per 1M input tokens and $0.89 per 1M output tokens on YepAPI — among the lowest rates for any capable model. That makes it ideal for very high-volume work where you make millions of calls and need each one to be nearly free. The 256K-token window means it stays useful even on long inputs. Billing is per token with no minimums.
Mistral Small 4 for high-volume routine tasks
Small 4 is the model for scale-and-save workloads: classification, tagging, extraction, short-form generation, routing, and simple multilingual chat at massive volume. It won't match a flagship on hard reasoning, but for the large share of requests that are routine, its near-free pricing and decent quality make it the obvious workhorse — leaving Medium or a flagship to handle only the difficult cases.
What developers say
“Switched from SerpAPI and cut our SERP costs by 80%. Same data quality, way simpler billing.”
“One API key for AI models, SERP data, and web scraping. Saved us from managing 4 separate providers.”
“The $5 free credit let us prototype our entire rank tracking feature before committing. No other API does that.”
Frequently asked questions
Mistral's efficient general-purpose model. Fast, affordable, and strong at code, reasoning, and multilingual tasks.
Mistral Small 4 costs $0.22 per 1M input tokens and $0.89 per 1M output tokens through YepAPI, billed per request with no monthly fee. For example, a chat reply (1K input + 500 output tokens) costs about $0.0007.
Sign up at yepapi.com (Google or email, about 30 seconds), open the dashboard and create an API key. The same key works for Mistral Small 4 and every other model — no separate Mistral account or waitlist.
Use "mistralai/mistral-small-2603" as the model on /v1/ai/chat. The short alias "mistral-small" also works.
Yes. Point the OpenAI SDK at https://api.yepapi.com/v1/ai with your YepAPI key and set model to "mistralai/mistral-small-2603". Streaming works the same way, so existing OpenAI code only needs the base URL and key changed.
Mistral Small 4 supports a 262K token context window with up to 8K output tokens per request.
Explore more models
Devstral 2
MistralAccess Devstral 2 through one API key. Mistral's coding-specialized model for developers.
Mistral Large 4
MistralAccess Mistral Large 4 through one API key. Mistral Mistral Frontier Multimodal.
Mistral Medium 3.5
MistralAccess Mistral Medium 3.5 through one API key. Mistral's balanced mid-tier model.
Seed 1.6 Flash
ByteDanceAccess Seed 1.6 Flash through one API key. Cheapest model from ByteDance.
MiniMax M2.5
MiniMaxAccess MiniMax M2.5 through one API key. Affordable bilingual model.
MiniMax M2.7
MiniMaxAccess MiniMax M2.7 through one API key. Bilingual flagship model with massive output.
More Text Generation models
- GPT-5.5 Pro API · OpenAI
- GPT-5.4 API · OpenAI
- GPT-5.5 API · OpenAI
- Seed 1.6 API · ByteDance
- Qwen 3.5 9B API · Qwen
- GPT-5.2 API · OpenAI
- Claude Haiku 5.5 API · Anthropic
- DeepSeek V4 Pro API · DeepSeek
- Claude Sonnet 5.5 API · Anthropic
- GPT-5.2 Codex API · OpenAI
- Kimi K3 API · Moonshot AI
- Claude Sonnet 5 API · Anthropic