Mistral AI · Checked October 13, 2026

How do I run Mistral Large 4 in OpenCode, Claude Code or Codex?

Mistral Large 4 is on every Standard Compute plan from $19 as mistralai/mistral-large-4-0, so OpenCode, Claude Code and Codex draw on a fixed monthly compute budget, and new requests get HTTP 402 at 100%.

ModelMistral's open-weight flagship, released October 6, 2026 as a public preview. Mistral describes a mixture-of-experts model with 52B active and 1.05T total parameters, and a 1.6B vision encoder, built for reasoning, coding and agent work.
Model IDmistralai/mistral-large-4-0Mistral's own API calls it mistral-large-4
Base URLhttps://api.stdcmpt.com/v1Claude Code uses https://api.stdcmpt.com
Context1,048,576 tokensA request here takes up to about 850K input and 50K output tokens
InputText and images
ReasoningNo setting on the Models page; it runs at the model's default

Copy a working config

Paste the config for your agent. The same ID works in all three.

~/.config/opencode/opencode.json/v1/chat/completions
{
  "$schema": "https://opencode.ai/config.json",
  "model": "standardcompute/mistralai/mistral-large-4-0",
  "provider": {
    "standardcompute": {
      "npm": "@ai-sdk/openai-compatible",
      "name": "Standard Compute",
      "options": {
        "baseURL": "https://api.stdcmpt.com/v1",
        "apiKey": "{env:STANDARDCOMPUTE_API_KEY}"
      },
      "models": {
        "mistralai/mistral-large-4-0": { "name": "Mistral Large 4" },
        "standardcompute": { "name": "Smart routing" }
      }
    }
  }
}

Replace YOUR_API_KEY with a key from the dashboard. This config reads your key from STANDARDCOMPUTE_API_KEY; export it with a key from the dashboard. Full setup: OpenCode, Claude Code, Codex CLI.

What it costs

Per 1M tokensList priceMistral sale price
Input$1.36$0.68
Cached input$0.14$0.07
Output$4.18$2.09

Mistral API rates, with the current sale shown next to list. Batch requests are half price. Source: Mistral API pricing, checked October 13, 2026.

A 90K-token OpenCode turn on Mistral Large 4
11,700 fresh input × $1.36/M$0.0159
78,300 cache hits × $0.14/M$0.0110
700 output × $4.18/M$0.0029
One turn$0.0298

Averages from coding-agent traffic on our gateway, Sep 13 to Oct 12, 2026: 87% of prompt tokens are cache hits and a turn returns about 700 tokens. Vendor list prices. At Mistral's current sale price the same turn costs $0.015.

The $19 Starter plan includes a $19 compute budget, roughly 640 turns like this one at list price. Large 4 also fits as the European model in a mixed selection: select it next to a frontier model and routing decides which one answers each request.

What works differently here

  • Mistral is selling Large 4 at half price with no end date. While that lasts, paying Mistral directly for a Large 4-only workload costs half of the list prices above.
  • Mistral still labels Large 4 a public preview, so its behavior and price can change. Artificial Analysis scores the preview 38 on its Intelligence Index and 26.8% in its Terminal-Bench 4.0 run, below the current Claude, GPT and Gemini flagships.

Other ways to run Mistral Large 4

Mistral APIPay per tokenFirst-party, with half-price batch requests.
OpenRouterPay per tokenServed by Mistral, with one account for other vendors.
Self-hostGPU + powerOpen weights, on multi-GPU server hardware.
Standard ComputeMonthly planLarge 4 next to Claude, GPT and other open models on one key, with image input.

FAQ

What is the Mistral Large 4 model ID?

On Standard Compute it is mistralai/mistral-large-4-0. Mistral's own API uses mistral-large-4. GET https://api.stdcmpt.com/v1/models lists every ID we serve.

Can Mistral Large 4 read images?

Yes. It accepts text and images on Standard Compute, so screenshots from your agent reach it. Video and audio are not supported.

Is Mistral Large 4 open weights?

Yes, Mistral lists it as an open-weight model, so you can run it yourself on multi-GPU server hardware.

Mistral Large 4 or Mistral Large 3?

Large 4 for agent work: Artificial Analysis scores Large 3 at 9 on its Intelligence Index and 0% in its Terminal-Bench 4.0 run. Large 3 is cheaper at $0.50 / $1.50 per million tokens and is not in the Standard Compute catalog.

Sources: Mistral API pricing; Mistral docs: Mistral Large 4; Artificial Analysis: Mistral Large 4

Create your key

Sign in, create a key in the dashboard and paste it into the config above.

Get your API key