Repository navigation
Conversation
… dated keys mistral-large-latest now serves Mistral Large 4 (26.10) at $0.70 in, $0.07 cached in, $2.10 out per 1M. mistral-small-latest serves Mistral Small 4 (26.03) at $0.15 in, $0.60 out per 1M. Adds mistral-large-4, mistral-large-4-0 and mistral-small-2603 to pricing and general configs. Source: https://docs.mistral.ai/inference/pricing
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
mistral-large-latestandmistral-small-latestare still priced as Large 3 and Small 3.2, but Mistral moved both aliases to the new models, so calls through them are billed low right now.From Mistral's model pages and pricing page (checked 2026-11-17), USD per 1M tokens:
mistral-large-latestmistral-small-latestSo Large is under-billed about 29% on both input and output, and Small output is under-billed by half.
What changed:
pricing/mistral-ai.json: repointed the two-latestrows to the prices above. Addedmistral-large-4andmistral-large-4-0(the dated API names on the Large 4 model page) andmistral-small-2603(the dated name for Small 4). The Large 4 rows getcache_read_input_tokenat the published cached-input price andcache_write_input_tokenat 0, same shape asdeepseek.json.general/mistral-ai.json: added the three new keys as chat withtoolsandimage(both models take text and image input and support function calling per their model pages).What I left alone, on purpose:
mistral-large-2512stays at 0.50 / 1.50. That is still the right Large 3 price; Mistral lists it as deprecated (retiring 2027-04-30), not repriced.Small 4 and the Ministral 3 rows get no cached-input price, because Mistral does not publish one for them. Only Large 4 has a cached-input line on the pricing page.
The
default.calculateblock in this file only multipliesinput_tokensbyrequest_token, so the newcache_read_input_tokenvalue is there for when cached tokens are counted, same as the DeepSeek file today. If you want it to bill now, I can add thecache_read_tokensterm to the Mistralcalculateblock in this PR or a follow-up, matchingopenai.json.New model pricing
Update existing pricing
New model configuration
Bug fix
Source Verification
Source Link: https://docs.mistral.ai/inference/pricing (aliases and dated names: https://docs.mistral.ai/models/mistral-large-4-0 and https://docs.mistral.ai/models/mistral-small-4-0-26-03)
Checklist
jqor an online validator (jq emptyon every file inpricing/andgeneral/, pluspython3 scripts/check_duplicate_keys.py, both clean)Related Issue
No issue filed for this one. I found it with an automated cross-check of this repo's prices against llm-prices (https://github.com/Mattbusel/llm-prices), a provider price table I keep checked against vendor pages, then confirmed every number by hand on Mistral's pages before writing it. If it is useful, I can turn that cross-check into a small GitHub Action that opens a diff here when a provider's published price moves, so the next alias switch shows up the week it happens.
Disclosure: I maintain llm-prices (https://github.com/Mattbusel/llm-prices).