How to Reduce Mistral API Costs

A Mistral API bill is cached input, uncached input and output tokens, multiplied by the model, the endpoint and the tier. Find out which workload and token type are spending the money first, using a key or workspace per workload. Then work through eight levers in order: send a prompt_cache_key and keep the prefix stable, move work that can wait to the Batch API, pick the model per request, set reasoning_effort per request, cap the output, trim the input, pay for regional endpoints and Priority Tier only where needed, and add a router last. No savings percentage, because the result depends on your traffic.

Published 2026-11-25 by Dor Amir on the Nadir blog.

Filed under Pricing & Models.

To reduce Mistral API costs, first find out which workload and which token type are spending the money. Then work through eight levers in order: send a prompt_cache_key and keep the prefix stable so cached input bills at a tenth of the rate, move anything that can wait to the Batch API, pick the model per request, set reasoning_effort per request, cap the output, trim the input, use the regional endpoints and Priority Tier only where you need them, and add a router last. Mistral's price spread is wide: in November 2026 its own lineup ran from Ministral 3 3B at about $0.10 per million input tokens to Mistral Medium 3.5 at about $1.50 input and $7.50 output, so the model choice is usually the biggest lever after caching.

This is a checklist, not a benchmark. It contains no savings percentage, because the result depends on your traffic. Caching behaviour comes from Mistral's prompt caching documentation. Batch, tier and per-model prices are as reported by third-party pricing trackers in November 2026, and Mistral changes prices and retires models often, so check the [Mistral pricing page](https://mistral.ai/pricing) before you plan around a number.

Where a Mistral bill comes from.

La Plateforme bills per token, with three token types:

Token typeWhat it isHow it bills
Cached inputA prompt prefix the API matched in its cache10% of the model's input rate
Uncached inputEverything else in the promptBase input rate
OutputThe answer, tool calls and any thinking tokensBase output rate, from equal to input on Ministral up to 5x input on Medium

Three more things multiply that rate:

Step 0: measure before you change anything.

If uncached input is the largest share, start with levers 1 and 6. If one workload is most of the bill, start with levers 3 and 4. If most of the traffic is offline work, start with lever 2.

The eight levers.

1. Send a prompt_cache_key and keep the prefix stable

Cached prompt tokens bill at 10% of the model's input rate, with no write premium. Mistral's documentation says the prompt_cache_key parameter "increases the chance of a cache hit, but it doesn't guarantee one", so send it on requests that share context: one key per conversation, or one per system prompt that many users share. Do not put secrets or user data in the key. A hit also needs an identical start of the prompt, so put everything that does not change first: system prompt, tool definitions, reference documents, few-shot examples. Put the user's input last. A timestamp, a request ID or a reordered tool list near the top breaks the match for everything after it. If cached_tokens stays at zero on requests that share a long prefix, either the key or the prefix is changing. Some client libraries do not pass prompt_cache_key through yet, so check the raw request. Why caching comes first is in The Closest Thing to Free Money.

2. Move anything that can wait to the Batch API

The Batch API takes a file of requests (or an inline list for smaller jobs), runs them asynchronously, and bills about half of list price. A job can hold up to a million requests, and timeout_hours defaults to 24. Evaluations, backfills, enrichment, nightly classification and document processing belong there. Batch is not available on the regional endpoints, so a job that must stay in-region pays the online regional rate. Batch discounts across providers are compared in Half Price, One Day Late, and the full tier ladder in Four Prices, One Model.

3. Pick the model per request

Within Mistral's own lineup the spread from Ministral 3 3B to Medium 3.5 is more than 10x on input and more than 70x on output. Classification, extraction, routing labels and short summaries usually run well on Ministral or Small 4. Codestral is priced for code completion and fill-in-the-middle, not for general chat. Choose the model in code for each request type, and compare cost per task rather than per token, because models differ in how many tokens they spend as well as what they charge per token. In a multi-turn conversation, choose at the start, because the cache is per model and a switch re-sends the whole prefix, as worked through in Your Router Is Fighting Your Prompt Cache.

