YepAPI
MistralText Generation/v1/ai/chat

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 typePrice
Input$0.22 / 1M tokens
Output$0.89 / 1M tokens
Context window262K tokens
What it costsPer jobPer 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.

POST/v1/ai/chat

Maximum tokens in the response.

Real-time tokens

Hit "Send Request" to see the response

Mistral Small 4 specs

ProviderMistral
Model IDmistralai/mistral-small-2603
Endpoint/v1/ai/chat
TypeText Generation
Context window262K tokens
Max output8K tokens
ReasoningNo
OpenAI-compatibleYes — /v1/ai/chat/completions

How to get a Mistral Small 4 API key

  1. 1

    Create an account

    Sign up at yepapi.com with Google or email. It takes about 30 seconds.

  2. 2

    Create an API key

    Open the dashboard, go to API Keys and create a key. Copy it — it starts with yep_sk_.

  3. 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. 4

    Pay as you go

    Usage is billed per request from your balance. Top up any amount; there is no subscription.

Strengths

✓
Fast & efficient

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.

✓
Strong multilingual

Solid coverage across European and other languages despite its small size, reflecting Mistral's multilingual focus.

✓
Good at code

Capable code generation and basic debugging for routine programming tasks, punching above its weight for an ultra-low-cost model.

✓
Ultra low cost

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.

ModelProviderPriceContext
Mistral Small 4Mistral$0.22 in / $0.89 out per 1M262K
Devstral 2Mistral$0.59 in / $2.95 out per 1M262K
Mistral Large 4Mistral$2.01 in / $6.17 out per 1M1.0M
Mistral Medium 3.5Mistral$2.22 in / $11.08 out per 1M262K
Nemotron 3 SuperNVIDIA$0 in / $0 out per 1M262K
Qwen3.7 FlashQwen$0.04 in / $0.19 out per 1M1M
Solar Mini 4Upstage$0.07 in / $0.30 out per 1M524K
Nemotron 3.5 LightningNVIDIA$0.10 in / $0.30 out per 1M262K

Why use Mistral Small 4 through YepAPI?

✓One API key for all models — no separate accounts
✓OpenAI SDK compatible — just change the base URL
✓No monthly minimums — pay per token
✓Switch models with one line of code
✓Full provider passthrough — citations, search results, and all extras included
✓Streaming and non-streaming support on every model
✓Works with Cursor, Claude, LangChain, and any LLM tool
✓Unified billing across all providers

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.

Start generating in 30 seconds

Pay per call, no subscriptions.

What developers say

“Switched from SerpAPI and cut our SERP costs by 80%. Same data quality, way simpler billing.”

Marcus T.

SEO Platform Founder

“One API key for AI models, SERP data, and web scraping. Saved us from managing 4 separate providers.”

Priya S.

Full-Stack Developer

“The $5 free credit let us prototype our entire rank tracking feature before committing. No other API does that.”

Jake R.

Indie Hacker

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.

Ready to use Mistral Small 4?

Pay per call, no subscriptions.

Explore more models