Build with AI
MiniMax M4 for Startups and Game Development: Pricing, Specs, and Workflow Playbook (2026)
MiniMax M4 brings a 3-trillion-parameter coding model, a 1-million-token context window, and native video input to $0.80 input and $3.10 output per million tokens. Here are the live specs, API and M Plan pricing math against frontier peers, what founders and indie game studios can build with it, and a seven-step setup guide.

Quick answer: MiniMax M4 (
MiniMax-M4, formerly codenamed M78) launched on December 3, 2026 as a 3-trillion-parameter flagship model trained with large-scale reinforcement learning for multi-hour coding, 3D and game creation, and agentic tool use. Checked on December 3, 2026, pay-as-you-go API pricing is $0.80 per million input tokens, $3.10 per million output tokens, and $0.05 per million prompt cache reads across a 1-million-token context window, with M Plan subscriptions starting at $22/month and drop-in Anthropic and OpenAI SDK compatibility.
On December 3, 2026, MiniMax Group (0100.HK) released MiniMax M4 across its developer API, M Plan subscriptions, and MiniMax Code. By the Hong Kong market close, MiniMax shares had risen 19.14% to HK$132.6 after reaching HK$137.3 intraday (up 22.64%), moving sharply against a softer Hang Seng Index according to The Standard and CryptoBriefing.
Developer interest centered on a single combination: a 3-trillion-parameter model built for multi-hour agent loops, priced at $0.80 input and $3.10 output per million tokens, with native video input and drop-in Anthropic Messages API support. On launch morning, early testers circulated a walkable 3D snowy town packed into one HTML file and a zero-asset 3D snowball game built inside Claude Code in under two hours.

For a SaaS founder or a small game studio, three questions decide whether MiniMax M4 belongs in your stack: what its specs and constraints look like in production, how the API and subscription math compares to Claude Opus 5.5, Claude Sonnet 5.5, GPT-6.2 Sol, and Gemini 4 Carbon, and where it excels across startup and game-dev workflows.
What MiniMax M4 is
MiniMax's official models overview and text generation docs, checked on December 3, 2026, describe MiniMax-M4 as a 3-trillion-parameter flagship model trained with large-scale reinforcement learning for long-horizon coding and multi-turn tool use. Before release, the checkpoint circulated among testers under the codename M78.
MiniMax states that M4 is built to drive complex engineering work across large codebases for hours at a time with near-Flash inference efficiency, listing videos, 3D models, games, websites, cybersecurity, finance, and embodied AI among its capabilities. The company calls M4 an open-weight flagship with weights to follow after the initial rollout on the MiniMax API, M Plan, and MiniMax Code. On December 3, 2026, the MiniMaxAI Hugging Face organization hosts weights through MiniMax-M3.1-Flash and MiniMax-H3, and OpenRouter lists M3.1 Flash and M3, so launch-day access runs directly through MiniMax.