4. Set reasoning effort per request

Mistral has moved reasoning from the separate Magistral models to a reasoning_effort parameter on its current models, and the older Magistral reasoning models are deprecated. Thinking tokens bill at the output rate. Set the effort per request type, not once for the whole service: use none for lookups and formatting, and raise it only where the task needs it. Mistral recommends replaying the full assistant message, thinking included, into the history, so thinking tokens also count as input on every later turn. That makes high effort in a long conversation more expensive than its first-turn cost suggests. Cross-provider settings are in The Overthinking Tax.

5. Cap and shrink the output

Set max_tokens to what the feature needs. Ask for the format you will parse: a label, or a JSON object with only the fields you read. Use JSON mode or a JSON schema where you parse the result, so a malformed answer does not cost a retry that pays the full input again. On Medium 3.5, where output costs five times input, this lever is worth more than on Ministral, where the two rates are equal. More patterns are in The Expensive Half.

6. Trim the input

Send the relevant chunk, not the whole document. Long context windows (256K tokens on most current Mistral models) make it easy to send far more than the model needs, and every token is billed as input. Check how many retrieved chunks each query adds, as covered in Twenty Chunks, Three Read. Drop tool definitions the request cannot use. In agent loops, clear old tool results instead of carrying them forward, because every turn re-sends the history. Trimming inside the cached prefix changes the prefix, so trim when you deploy, not on each request.

7. Use regional endpoints and Priority Tier only where you need them

The regional endpoints cost about 10% more and lose Batch. Priority Tier costs about 75% more on every token type. Both are worth paying for on the requests that need them, and only those. Route regulated requests to the regional endpoint and the rest to the global one, and send service_tier only from the latency-critical path. Per-request pinning pays the premium only on the pinned share, as worked through in The Residency Tax.

8. Add a router last

Choosing the model and reasoning effort in code (levers 3 and 4) works until the request types blur and nobody can say which ones need the big model. A router helps when traffic is a real mix of easy and hard requests. It does not help when the cheap model already passes nearly everything, when the candidate models are close in price, or when a switch would throw away a warm cache. We published our own negative results in When LLM Routing Does Not Help, and compared the products in How to Choose an LLM Router.

Self-hosting the open weights is a utilization bet.

Several Mistral models ship open weights, so self-hosting is a real option. It saves money only when the GPUs stay busy. At low or spiky utilization you pay for idle hours, and the API, especially Batch, is cheaper. Measure your sustained tokens per minute on the API first, and compare against a GPU you would actually keep busy. The arithmetic is in Self-Hosted LLM vs API.

Where Nadir fits.

Nadir covers lever 8 and part of lever 4, and on Mistral it does that through the decision API.

Nadir does not do levers 1, 2, 5, 6 or 7 for you. Cache keys, prompt prefix, Batch, output size, input size and endpoint choice are yours to change, and on many workloads they are the larger share of the bill. Nadir publishes no universal savings rate. Measure first, then decide whether a router is worth adding.

The same checklist for the other platforms is How to Reduce OpenAI API Costs, How to Reduce Claude API Costs, How to Reduce Gemini API Costs, How to Reduce Amazon Bedrock Costs, How to Reduce Azure OpenAI Costs and How to Reduce DeepSeek API Costs. The provider-neutral version is How to Reduce LLM API Costs.

Conclusion.

First find out which workload and which token type are spending the money, which on Mistral means a key or workspace per workload. Send a prompt_cache_key and keep the prefix stable. Move work that can wait onto the Batch API. Choose the model and reasoning effort per request, cap the output and trim the input. Pay for regional endpoints and Priority Tier only on the requests that need them. Add a router once the model choice needs to happen without anyone maintaining it by hand.

More on pricing & models

Pages on this site

Machine-readable summaries of this site: llms.txt and llms-full.txt.