MiniMax-M4 API

Meet M4 · 40% off for the default group

Try MiniMax's new flagship with one YiduoChan API key. The default account group automatically receives 40% off our list prices. No coupon code or subscription is required; you pay for the tokens you use.

Get started with M4 Already registered? Add credits

This uses the existing 0.6 group multiplier; it is not an additional stacked discount. Check your console for other account-group rates.

Now available on YiduoChan

Use MiniMax-M4 for long-context reasoning and coding through an OpenAI-compatible API with a context window of up to one million tokens.

Get an API key Live pricing

MiniMax-M4 pricing in USD

List prices per million tokens, converted at 1 USD = 6.7075 CNY. Your account group may apply a different multiplier.

Token categoryList USD per millionDefault group: 40% off
Input$0.745434$0.447261
Output$2.981737$1.789042
Cached input$0.044726$0.026836

MiniMax official prices

Make your first API call

Create an API key, set it as YIDUOCHAN_API_KEY in your shell, and use MiniMax-M4 as the model ID.

curl https://api.yiduochan.com/v1/chat/completions \
  -H "Authorization: Bearer $YIDUOCHAN_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"model":"MiniMax-M4","messages":[{"role":"user","content":"Reply OK."}],"max_tokens":64}'

Put M4 to work

Start with code comprehension, questions over long documents, or multi-step reasoning. Verify your workflow with a small request before expanding its context, and review generated output against your own requirements.

Existing OpenAI SDK applications can keep their request structure and change the base URL, API key and model ID. See our Python and Node.js setup guide or Claude Code integration guide.

Frequently asked questions

How do I call MiniMax-M4?

Create an account and API key, set your OpenAI-compatible client base URL to https://api.yiduochan.com/v1, and use MiniMax-M4 as the model ID. A runnable curl example is included below.

Do I need a coupon for the discount?

No. The current default-group multiplier is 0.6, so M4 requests are billed at 60% of the USD list prices on this page. Rates are per million tokens; the console records actual usage.

Are cached tokens charged twice?

No. Cache reads use their own lower rate and are excluded from ordinary input-token charges. Output tokens are billed separately.

How do I add credits and check charges?

Open the wallet after signing in and create a top-up through Waffo Pancake. The wallet shows the minimum amount. Credits become available after payment is confirmed, and itemized charges appear in usage logs.

What context window does M4 support?

MiniMax lists a 1M-token context window. Requests are also subject to your client, gateway and current upstream limits.

Capability source: MiniMax model documentation. Updated December 4, 2026. YiduoChan is an independent API relay.