Skip to main content
DevHivesBlog

Search the blog

Find a post by title, tag or topic

MiniMax M4 Released: 1M Context, 66B Active — What It Means for Students

MiniMax released M4, a large reasoning model, on 3 December 2026. It has a 1M-token context window and costs $0.80 per million input tokens. The open weights are still unreleased, so students can call the API but cannot run it locally yet.

Arnab Biswas8 min read
WhatsApp
A red 'NOT YET' rubber stamp, indicating that MiniMax M4's open weights are not available for local use.

As of 4 December 2026, the MiniMax M4 GitHub page says the model's weights will be released "soon". Until those weights appear, M4 is something you can only rent through an API. So what can a student in India do with it today, and what would a small test cost?

MiniMax M4 is a model you can call through an API today, but you cannot run it yourself yet. MiniMax released it on 3 December 2026 with a 1M-token context window, according to its OpenRouter listing. It costs $0.80 per million input tokens and $3.10 per million output tokens, billed in dollars. The open weights are still unreleased, so for most students the choice is to try the API briefly or skip it.

MiniMax M4 launched on 3 December with a 1M-token context

M4 is a reasoning model with 2.74 trillion total parameters, of which 66 billion are active for each token, and it accepts up to 1M tokens of input, per OpenRouter's model page. "Active vs total" means the model holds many small expert networks but uses only a few of them for each word it reads or writes.

One reply can run up to 524,288 tokens long, the maximum completion size OpenRouter lists. That is far more than a chat answer needs. It matters for jobs like rewriting a long codebase in one go.

Reasoning is always on, and you cannot turn it off. The model thinks in hidden steps before it answers, every time. Keep that in mind for the cost section below.

If you are comparing paid AI tools in general, my post on whether Claude Code is worth it for students covers how to judge a monthly bill against what you get.

MSA2 sparse attention and MFlashKV make long context cheaper

The model uses MiniMax Sparse Attention 2 in its 68 attention layers, and MFlashKV moves most of the KV cache (the memory of earlier tokens) onto SSDs instead of GPU memory, according to the official GitHub page. Both tricks target the same problem.

Here is that problem in plain terms. Every time a model writes a new token, it looks back at the tokens before it. It stores notes about those earlier tokens in GPU memory. With a book-length input, those notes grow huge, and GPU memory is the most expensive part of a server.

Moving most of those notes to cheaper SSD storage lets a provider serve long inputs on fewer GPUs, which is why long inputs can be cheaper to serve.

Running M4 on your own machine is not possible yet

The weights are not on Hugging Face, and even after release a 2.74T-parameter model must be stored in full, so it needs a multi-GPU server, not a laptop or one student GPU. The parameter count comes from OpenRouter.

On its GitHub page, MiniMax says "We will release the weights soon," after a safety review. Sandbase confirms they were not on Hugging Face as of 4 December. No release date is given.

None of my sources gives a VRAM figure, so I will not make one up. The reasoning is still clear. Only a small slice of the model works on each token, but the computer cannot know in advance which slice it will need. So every weight has to sit in fast memory somewhere.

That is a data-centre job. Your college lab GPU or a gaming laptop with an RTX card is the wrong size by a wide margin. In my opinion, even small compressed community versions, if they appear, will probably still need server hardware.

The M4 API is cheap per token but bills in dollars

At $0.80 input, $3.10 output and $0.05 cached input per million tokens, a small test costs very little, but no source gives a rupee price, so the card payment is in USD. These prices come from OpenRouter. That means you need a card that works for international payments. No source I used says whether Indian cards or UPI work, so check at checkout. As a worked example, a request with 20,000 input tokens and a 5,000-token reply costs 0.02 × $0.80 = $0.016 for input plus 0.005 × $3.10 = $0.0155 for output, about $0.03 in total. Hidden reasoning tokens count as output, so the real figure can be higher.

Output tokens cost almost four times as much as input tokens, and cached input costs the least
Output tokens cost almost four times as much as input tokens, and cached input costs the least
Token typePrice per 1M tokensSource
Input$0.80OpenRouter
Output$3.10OpenRouter
Cached input$0.05OpenRouter

Output is the expensive line, and always-on reasoning writes extra output you never see. A short question can still produce a long hidden answer. Your bill follows those hidden tokens.

You control that with effort levels: low, medium, high, xhigh and max, with max as the default, per Sandbase. Default max is the costly setting. Start at low, and raise it only if the answers are weak.

