MiniMax-M4 API Guide: Pricing, 1M Context, Open-Weight MoE (2026)

The cheapest of the new Chinese flagships: 2.74T total / 66B active parameters, 1M context, 256K output. Here is how to call it and what it costs.

By NovAI Team · Reviewed by the NovAI platform team · Last updated 2026-12-05

What MiniMax-M4 is

MiniMax-M4 is a 2.74T-parameter mixture-of-experts model with 66B active parameters per token, released with open weights. It has a 1M token context window, 256K maximum output, and multimodal reasoning across text and images.

Because only 66B parameters are active per token, it runs cheaper than dense flagships of similar total size - which makes it the natural default for the high-volume part of an agent stack: extraction, classification, summarization, long-document QA and the many cheap reasoning steps around the one expensive decision.

Pricing

ItemNovAI price
Input tokens$0.77 per 1M
Output tokens$3.08 per 1M
1M input + 1M output$3.85
10M input + 2M output per month$13.86

Pricing is simple token math: input ÷ 1,000,000 × $0.77 plus output ÷ 1,000,000 × $3.08. No cache tier is listed at launch. Source: pricing feed and transparency record.

Quickstart: OpenAI SDK

from openai import OpenAI

client = OpenAI(
    api_key="sk-your-novai-key",
    base_url="https://aiapi-pro.com/v1",
)

resp = client.chat.completions.create(
    model="minimax-m4",
    messages=[
        {"role": "system", "content": "Extract structured data. Return JSON only."},
        {"role": "user", "content": "..."},
    ],
)
print(resp.choices[0].message.content)

curl:

curl https://aiapi-pro.com/v1/chat/completions \
  -H "Authorization: Bearer $NOVAI_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"model":"minimax-m4","messages":[{"role":"user","content":"Summarize this contract."}]}'

Where MiniMax-M4 wins

Routing tip: send extraction and first-pass drafting to MiniMax-M4, then escalate to GLM-5.4 when a task needs deep multi-file planning, or to Qwen4-Max when the input is images or video. On a typical support/analysis workload the difference is about 30% lower spend than routing everything to the pricier models.

MiniMax-M4 vs the alternatives

See the full comparison of GLM-5.4 vs MiniMax-M4 vs Qwen4-Max, the GLM-5.4 API guide and the Qwen4-Max API guide. For older MiniMax pricing detail there is also the MiniMax API pricing article.

FAQ

How much does MiniMax-M4 cost?

$0.77 per 1M input and $3.08 per 1M output tokens on NovAI, at provider list price with 0% platform markup.

What is the context window?

1M tokens in, 256K tokens out, with text and image input.

Is it open-weight?

Yes - 2.74T total / 66B active MoE with open weights released.

Can I use the OpenAI SDK?

Yes. Set base_url to https://aiapi-pro.com/v1 and model to minimax-m4.

Try MiniMax-M4 free

Sign up for $2 in free credit and call MiniMax-M4 with your existing OpenAI SDK.

Start free →

Related: MiniMax-M4 model page · FlagShip comparison · GLM-5.4 API guide · Qwen4-Max API guide · Pricing