groundy
Agents & Frameworks

Mistral Large 4 New Weights, Same Model ID: Rerun Your Coding Agent Evals

Vercel AI Gateway swapped Mistral Large 4 weights under the same ID. Teams must re-baseline coding, cost, and injection metrics before trusting old evals.

Published 8 references
A translucent green resin dinosaur with a skeptical yellow eye and ivory collar holds a rounded contour stencil above its mismatched jagged back scales, against a warm ivory background.
On this page10 sections

If your coding agent calls mistral/mistral-large-4 through Vercel AI Gateway, the model answering that string this week is not the model you evaluated. According to Vercel’s changelog, the existing model ID now resolves to updated Mistral Large 4 weights at lower input, cached-input, and output pricing, with no configuration change: “If you were already using mistral/mistral-large-4 via AI Gateway, there is no need to change your model to start using the updated version. The existing model ID string uses the new model with updated weights and pricing.”

That is convenient for adopting the update and quietly corrosive for your evals. Any coding pass rate, token budget, or injection-resistance score you recorded against the previous weights describes an artifact the gateway no longer serves. The changelog, citing Mistral’s release announcement, claims the updated weights “improve agentic coding and defensive cybersecurity, with greater token efficiency on coding tasks,” plus spreadsheet work, web research, and prompt-injection resistance. Every one of those claims is vendor-stated, and as of 2026-10-30 no independent benchmark is cited in the changelog or the model page.

The practical response: treat mistral/mistral-large-4 as a new model, not an upgrade. Re-baseline three measurements before routing traffic or quoting gains, and decide explicitly whether to pin.

What actually changed under the ID

Two things moved simultaneously. First, the weights: the changelog announces updated Mistral Large 4 weights on AI Gateway, with the vendor-stated improvement areas listed above. Second, the price: the changelog title itself promises “updated weights and lower pricing,” and it states the lower prices apply to input, cached input, and output tokens. The changelog lists no per-token prices; Mistral’s model page currently lists $0.7 input, $0.07 cached input, and $2.1 output per million tokens, but it does not state the previous rates, so the size of the cut is not quantified.

The pricing mechanics matter for why this reaches you automatically. Vercel states that AI Gateway reflects provider pricing with no markup and charges no platform fee on inference, including on bring-your-own-key requests. So when Mistral’s price moves, your gateway bill moves with it under the same model string. There is no version bump, no deprecation window, and no diff in your config to review. The changelog entry is dated 2026-10-29.

It also helps to be clear about what Mistral Large 4 is. Per Mistral’s model page, it is “a state-of-the-art, open-weight, general-purpose multimodal model with a granular Mixture-of-Experts architecture,” with 52B active parameters, 1.05T total parameters, and a 1.6B vision encoder (all vendor-stated). The open-weight property turns out to be the one reliable pin available.

Step one: prove which weights you’re calling

Before re-measuring anything, confirm which artifact your ID resolves to. This is the weakest link in the process: the changelog does not mention served-version metadata, so whether the gateway exposes any is an open question, and there is no verified procedure to follow. What follows is a verification checklist, not a confirmed recipe.

  • Check your gateway logs or dashboard for any exposed model version, served-model identifier, or request metadata. If AI Gateway surfaces one, record it with every eval run.
  • If you have results from before the swap, rerun a handful of fixed prompts with deterministic settings and compare outputs. A wholesale change in behavior is suggestive, not proof, but it at least tells you whether your pipeline is seeing something different.
  • Ask the provider. A support answer naming the served revision is more durable than inference from output diffs.

One caution: behavior-based fingerprinting is heuristic. Two weight versions can produce identical outputs on your probe set and diverge elsewhere. Treat “same outputs on ten prompts” as no evidence of a swap, not as evidence of no swap. And the changelog documents the remap for AI Gateway only; it says nothing about how Mistral’s direct API resolves the model name, so do not assume the same swap applies there.

Re-measure 1: coding pass rate on your own tasks

The vendor-stated headline is “improve agentic coding,” which is precisely what a coding-agent eval measures, and precisely why last week’s score is retired. The fix is a paired comparison: rerun your existing task suite against the new ID with prompts, harness, tool set, and seeds held constant, and report old weights versus new side by side.

