MiniMax · Checked October 13, 2026

How do I run MiniMax M3 in OpenCode, Claude Code or Codex?

MiniMax M3 is on every Standard Compute plan from $19 as minimax/minimax-m3, with no MiniMax account or Chinese phone number needed; the plan is a fixed compute budget, and at 100% new requests get HTTP 402. The same OpenAI-compatible key works in OpenCode, Claude Code and Codex and also serves GPT and Claude models, so you can A/B M3 against them on one endpoint.

ModelMiniMax's agent model, which MiniMax describes as built for tool use. Many hosts serve it.
Model IDminimax/minimax-m3Short form minimax-m3 also works
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 only
ReasoningAlways on; no setting

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/minimax/minimax-m3",
  "provider": {
    "standardcompute": {
      "npm": "@ai-sdk/openai-compatible",
      "name": "Standard Compute",
      "options": {
        "baseURL": "https://api.stdcmpt.com/v1",
        "apiKey": "{env:STANDARDCOMPUTE_API_KEY}"
      },
      "models": {
        "minimax/minimax-m3": { "name": "MiniMax M3" },
        "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 tokensPrompt up to 512KPrompt over 512K
Input$0.30$0.60
Cache read$0.06$0.12
Output$1.20$2.40

MiniMax pay-as-you-go standard tier, shown by MiniMax as 50% off its $0.60 / $2.40 list rate. The priority tier costs 1.5 times as much. Source: MiniMax pay-as-you-go pricing, checked October 13, 2026.

At MiniMax's rates, an M3-only workload rarely needs a subscription. The plan case is a mixed selection: M3 for volume, a frontier model for the hard steps, one bill for both.

What works differently here

  • M3 is text-only here, even though some listings advertise image input. We sent test images through every provider we could reach and M3 either ignored them or described something else, so the gateway sends images in a mixed selection to a model that can read them.
  • Thinking always runs. M3 ignored every reasoning setting we tried, including off, so the Models page has no reasoning control for it.
  • MiniMax's own rate is shown as a 50% discount. If that ends, direct prices double.

Other ways to run MiniMax M3

MiniMax APIPay per tokenFirst-party, with a cheaper cache-read rate and a 1.5x priority tier.
OpenRouter / DeepInfra / NovitaPay per tokenMany hosts serve it; speed and price vary a lot between them.
Standard ComputeMonthly planM3 next to Claude, GPT and other open models on one key.

FAQ

Can MiniMax M3 read images?

Not reliably on any provider we tested, so Standard Compute serves it as text-only. Select a vision model alongside it if your agent sends screenshots.

Is MiniMax M3 good enough for coding agents?

For routine steps such as edits, tool calls and boilerplate, yes. For hard multi-file reasoning, frontier models still lead, which is why M3 works best for the routine share of a routed selection.

Sources: MiniMax pay-as-you-go pricing; MiniMax models overview

Create your key

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

Get your API key