The API has an OpenAI-compatible endpoint at api.minimax.io/v1 and an Anthropic-compatible one at api.minimax.io/anthropic, with the model ID MiniMax-M4 (Sandbase). If you already use the OpenAI Python library, the change is small:

from openai import OpenAI
client = OpenAI(
    base_url="https://api.minimax.io/v1",
    api_key="YOUR_MINIMAX_KEY",
)
resp = client.chat.completions.create(
    model="MiniMax-M4",
    messages=[{"role": "user", "content": "Explain this error: ..."}],
    # This sample does not set effort yet, and no source I used gives the field name. Check MiniMax's API docs.
)
print(resp.choices[0].message.content)
print(resp.usage)  # token counts, including the hidden reasoning

The last line is the useful one. It shows how many tokens the request really used, so you can see the cost before you build anything bigger.

Three roads for a student: run it, call it, or skip it

Pick the road by your project: skip M4 if a smaller model already works, call the API for a short test if you need long context or hard reasoning, and wait for weights if you want to run it yourself.

Only projects that need long context or hard reasoning justify trying the M4 API
Only projects that need long context or hard reasoning justify trying the M4 API
RoadWhat you needCostWhen it makes sense
Run locallyReleased weights plus a multi-GPU serverServer rental, far beyond a student budgetNot possible yet; weights unreleased (GitHub)
Use the APIAn API key and an international cardPer token, in dollars (OpenRouter)You need very long input or hard multi-step reasoning
Ignore for nowNothingFreeYour current model already does the job

Say you are building a final-year project that answers questions about your college's full set of exam rules. That is a lot of text in one go, and a long context helps. Now say your campus placement portfolio has a to-do app with a small chatbot. Any cheap model handles that, and M4 adds cost without a visible gain.

  1. Check the input size

    Does your task need more text than your current model accepts? If not, move to the next check.

  2. Check the reasoning need

    Does your current model fail on hard multi-step problems? If not, skip M4.

  3. Run one small test

    If either answer is yes, try the API at low effort on one real task.

  4. Compare the result

    Keep M4 only if the answer is clearly better for the extra cost.

Pros

  • Works today, with no hardware to buy.
  • Drop-in for code that already uses the OpenAI or Anthropic libraries.
  • Low effort keeps a test cheap.

Cons

  • Billed in dollars, so you need an international card.
  • Reasoning cannot be switched off, which adds hidden output.
  • Default effort is the most expensive one.

Do open weights matter to a student today?

Not yet, because a promise of weights gives you nothing to download, and later most students will use hosted copies rather than run the model themselves. Sandbase lists the weights under what "still isn't out".

Once released, open weights allow three things. Other providers can host the model, which may bring more price choices. Researchers can study how it behaves. Teams with large hardware can fine-tune it on their own data.

For an individual student, the first one is the real benefit. You would still call someone else's server. You just might pick a cheaper or closer provider.

Fine-tuning a model this size is a lab or company project. If you want to learn fine-tuning, a small open model on a free notebook teaches you the same steps.

Where M4 sits next to Amazon Ergo and GLM-5.4

M4 is the third big model launch of the week, and its difference is the 1M context and always-on reasoning rather than being the only new option. The context size is listed on OpenRouter.

Earlier this week I wrote about Amazon Ergo, an open-weights coding model, and Zhipu's GLM-5.4 for coding. Read those if coding help is your main need. They may fit a coding project better, but check their prices before assuming they cost less.

Your next step is small. Make one API test on a real task from your own project with the effort level set to low, and read the token count in the response. Then check the MiniMax-M4 GitHub page for the weights before you plan any local setup.

ShareWhatsAppLinkedInX

Picked from the tags and topic of this post.

A line splitting into a falling branch and a rising one, suggesting a market shift where the new open model overtakes a leading one.
ai8 min read

Amazon Ergo: The $1 Open-Weight Model That Beats Claude on Coding

Amazon released its first open-weights model, Ergo, on December 1, 2026, at $1 per million input tokens. It scores 74.2 on DeepSWE, ahead of Claude Opus 5.5, but trails on other tests. Here's what students should know.

Arnab Biswas
A loop transformer diagram with a cycle that repeats, representing GLM-5.4's architecture of reusing layers.
ai8 min read

GLM-5.4 Launches Without Benchmarks: Loop Transformer Explained

Zhipu launched GLM-5.4 on November 23, 2026, with vision and a 1M-token context, but published no official benchmarks. The loop transformer reuses 28 layers twice to approximate a 2T-parameter model, and one unofficial test ranked it 7th of 19.

Arnab Biswas