MiniMax's six-month progression puts M4 in perspective. MiniMax-M3 arrived on June 1, 2026 with a 1-million-token context window via MiniMax Sparse Attention, native multimodality, and 59.0% on SWE-Bench Pro. On October 19, 2026, MiniMax shipped MiniMax M3.1 Flash (the stealth "Space Bunny" checkpoint that processed over 200 trillion tokens during preview): a roughly 428B-total / 23B-active MoE model hitting 170+ tokens per second at P50 (200+ peak), 73.7% on DeepSWE v1.1, 61.7 on OSWorld V2, 76.2 on BankerToolBench, 29.6 on Agents' Last Exam, 82% on CyberGym, and 42 on the Artificial Analysis Intelligence Index at $0.15/$0.60 per million tokens. M4 scales up to a 3T flagship while keeping the 1M window, tunable adaptive thinking, and multimodal inputs.
| Specification | MiniMax-M4 (checked Dec 3, 2026) | Source |
|---|---|---|
| API model ID | MiniMax-M4 (MiniMax-M4[1m] in Claude Code) | MiniMax text generation docs |
| Total parameters | 3T total parameters (sparse architecture, near-Flash efficiency) | MiniMax models overview |
| Context window | 1,000,000 tokens (512K recommended auto-compact in Claude Code) | Text generation & Claude Code docs |
| Thinking mode | Always-on adaptive thinking, interleaved across tool calls | Text generation & function call docs |
| Thinking effort | 5 levels: low, medium, high, xhigh, max (default max) | MiniMax text generation docs |
| Image inputs | Up to 200 images per call (JPEG, PNG, GIF, WEBP, up to 10 MB) | MiniMax Anthropic API reference |
| Video inputs | Up to 20 videos per call (MP4, AVI, MOV, MKV, up to 30 min, 512 MB via Files API) | MiniMax Anthropic API reference |
| API endpoints | Anthropic Messages (api.minimax.io/anthropic) and OpenAI (api.minimax.io/v1) | MiniMax text generation docs |
| Prompt caching | Automatic prefix matching at 512+ input tokens ($0.05/M reads, 93.75% off) | MiniMax prompt caching reference |
| Launch availability | MiniMax API, M Plan (Go/Explore/Build/Scale), MiniMax Code | MiniMax platform & M Plan docs |
Two items in that spec table stand out for engineering teams.
First, multimodal input scales to full recordings instead of single images. Per the MiniMax Anthropic API reference, one M4 request accepts up to 200 images (low detail up to ~600 tokens, default ~1,000 to 3,000, high up to 15,000+) and up to 20 videos totaling 30 minutes and 301,056,000 scaled pixels (~19 minutes at 2 fps in default mode or ~5 minutes at 2 fps in high mode). Clips up to 50 MB pass inline or by URL, and clips up to 512 MB upload through the Files API (mm_file://{file_id}) under a 128 MB request body ceiling. Token pre-counting works through POST /anthropic/v1/messages/count_tokens.
Second, interleaved thinking runs natively between tool calls. As detailed in the MiniMax function calling guide, M4 skips reasoning on simple tool lookups and thinks deeply when a failing test or shader error calls for a multi-file fix, provided your harness preserves the full assistant response (including thinking blocks on Anthropic or reasoning_content plus tool_calls on OpenAI) across turns.
API pricing, M Plan subscriptions, and the off-peak window
Checked on December 3, 2026 on the MiniMax pay-as-you-go pricing page, MiniMax-M4 costs $0.80 per million input tokens, $3.10 per million output tokens, and $0.05 per million prompt cache read tokens.

That $0.05 cache read rate matters in agent loops. Once an input prefix exceeds 512 tokens (ordered system prompt, tool list, then user messages), MiniMax prompt caching cuts repeated input reads by 93.75%. When an agent re-sends a repository map and conversation history across 40 turns, cache read pricing is often the biggest driver of total session spend.
Here is how MiniMax-M4 compares against competing 1M-context coding models on December 3, 2026, from MiniMax's pricing docs and live OpenRouter rates:
| Model | Context | Input ($/M) | Output ($/M) | Cache read ($/M) | Output vs M4 |
|---|---|---|---|---|---|
| MiniMax-M3.1-Flash | 1,048,576 | $0.15 | $0.60 | $0.015 | 0.19x |
| DeepSeek V4.1 Flash (1017)* | 1,048,576 | $0.02 to $0.30 | $0.20 to $1.20 | $0.001 to $0.006 | 0.06x to 0.39x |
| MiniMax-M4 (MiniMax API) | 1,000,000 | $0.80 | $3.10 | $0.05 | 1.00x |
| Qwen4-Max | 1,000,000 | $1.425 | $4.275 | $0.0713 | 1.38x |
| GLM-5.4 | 1,048,576 | $1.40 | $4.40 | $0.26 | 1.42x |
| GPT-6.1 Terra | 1,050,000 | $1.00 | $5.00 | $0.05 | 1.61x |
| Gemini 4 Hydrogen | 1,048,576 | $1.50 | $7.50 | $0.075 | 2.42x |
| Kimi K3.1 Pro | 1,048,576 | $0.253 | $8.80 | $0.18 | 2.84x |
| Claude Sonnet 5.5 | 1,000,000 | $2.00 | $10.00 | $0.10 | 3.23x |
| GPT-6.2 Sol | 1,050,000 | $2.00 | $10.00 | $0.10 | 3.23x |
| Gemini 4 Neon | 1,048,576 | $3.00 | $15.00 | $0.15 | 4.84x |
| Claude Opus 5.5 | 1,000,000 | $4.00 | $20.00 | $0.20 | 6.45x |
| Gemini 4 Carbon | 1,048,576 | $4.00 | $20.00 | $0.20 | 6.45x |
| Claude Fable 5.2 | 1,000,000 | $8.00 | $40.00 | $0.20 | 12.90x |
| GPT-6.2 Astra | 1,050,000 | $8.00 | $40.00 | $0.40 | 12.90x |
DeepSeek V4.1 Flash spans OpenRouter third-party providers ($0.02/$0.20) and official DeepSeek off-peak ($0.15/$0.60) and peak ($0.30/$1.20) rates.

On output tokens, MiniMax M4 costs 3.23x less than Claude Sonnet 5.5 and GPT-6.2 Sol, 6.45x less than Claude Opus 5.5 and Gemini 4 Carbon, and 1.38x to 1.42x less than Qwen4-Max and GLM-5.4 (following Z.ai's GLM-5.3 coding push). MiniMax retired legacy M2.5 and M2.7 from pay-as-you-go on November 18, 2026, leaving M4 at the flagship slot and M3.1 Flash at $0.15/$0.60 underneath it.
For developer seats, the MiniMax M Plan puts M4 on all four subscription tiers starting at $22/month, bundled with multimodal models:
| M Plan tier | Monthly | Annual | Quota | Included models | Quota window |
|---|---|---|---|---|---|
| Go | $22/mo | $220/yr ($18.33/mo) | 1x | M4, M3.1 Flash, H3 Image, Speech 2.8 | M4 and Image weekly only (no 5-hr cap) |
| Explore | $55/mo | $550/yr ($45.83/mo) | 3x | Go plus H3 Video and H3 Image Highspeed | M4, Image, and Video weekly only |
| Build | $132/mo | $1,320/yr ($110/mo) | 7.5x | Explore plus priority peak and early features | M4, Image, and Video weekly only |
| Scale | $200/mo | Monthly only | 11.5x | All models | All models weekly only (zero 5-hr caps) |
One-year overflow credit packs ($5 for 5,000 credits, $25 for 25,000, $100 for 100,000) prevent mid-sprint cutoffs if weekly quota runs dry. Compared with the $1 to $200 AI coding token plans we audited earlier in 2026, weekly-only accounting with zero 5-hour lockout favors indie founders who ship in heavy weekend sessions.

A second pricing lever sits in the MiniMax Code off-peak offer. Every day from 11:00 PM to 9:00 AM UTC+8, text models inside MiniMax Code (including M4) count at 0.5x normal subscription usage. That 10-hour window runs from 10:00 AM to 8:00 PM EST, 7:00 AM to 5:00 PM PST, and 4:00 PM to 2:00 AM CET, giving US and European builders double weekly M4 quota during standard daytime hours.
What you can build with MiniMax M4
On code.minimax.io/about, MiniMax pairs M4 with macOS and Windows desktop apps, a web workspace, the mcode terminal CLI, and iOS and Android remote-control apps for checking cloud runs. The workspace connects M4 to local files, terminal commands, browser previews, scheduled jobs, and plugins.

Across MiniMax's docs and launch-day demos, M4 targets six practical workloads:
- Long-horizon SaaS engineering. With a 1M context window (512K recommended auto-compact in Claude Code) and RL training aimed at multi-hour tasks, M4 handles database migrations, Next.js or FastAPI services, test suites, and cross-file refactors across dozens of files without losing project constraints.
- Interactive 3D web apps and spatial canvases. MiniMax Code's product page includes interactive 3D point-cloud architecture and procedural WebGL builds, generating lighting, camera rigs, particle systems, and custom shaders inside browser bundles.
- Playable 2D and 3D games. M4 writes procedural geometry, physics loops, Web Audio synthesis, HUDs, and native engine scripts inside one multi-turn debugging loop.
- Programmatic motion films ("Code2Video"). Launch-day demos covered alongside
@zeng_wtincluded"One second on the internet", a multi-scene animated data film rendered purely through code orchestration. MiniMax Code pairs that track with MiniMax H3 Video ($0.08/sec at 768P, $0.13/sec at 2K, or bundled on M Plan Explore+) when a launch trailer needs live-action shots. - Visual-reference web builds. Because M4 ingests up to 200 images and 20 videos in one call, founders can feed Figma frames, competitor flows, or recorded UI walkthroughs directly into prompts. Pairing M4 with concrete typography and layout rules from our vibe coding frontend design guide keeps generated pages from defaulting to generic templates.
- Domain automation in finance and security. MiniMax explicitly lists cybersecurity, finance, and embodied AI in M4's capability docs, and MiniMax Code pulls spreadsheets and market data into reusable HTML dashboards and editable slide decks.
How MiniMax M4 changes startup economics and founder velocity
Model pricing hits a startup twice: first in engineering burn while building, and again in gross margin once paying users trigger agent features.
Consider a realistic two-hour autonomous coding or prototyping session: 40 agent turns, 1.5 million new input tokens (fresh files, diffs, and tool outputs), 8 million cached prefix reads (repo map, system prompt, and prior turns), and 600,000 output tokens (code edits plus reasoning traces).
| Model (pay-as-you-go API, Dec 3, 2026) | New input (1.5M) | Cached read (8M) | Output + thinking (600K) | Total 2-hr cost | vs M4 |
|---|---|---|---|---|---|
| MiniMax-M4 | $1.20 | $0.40 | $1.86 | $3.46 | 1.00x |
| Claude Sonnet 5.5 / GPT-6.2 Sol | $3.00 | $0.80 | $6.00 | $9.80 | 2.83x |
| Claude Opus 5.5 / Gemini 4 Carbon | $6.00 | $1.60 | $12.00 | $19.60 | 5.66x |
| Claude Fable 5.2 | $12.00 | $1.60 | $24.00 | $37.60 | 10.87x |
Multiply that session across a three-person seed team running 100 heavy sessions a month. Pay-as-you-go Claude Opus 5.5 runs $1,960/month. MiniMax-M4 runs $346/month, saving $1,614 a month or nearly $19,400 a year. Running developer seats on M Plan ($22 to $132/month) during US daytime off-peak hours in MiniMax Code compresses seat spend even further.

In our 2026 Indie SaaS Mortality Study, 24.6% of dead startups hit HTTP 402 billing walls when infrastructure and API bills outpaced early subscriptions. Cutting per-session inference cost by 65% to 82% against Claude Sonnet 5.5 and Opus 5.5 gives bootstrapped AI products margin headroom at $19 to $49/month price points.
Four practical habits make M4 easy for small startup teams to adopt immediately:
- Drop-in Claude Code compatibility. Because
https://api.minimax.io/anthropicspeaks Anthropic Messages natively, teams running Claude Code on large codebases keep their existing CLAUDE.md files, tool schemas, and subagents while stepping off $100 to $200 Max seats documented in our Claude Code pricing breakdown. - One bill for code and launch media. M Plan Explore ($55/month) bundles
MiniMax-M4,MiniMax-M3.1-Flash,H3 Image(1 to 16 reference images for consistent brand art),H3 Video(up to 2K), andSpeech 2.8(40 languages), replacing separate subscriptions for coding, landing-page visuals, launch trailers, and demo voiceovers. - Two-tier model routing. Keep M4 (
effort: "high"or"max") on planning, refactors, and security patches, and send high-volume CRUD, support triage, and structured extraction toMiniMax-M3.1-Flash($0.15/$0.60, 170+ tok/s P50), or to a dedicated classifier as we broke down in our Strands Decider cost case study. - Video-in bug fixing. Record a 20-second MP4 of a broken checkout modal or mobile Safari layout flicker, attach it alongside the React code, and let M4 inspect the rendered frames before patching.
Speeding up the first version shifts where risk lives. As detailed in our vibe coding prototyping guide, shipping a working demo takes hours now; auth rules, database row-level security, and customer acquisition decide what survives. Run every M4-built SaaS through our pre-launch security checklist for vibe-coded startups before real emails enter your database.
Why MiniMax M4 is strong for game development
Game code breaks short-horizon models fast because every subsystem touches the others inside a 60-fps loop. Patching player movement breaks camera collision; adding snow particles leaks WebGL memory; tweaking HUD anchors hides ammo counters on narrower viewports.
MiniMax M4 removes four specific friction points for indie game builders:
- Whole-project cached context. At 1 million tokens and $0.05/M cached reads, an indie team can pin the game design doc, entity schemas, shaders, level JSON, dialogue trees, and active gameplay scripts in one cached prefix.
- Multi-hour interleaved tool loops. M4 writes Three.js or Godot modules, runs builds or linters, reads console errors, adjusts physics constants, and iterates across dozens of turns without dropping state.
- Video playtest debugging. Text logs rarely explain why a jump feels floaty or why particles clip through geometry. Uploading a 30-second MP4 playtest clip (up to 512 MB via the Files API) lets M4 see timing pops, camera jitter, and HUD overlap alongside the controller and shader files.
- Full-stack game asset generation on one plan. Pair
MiniMax-M4(code, shaders, levels, dialogue) withMiniMax-H3-Image(concept art, UI icons, tilesets, reference-consistent character sheets),MiniMax-H3 Video(cutscenes and Steam trailer shots at $0.08/sec 768P or $0.13/sec 2K),Speech 2.8 HD/Turbo(NPC dialogue across 40 languages and 7 emotions), and open-weightMusic 3.0(adaptive soundtracks).

What launch-day game demos showed
Two early-tester builds circulated widely on December 3, 2026 across BlockTempo, CryptoBriefing, The Standard, ExplainX, and TokenPost:
"GINZAN: SNOW TOWN AT NIGHT"by@sakatayasha: a walkable 3D recreation of a snowy Japanese onsen town set in a narrow gorge (modeled after Ginzan Onsen), generated inside a single standalone HTML file with procedural timber buildings, warm lantern light, snow particles, and free camera navigation, using zero external 3D assets.- A 3D snowball, snowman, and dog-chase mini-game by
@k2sbhai: built in Claude Code powered by MiniMax M4 in roughly 1.5 to 2 hours of iterative prompts, with zero downloaded assets. M4 wrote the 3D geometry, procedural textures, snowball-rolling and snowman-building mechanics, chasing-dog AI state machine, and synthesized sound effects entirely in code.
Community testers also shared mechanical and space-rover Three.js scenes testing multi-part spatial alignment and lighting. These demos point directly to M4's strongest commercial game niche: stylized 3D atmospheres, playable web ads, game-jam entries, itch.io releases, and rapid investor vertical slices.
Engine-by-engine game development matrix
Text-first web engines and Godot expose nearly every asset and scene reference as plain text, while binary-heavy editors require CLI bridges or manual inspector passes.
| Engine | Primary files | Where MiniMax M4 excels | Practical workflow note |
|---|---|---|---|
| Three.js / WebGL / WebGPU | TypeScript, JS, GLSL/WGSL, HTML | Zero-asset 3D worlds, shaders, lighting, particles, playable ads | Run headless browser checks and watch draw-call budgets |
| Phaser / PixiJS / Canvas | TypeScript, JS, JSON tilemaps | 2D platformers, roguelikes, A* pathfinding, hitstop and screen shake | Keep sprite atlases and tilemap schemas in cached context |
| Godot 4 | GDScript, C#, .tscn/.tres, GDShader | Full scene-tree edits, character controllers, UI nodes, stylized shaders | Plain-text .tscn scenes make Godot the cleanest native 1M-context fit |
| Unity | C#, HLSL, ScriptableObjects | Gameplay systems, finite state machines, inventory, save data, netcode | Binary prefabs and Inspector wiring still need the editor or a Unity MCP bridge |
| Unreal Engine | C++, HLSL | Core C++ gameplay classes, AI logic, procedural math, shader code | Visual Blueprint graphs and level placement still happen in-editor |
| Roblox Studio | Luau | Server/client multiplayer scripts, datastores, simulator loops, UI | Sync files via Rojo so M4 edits plain repo scripts |
Where engines and human designers still carry the work
Procedural Three.js geometry works well for stylized, low-poly, voxel, and atmospheric games, yet custom rigged characters, hand-authored animation keyframes, baked lightmaps, and dense PBR worlds still rely on Blender, Substance, and dedicated art pipelines. Binary prefabs in Unity and visual Blueprint graphs in Unreal also still depend on editor workflows unless bridged by custom tooling.
Game feel stays human, too. M4 writes coyote time, jump buffering, camera smoothing, and enemy wave curves cleanly when asked, while judging whether a jump feels tight or a boss fight feels fair requires hands on a keyboard or controller. Because M4 defaults to effort: "max", dialing effort down to low or medium during small physics tweaks keeps tight iteration loops responsive and prevents wasted thinking tokens.
API rules and product constraints to plan around
Six documented behaviors from MiniMax's text generation and Cursor guides (checked December 3, 2026) should be wired into your client before launch:
- Adaptive thinking is always on. Sending
thinking: {"type": "disabled"}(Anthropic) orreasoning_effort: "none"(OpenAI) returns HTTP 400 (error 2013: model "MiniMax-M4" requires adaptive thinking). Useeffort: "low"or route non-reasoning calls toMiniMax-M3.1-Flash. - Thinking tokens count inside
max_tokens. Under the defaulteffort: "max", a lowmax_tokenscap can spend the whole budget on reasoning and return empty visible text withstop_reason: "max_tokens". Pass an expliciteffortvalue and setmax_tokensto 8,192 to 32,768+ for coding loops. - Sampling and tool-choice controls are fixed.
temperatureis locked at1,top_pat0.95(must stay in(0, 1]if passed),top_kandstop_sequencesare ignored, andtool_choicesupports onlyauto. - OpenAI thinking returns in
reasoning_contentonly. Passingreasoning_split: falsefor inline<think>tags is unsupported on M4, so legacy parsers scanningcontentfor<think>tags need updating. - Priority tiering and third-party hosting are absent on launch day.
service_tier: "priority"(1.5x rate) applies only to legacyMiniMax-M3. Weights are not yet on Hugging Face and OpenRouter has not added M4 yet; even after weights drop, self-hosting a 3T sparse model requires multi-node datacenter GPUs and will not fit on a local workstation. - Cursor requires a global Base URL override. Running M4 in Cursor requires Cursor Pro+ and setting "Override OpenAI Base URL" to
https://api.minimax.io/v1, which disables built-in Anthropic and OpenAI keys until toggled off. Teams switching models hourly usually prefer Claude Code, OpenCode, or MiniMax Code.
How to adopt MiniMax M4 in a startup or indie game workflow
Follow these seven steps to integrate MiniMax M4 cleanly into a SaaS or indie game repository:
- Choose between M Plan and pay-as-you-go API billing. Use an M Plan subscription ($22 to $200/month) for developer seats in MiniMax Code, Claude Code, or OpenCode, especially inside the 50% off-peak window (10:00 AM to 8:00 PM EST). Use pay-as-you-go API billing ($0.80 input, $3.10 output, $0.05 cached read) for production user traffic and CI jobs.
- Connect Claude Code or your Anthropic SDK to MiniMax-M4. Point
ANTHROPIC_BASE_URLtohttps://api.minimax.io/anthropic, set the default model toMiniMax-M4[1m]in~/.claude/settings.json(or runnpx -y mmx-cli@latest agent setup), and setCLAUDE_CODE_AUTO_COMPACT_WINDOWto524288. - Set explicit effort levels and generous
max_tokenscaps. Passoutput_config.effort(Anthropic) orreasoning_effort(OpenAI) on every call because M4 defaults toeffort: "max"and counts thinking insidemax_tokens. Uselowormediumfor UI tweaks and unit tests, reservehighormaxfor architecture and refactors, and setmax_tokensto 8,192 to 32,768+ on agent turns. - Structure prompts to hit the $0.05/M prompt cache. Place static system prompts, tool schemas, codebase maps, and game design docs at the start of requests above 512 tokens so automatic prefix caching cuts input cost by 93.75%. Append full assistant responses including thinking and tool blocks across turns.
- Split routine traffic to MiniMax-M3.1-Flash. Route boilerplate CRUD, log triage, commit summaries, and fast NPC or support replies to
MiniMax-M3.1-Flash($0.15/$0.60, 170+ tok/s P50), keeping M4 on multi-file engineering, shaders, and complex debugging. - Feed screen recordings back into the coding loop. Upload short MP4 playtest or UI clips (up to 512 MB via the Files API) or PNG frames alongside source files so
MiniMax-M4inspects visual defects, layout bugs, and physics glitches before writing a patch. - Run security hardening, human playtesting, and launch distribution. Audit auth, database row-level security, secret handling, and game feel by hand before real users arrive. Once stable, ship clean landing metadata and submit the product to startup and AI directories.
Here is the ~/.claude/settings.json snippet from the official MiniMax Claude Code guide for Step 2:
{
"env": {
"ANTHROPIC_BASE_URL": "https://api.minimax.io/anthropic",
"ANTHROPIC_AUTH_TOKEN": "<MINIMAX_API_KEY>",
"CLAUDE_CODE_AUTO_COMPACT_WINDOW": "524288",
"CLAUDE_CODE_EFFORT_LEVEL": "max",
"ANTHROPIC_MODEL": "MiniMax-M4[1m]",
"ANTHROPIC_DEFAULT_SONNET_MODEL": "MiniMax-M4[1m]",
"ANTHROPIC_DEFAULT_OPUS_MODEL": "MiniMax-M4[1m]",
"ANTHROPIC_DEFAULT_HAIKU_MODEL": "MiniMax-M4[1m]"
}
}

MiniMax's default template maps all four model slots to MiniMax-M4[1m] with CLAUDE_CODE_EFFORT_LEVEL set to max. To automate Step 5 inside Claude Code, swap ANTHROPIC_DEFAULT_HAIKU_MODEL to MiniMax-M3.1-Flash so lightweight file reads and subagent searches run on the $0.15/$0.60 Flash tier while primary edits stay on M4.
Putting what you ship in front of users
Lower inference bills and faster 3D or SaaS builds speed up production. Getting early users and search citations still comes down to distribution. For playable web games, shipping a browser build to itch.io alongside a clean GitHub repository or Steam store page puts the work directly in front of players. For SaaS tools and AI apps, listing across high-signal directories gives buyers and AI search engines a crawlable product page. Our guide on where to list vibe-coded apps and our index of the best AI directories cover where to submit first.
You can also submit a software launch to SaaSCity, where every listing is reviewed by hand through the free Editorial Pool or paid options starting at $19.99.
Frequently asked questions
What is MiniMax M4 and when did it launch?
MiniMax M4 (API ID MiniMax-M4, known before release as M78) is a 3-trillion-parameter flagship model from MiniMax Group (0100.HK), launched on December 3, 2026. Trained with large-scale reinforcement learning for multi-hour coding and tool use, it combines a 1M-token context window, native image and video input, adaptive thinking, and Anthropic and OpenAI API compatibility.
How much does the MiniMax M4 API cost compared to Claude and GPT models?
Checked on December 3, 2026, MiniMax-M4 costs $0.80 per million input tokens, $3.10 per million output tokens, and $0.05 per million prompt cache read tokens (93.75% off input). On output tokens, that is 3.23x cheaper than Claude Sonnet 5.5 and GPT-6.2 Sol ($2/$10), 6.45x cheaper than Claude Opus 5.5 and Gemini 4 Carbon ($4/$20), and 12.9x cheaper than Claude Fable 5.2 and GPT-6.2 Astra ($8/$40).
Which MiniMax M Plan tiers include MiniMax M4?
All four M Plan tiers include MiniMax M4 alongside MiniMax-M3.1-Flash, H3 Image, and Speech 2.8: Go ($22/mo, 1x), Explore ($55/mo, 3x, adds H3 Video), Build ($132/mo, 7.5x), and Scale ($200/mo, 11.5x). M4 counts toward the weekly quota only with no 5-hour cap, and works in MiniMax Code, Claude Code, Codex, Cursor, OpenCode, Pi, Hermes Agent, and OpenClaw.
When does the MiniMax Code 50% off-peak discount run?
Inside MiniMax Code, text models including MiniMax M4 use 0.5x normal subscription quota daily from 11:00 PM to 9:00 AM UTC+8. That window equals 15:00 to 01:00 UTC, 10:00 AM to 8:00 PM EST, 7:00 AM to 5:00 PM PST, and 4:00 PM to 2:00 AM CET, covering standard US working hours.
Are MiniMax M4 weights available on Hugging Face or OpenRouter?
MiniMax describes M4 as an open-weight flagship with weights to follow after the December 3, 2026 rollout on the MiniMax API, M Plan, and MiniMax Code. On launch day, M4 weights are not yet on huggingface.co/MiniMaxAI and MiniMax-M4 is not yet listed on OpenRouter. Prior open-weight releases (M3 and M3.1-Flash) used the MiniMax Community License.
Can you use MiniMax M4 inside Claude Code?
Yes. MiniMax's Anthropic Messages endpoint at https://api.minimax.io/anthropic supports thinking blocks, tool calls, interleaved thinking, and token counting. Wire Claude Code to MiniMax-M4[1m] with npx -y mmx-cli@latest agent setup or ~/.claude/settings.json, using CLAUDE_CODE_AUTO_COMPACT_WINDOW set to 524288.
Why is MiniMax M4 popular for 3D and indie game development?
Games couple physics, shaders, camera math, audio, and UI inside one loop, which trips up short-horizon models. M4 pairs 3T-parameter coding strength with 1M cached context ($0.05/M reads), interleaved tool reasoning, and native video input (up to 30 minutes via Files API) for visual playtest debugging. Launch-day demos included a single-HTML 3D Ginzan snow town and a zero-asset 3D snowball game built in Claude Code in 1.5 to 2 hours.
Which game engines work best with MiniMax M4?
Text-native engines give M4 direct read and edit access across the whole project. Three.js, WebGL, WebGPU, Phaser, PixiJS, and Godot (plain-text .tscn scenes and .tres resources) fit cleanly inside one cached context. Unity C#, Unreal C++, and Roblox Luau also work well for scripts and HLSL shaders, while binary prefabs and inspector bindings still need editor wiring or CLI bridges.
Can you turn off thinking mode on MiniMax M4?
No. MiniMax-M4 uses always-on adaptive thinking, and passing thinking.type disabled or effort none returns HTTP 400 (error 2013). Lower latency and token burn by setting effort to low or medium (the default is max), or route routine tasks to MiniMax-M3.1-Flash at $0.15/$0.60 per million tokens.
What API quirks catch teams when migrating to MiniMax M4?
Thinking tokens count toward max_tokens, so a low cap under default effort: "max" can return empty text with stop_reason: "max_tokens". temperature is fixed at 1, top_p at 0.95, and tool_choice supports only auto. On the OpenAI endpoint, reasoning_split: false is unsupported and thinking always returns in reasoning_content, never inline <think> tags.
How much can a startup save on autonomous coding loops with MiniMax M4?
A 2-hour, 40-turn coding session using 1.5M new input tokens, 8M cached prefix reads, and 600K output and thinking tokens costs $3.46 on MiniMax-M4 pay-as-you-go rates. The same run costs $9.80 on Claude Sonnet 5.5 or GPT-6.2 Sol, $19.60 on Claude Opus 5.5 or Gemini 4 Carbon, and $37.60 on Claude Fable 5.2. At 100 sessions a month, that saves $1,614 monthly, or nearly $19,400 a year, against Opus 5.5.
Sources
All pricing, specifications, and availability figures in this guide were checked on December 3, 2026 from primary documentation and live registries.
- MiniMax API Platform: Models Overview
- MiniMax API Platform: Text Generation, Thinking Effort, and API Constraints
- MiniMax API Platform: Pay-As-You-Go Pricing
- MiniMax API Platform: M Plan Tiers, Models, and Quota Rules
- MiniMax API Platform: MiniMax Code 50% Off-Peak Usage Offer
- MiniMax API Platform: Claude Code Setup with MiniMax-M4
Show all verified sources
- MiniMax API Platform: Cursor Setup and Base URL Trade-Off
- MiniMax API Platform: Anthropic-Compatible API Reference and Multimodal Input Caps
- MiniMax API Platform: Prompt Caching Formula and Prefix Rules
- MiniMax API Platform: Function Calling and Interleaved Thinking
- MiniMax Code Product Overview
- MiniMax Blog: MiniMax M3.1 Flash Release and Benchmarks (October 19, 2026)
- Hugging Face: MiniMaxAI Organization
- OpenRouter: Live Model Pricing Directory
Ready to put your product on the map?
Claim a permanent building on SaaSCity so founders and software buyers can discover your product on the live map. Pay once from $19.99, live within 24 hours.