On methodology, the AutoRestTest competition entry is a useful template. In the SBFT 2026 REST League, it reported results split into three separately ranked categories, fault detection, overall efficiency, and overall effectiveness, across 11 APIs and 317 operations (arXiv:2607.01063) under a one-hour budget, averaging 67.09 unique server errors and 17.27 processed operations per API. The lesson transfers directly: keep correctness (did the agent’s patch pass your tests) and efficiency (how many tokens, how long) as separate columns, because the vendor claims they moved in opposite, both-favorable directions. A single blended score would hide a pass-rate gain bought with a token blowout, or a token saving bought with failures.

One scope note: AutoRestTest evaluates automated REST API testing, not coding agents, and its numbers describe its own runs. Borrow the structure, not the figures.

Re-measure 2: tokens per task and the new bill

Two cost effects now stack. The changelog announces lower per-token prices, and Mistral claims greater token efficiency on coding tasks, meaning fewer tokens per completed task. Both are vendor-stated, and they multiply: cost per task is tokens per task times price per token. Measure the first term yourself and multiply it by the rates the model page lists.

Tokens per task is not a fixed property of the model. Research on tokenization economics notes that token counts “directly influences training cost, inference latency, memory use, and billing,” and that because most tokenizers are trained primarily on English corpora, behavior varies by language, “functioning as a ‘token tax’” (arXiv:2601.06142). If your coding-agent prompts include non-English comments, identifiers, or user messages, the vendor’s efficiency claim may not describe your workload. Measure tokens per completed task on your own traffic, segmented by language if it varies, rather than adopting a changelog percentage.

Re-measure 3: injection resistance under adaptive attacks

This is the axis where the vendor claim most needs stress-testing. The changelog lists improved “resistance to prompt injection” among the gains. Independent adversarial work gives that claim a demanding context: an automated universal prompt-injection attack reports an average 50% attack success rate across datasets and attack objectives using only five training instances (arXiv:2403.04957). If resistance can be undercut that cheaply, a static canary suite (“ignore previous instructions” pasted into a document) tells you little about the updated weights. Your re-test needs adaptive attacks that optimize against the actual model.

For eval owners, resistance is a measurable property, not a vibe. SecAlign formulates prompt-injection defense as preference optimization, training the model to prefer the instruction response over the injection response, and reports Meta-Llama-3-8B-Instruct with SecAlign reaching a 65.5% WinRate versus the undefended model on 804 samples (arXiv:2410.05451). That 65.5% is a utility figure from an AlpacaEval2-style comparison, a measure of whether the model treats imperative sentences in data as data rather than as instructions, not a reduction in attack success. And for detection, UniGuardian proposes a training-free harness that detects successfully activated injection, backdoor, and adversarial attacks without knowing the attack type; its shared mechanism “measures how structured prompt perturbations shift the model’s output distribution” (arXiv:2502.13141). Its limitations section sets the boundary, though: the method “requires token-level logits” and “cannot be applied directly to API-only black-box models that return only sampled text.” The changelog says nothing about logit exposure, so unless the gateway provides them, this detection cannot run through the gateway; it becomes practical mainly on the self-host branch, which is one more argument for pinning when injection testing is part of your mandate.

All of these results were obtained on other models, the 50% attack success rate on Llama2-7b-chat among them (arXiv:2403.04957); transfer to Mistral Large 4 is assumed, not shown. The point is methodological: attack success rate under adaptive attack, measured the same way before and after the swap, is the only honest way to evaluate a “resistance” claim. If you cannot run the before condition anymore (the old weights are gone from the gateway), say so in your eval report rather than implying a comparison you did not run.

Alias vs snapshot: your pinning options

The root problem is versioning policy. A stable alias that swaps weights in place optimizes for effortless upgrades; a pinned snapshot optimizes for reproducibility. Mistral Large 4 sits in an unusual position because of its open weights.

OptionWhat you getWhat it costs
Keep calling mistral/mistral-large-4 on AI GatewayWeight updates arrive without a config change, as this one did, and pricing passes throughEvals expire silently; reproducibility depends on provider behavior
Record served-version metadata per eval runAn audit trail of what produced each scoreOnly as good as the version info the gateway exposes, and the changelog does not mention any
Self-host the open weightsBit-exact pinning: the artifact is yoursYou now own inference infrastructure, and you forgo gateway pricing

The self-host row is grounded in Mistral’s model page describing Large 4 as open-weight, but it is an inference, not a documented procedure: at 1.05T total parameters (vendor-stated), serving it yourself is a serious infrastructure commitment, and neither the changelog nor the model page prices or validates that path. It is the escape hatch that closed-model aliases do not offer at all, not a free one.

How this compares across providers is not settled: no snapshot option appears in the changelog, and other providers’ versioning terms have to be checked individually, so if pinning policy drives your routing decisions, verification is a prerequisite step, not a comparison you can look up.

Re-baseline, pin, or switch: the decision rule

The evidence supports a conditional rule rather than a universal one.

Re-baseline and keep routing if the model is one of several in your pool and your eval suite is cheap to run. The paired re-run is the whole job: coding pass rate, tokens per task times the new price, and adaptive injection resistance, all labeled as measured against the post-swap weights. My inclination for most teams routing through a gateway would be exactly this, because the swap already happened and the cost of re-measuring is lower than the cost of trusting a retired baseline.

Pin by self-hosting only if reproducibility is a hard requirement, for example regulated deployments or published benchmarks where “the model changed under us” is not an acceptable footnote. Here the open weights are the deciding feature, and the infrastructure bill is the price of certainty. It is also the branch where logit-level detection such as UniGuardian’s can actually run, which matters if injection testing is part of the mandate.

Switch if the re-baseline shows the updated weights regress on your tasks. A lower sticker price does not compensate for a lower pass rate when cost is measured per completed task, and the vendor’s efficiency claim is exactly the kind of number your own suite should confirm or refute before it enters a routing decision.

A note on scope: this applies to anyone whose agentic tooling touches the same model line, not just gateway users. Mistral’s own coding surface, Vibe, bundles a coding agent with MCP-compatible tool integration, and its product page does not say which model version serves your tasks. Whatever serves your agents, the eval owns the reproducibility burden.

What this evidence doesn’t yet show

Every capability and efficiency claim for the updated weights, agentic coding, token efficiency, defensive cybersecurity, injection resistance, is vendor-stated in a changelog citing Mistral’s release announcement. As of 2026-10-30, no independent benchmark is cited in either the changelog or the model page. The changelog lists no per-token prices, and the model page lists current rates without the previous ones, so the size of the price cut is not quantified. Whether the same alias remap applies on Mistral’s direct API is not documented. And the injection-defense numbers cited above come from experiments on Llama-3-8B, Llama2-7b-chat, and other models; they establish that resistance is testable, not that Mistral Large 4’s resistance improved.

That is the actual consequence of a silent swap: the vendor’s changelog is the start of your measurement work, not the end of it. Until your own suite runs, the honest status of mistral/mistral-large-4 is “different model, unknown deltas,” and the scoreboard from last week belongs in an archive, not in a routing decision.

Frequently Asked Questions

Does the model ID change when Mistral updates the weights?

If you were already using mistral/mistral-large-4 via AI Gateway, there is no need to change your model to start using the updated version. The existing model ID string uses the new model with updated weights and pricing.

References

Follow the links in the article for context. The supporting material is collected here for further reading.

  1. Mistral Large 4 Model Documentationdocs.mistral.aiAccessed
  2. AutoRestTest Competition Entryarxiv.orgAccessed
  3. Tokenization Economics Researcharxiv.orgAccessed
  4. Automated Universal Prompt Injection Attackarxiv.orgAccessed
  5. SecAlign Preference Optimizationarxiv.orgAccessed
  6. UniGuardian Detection Harnessarxiv.orgAccessed
  7. Mistral Vibe Product Pagemistral.aiAccessed

Join the discussion

Share a useful perspective or ask a question about this article.

Discussion guidelinesComments privacy