MiniMax M4 has one habit that decides most of what I found. At its default effort it thinks until it runs out of room. With opencode’s default 32,000 token output cap it spent the whole allowance reasoning about a pelican and returned nothing. With a bigger cap it built the best 3D lighthouse island of the eight models I compared, in about 34 minutes.
Away from that habit M4 sits with the pack. It scored 9 out of 10 on a hard arithmetic set, found a needle in 858,000 tokens of text, passed 24 of 25 tests on a small coding task, and read seven receipt photos inside a Laravel app it wrote for me with every figure matching. It costs US$0.80 in and US$3.10 out per million tokens, and it is slower than GPT-6.2 Sol and Claude Opus 5.5 on every design task except the pelican.
MiniMax’s own launch post says a “substantial gap remains compared with the very best overseas models”, and my runs agree with that more than with the showcase videos.
Disclosure: I’m an OpenAI, Firecrawl and Devin ambassador.
What MiniMax says about M4
I checked the launch claims against MiniMax’s launch post, the GitHub repository and the platform docs. I covered the previous generation in MiniMax M3.1 Flash and the H3 family.
| Claim | Source | What I did |
|---|---|---|
| 2.74 trillion parameters, 66 billion active, 1M context, natively multimodal | Launch post | Ran needle tests up to 858k tokens and sent it an image. Both worked. |
| US$0.80 in, US$3.10 out, US$0.05 cached, per million tokens | Platform docs | Watched cached tokens appear on a repeat call. |
| Five effort levels, max by default, thinking can’t be switched off | Platform docs | Swept all five levels. Reasoning tokens showed up on every call. |
| 100 tokens a second per user on Huawei Ascend 950DT, three times Kimi K3.1’s throughput on GB300 | MiniMax’s own claim | Can’t be checked from outside. On MiniMax’s API I measured 116 to 139 tokens a second. |
| A 24-hour Rust browser, Acid3 100/100, an Unreal Engine 5 game | Launch showcase | Not reproduced. |
| Weights “within the next few weeks” | Launch post | Not released. No licence is published. |
| “A substantial gap remains compared with the very best overseas models” | Launch post | Matches the independent numbers below. |
MiniMax’s own table is blunter than the showcase. On Terminal Bench 4.1 M4 posts 56.6 to Kimi’s 68.2, on SWE-Marathon 44.0 to Claude Opus 5.5’s 72.5, and on FrontierCode-AA 33.0 to 46.9. Two outside sources agree. On Arena’s WebDev leaderboard M4 scores 1731, against 1817 for Claude Opus 5.5 and 1816 for Claude Fable 5.2. On the Vals Index it holds 61.65%, rank 15 of 45, just above Kimi K3.1 Pro at 60.88% and well below Gemini 4 Neon at 69.23%.
How I ran it
I ran eight models, more than my usual five, because the useful question about M4 is who it sits next to: MiniMax M4, MiniMax M3, Kimi K3.1 Pro, DeepSeek V4.1 Flash, GLM-5.3, Claude Opus 5.5, GPT-6.2 Sol and Gemini 4 Neon. Kimi and GLM ran on Synthetic, DeepSeek on Morph, and Claude, OpenAI, Gemini and MiniMax on their own APIs. M4 also ran through the OpenCode Go route when MiniMax’s Token Plan hit its five-hour usage limit (an HTTP 429) partway through the long-context and design runs. The limit reset on schedule and I carried on.
The harness is opencode 1.19.6, with a custom provider for MiniMax’s API. Each design task is a single prompt, printed below, with no follow-ups and no rendering feedback, so the model writes its files blind. I launched all eight models together for each task, so wall times include whatever queueing each provider did. Pages were rendered from the files exactly as written, in headless Chromium with software WebGL, and the screenshots are from those renders.
The test machine is a virtual machine with 4 vCPUs (Intel Xeon, 2.1 GHz), 15 GB of memory, a 252 GB disk and Ubuntu 24.04.5 on kernel 6.18.44. Requests left through a sandbox proxy, and I confirmed that api.minimax.io presented a real Let’s Encrypt certificate rather than a re-signed one.
opencode caps a model’s output at 32,000 tokens by default. Where a model’s first run hit that cap and returned nothing, I re-ran it with a higher cap (64,000, or up to 200,000 for M4 at default effort) and report that run. Every task is one run per model, so the sample sizes are small and I treat them as smoke tests, not rankings. Nothing in the results has been altered.
The catch is default effort
M4’s effort setting is the first thing to know. Max is the default and thinking can’t be turned off. On the pelican prompt the 32,000 token cap ran out during thinking after 265 seconds, with 32,000 reasoning tokens spent and no SVG written. Raising the cap to 64,000 produced a pelican in 20 seconds. On the larger single-file tasks, the 32,000 token cap returned nothing every time, and even 64,000 wasn’t enough for the game, the 3D island, the orbit playground and the video. For those I raised the cap to 200,000 tokens, and they took between 12 and 39 minutes.

| Task | M4 default effort | M4 low effort | Fastest other model |
|---|---|---|---|
| Pelican SVG | 20 s (64k cap) | 24 s | 32 s (Claude Opus 5.5) |
| Papercraft lighthouse | 971 s (64k cap) | not run | 122 s (GPT-6.2 Sol) |
| Tidewatch landing page | 955 s (64k cap) | not run | 152 s (GPT-6.2 Sol) |
| Orbit playground | 731 s (200k cap) | 60 s | 140 s (GPT-6.2 Sol) |
| 3D boat game | 2,318 s (200k cap) | 119 s | 160 s (GPT-6.2 Sol) |
| 3D lighthouse island | 2,062 s (200k cap) | 1,181 s | 192 s (GPT-6.2 Sol) |
| Code-to-video | 950 s (200k cap) | 198 s | 90 s (GPT-6.2 Sol) |
The effort sweep on MiniMax’s API shows why low effort is tempting. On ten hard arithmetic questions every level scored 10 out of 10, while reasoning tokens climbed from 2,909 at low to 5,169 at max (5,248 at xhigh) and the time from 26.7 to 46.2 seconds. On that set, max bought no accuracy.

Design tests
Design is where M4 is meant to shine, and where MiniMax’s own launch material leans hardest. Each prompt below is the exact text I gave every model.
Pelican on a bicycle
Write a single SVG file named pelican.svg containing a pelican riding a bicycle. Use viewBox 0 0 800 600, no external resources and no scripts. The pelican must be recognisable (large bill with a throat pouch) and the bicycle must have two wheels, a frame, pedals and handlebars. Only write the file. Do not render or open it.

M4’s pelican has a clear throat pouch, a red frame with a chain, and a tidy hill, but the bird sits upright and stiff on the bike. Kimi and Sol draw the more convincing pedalling pose, and Kimi’s motion lines and beach scene add the most.
Papercraft lighthouse
Create one self-contained file named scene.html: a papercraft diorama of a lighthouse on a cliff at dusk, built from layered paper-cut shapes (inline SVG or CSS) with soft drop shadows between the layers to fake depth, a warm dusk palette, and a gentle looping animation (CSS keyframes) such as drifting clouds, a sweeping lighthouse beam and twinkling stars. No external resources and no scripts needed. Design for a 1280x720 viewport. Only write the file. Do not render or open it.

M4 adds a paper grain texture and a framed border, and the sun reflection on the water is good. The big purple cliff on the right is a slab of empty colour though, and the layering is flatter than Opus’s stacked sunset arcs or Kimi’s richer cliff.
Tidewatch landing page
Design a landing page for Tidewatch, a fictional surf and tide forecasting app for people who swim and surf at New Zealand beaches. Write one self-contained file named index.html with inline CSS and a little inline JavaScript, no external resources, no frameworks, no stock photos (draw any imagery yourself with inline SVG or CSS). It needs a hero with a clear headline and call to action, a feature section, a live-looking tide chart you draw yourself, pricing with three tiers, a testimonial and a footer. Give it a distinct visual identity with considered typography, spacing and colour, not a generic template. It must work well at 1440px wide and at 390px wide. Only write the file. Do not render or open it.

This is M4’s best design result. It went for a cream and vermilion identity, a serif headline with an italic accent, and a hero scene of a headland at sunrise with a live tide readout card, plus an interactive tide chart further down. Five of the eight went dark teal, which makes M4’s cream-and-vermilion page stand out. The full page also holds up at 390 pixels, with no clipping and a readable pricing stack.


Orbit playground
Build an interactive orbital mechanics playground as one self-contained file named index.html (inline CSS and JavaScript, canvas or SVG, no external resources). A star sits in the middle. The user can drag a planet to a new position and fling it to set its velocity, and it then follows a physically plausible orbit under gravity, leaving a fading trail. Include sliders for the star's mass and the time speed, a button to add another planet, a reset button, a live readout of the selected planet's orbital period and eccentricity, and a clear on-screen hint for first-time users. Make it feel polished and responsive. It must work with mouse and touch and at 390px wide. Only write the file. Do not render or open it.

M4’s low effort run is functional and compact, with the hint card in the middle of the screen and a readout of period and eccentricity in the corner. The default effort run took 731 seconds and is the version I’d ship.

3D boat game
Build a small playable 3D game as a single web page. Write index.html that loads Three.js with <script type="importmap">{"imports":{"three":"./vendor/three.module.js"}}</script> and then a module script that does import * as THREE from 'three'. The files vendor/three.module.js and vendor/three.core.js already exist; do not load anything else from the network. Game: a low-poly boat dodges rocks and collects glowing buoys on an endless stretch of animated sea, steered with the left and right arrow keys (and A and D), with a score, a best score, a start screen, a game-over screen and a restart key. It should look good: lighting, fog, a sky, water that moves, and some polish on the models. Expose window.__game = { get state() {return 'menu'|'playing'|'over'}, get score() {return number} } so it can be tested. Only write files. Do not render or open it.

For the default effort game (Buoy Run, 2,318 seconds, 213,050 reasoning tokens) I drove it with a script. It starts on the menu, moves to playing when started, scored 67 with simulated steering, reached the game-over state at 73, restarted on R, and logged no page errors. The game over screen and the rest are below.

3D lighthouse island
Build a detailed 3D model of a lighthouse keeper's island as one web page. Write index.html that loads Three.js with <script type="importmap">{"imports":{"three":"./vendor/three.module.js"}}</script> and then a module script that does import * as THREE from 'three'. The files vendor/three.module.js and vendor/three.core.js already exist; do not load anything else from the network (write your own simple orbit controls with mouse or touch drag and wheel zoom). Everything must be built from code: a rocky island, a tall striped lighthouse with a lamp room and a rotating light beam, a keeper's cottage, a jetty with a small boat, a few trees, and water. Soft shadows, good lighting, a slow idle camera orbit. Expose window.__ready = true once the first frame has rendered. Only write files. Do not render or open it.

This is where the 34 minutes pays off. M4’s default effort island (top left) has a sculpted green headland with a rocky foot, a proper jetty, a cottage, red buoys and surf, and a striped tower with a visible beam. In my judgement it is the best of the nine. Low effort gave a smaller island and still took 1,181 seconds. GPT-6.2 Sol returned a polished result in 192 seconds, and it is the one I’d take if I were in a hurry.

Code-to-video
Code-to-video: make a 10-second animated title sequence for a fictional tech news channel called Signal Desk, as one self-contained file named index.html (inline CSS and JavaScript, canvas or SVG, no external resources). The canvas is 1280x720. It must be fully deterministic and driven by a single function window.seek(t) that draws the exact frame at time t in seconds, for t from 0 to 10, with no use of the wall clock, requestAnimationFrame timing or randomness that changes between calls. Include kinetic typography, a logo build-up, a data-visualisation moment, smooth easing and a closing hold on the title. Make it look like broadcast motion design. Only write the file. Do not render or open it.
The prompt forces a deterministic window.seek(t), so I captured every frame with Playwright and encoded 10 seconds of video from M4’s low effort run. It builds a logo, kinetic type and a data visualisation with smooth easing, and it looks like broadcast motion design. The default effort run took 950 seconds and left one glitchy frame with an orange square, so the video below is the low effort one.

Numbers and a coding task
The number tests have exact answers, so grading is mechanical. The easy set is twelve questions, and the hard set is ten. Both ran through opencode, the prompt tells the models not to use tools, and they answer in JSON.
Answer these from your own working. Do not run any commands or use any tools. Reply with only a JSON object using the keys q1 to q12, no commentary.
q1: What is 19 multiplied by 47?
q2: What is the remainder when 876543219 is divided by 89?
q3: How many times does the letter s appear in the word possessiveness?
q4: What is 2 to the power of 36?
q5: What is 72 times 135, divided by 8, rounded down to a whole number?
q6: What is the sum of all prime numbers below 60?
q7: Spell the word Minimaxing backwards (keep the capital letter where it lands).
q8: What is the 35th Fibonacci number, if F1 = 1 and F2 = 1?
q9: How many days are there from 2026-12-03 to 2027-05-01?
q10: Write 1000 in binary.
q11: How many whole numbers from 1 to 200 are divisible by 4 but not by 6?
q12: How many words are in this sentence: The tall ships drifted slowly past the quiet harbour as seagulls circled above the old wooden pier
Answer these from your own working. Do not run any commands or use any tools. Reply with only a JSON object using the keys h1 to h10, no commentary. Give every number as plain digits with no separators.
h1: What is 63719 multiplied by 80429?
h2: What is 13 to the power of 91, modulo 1000?
h3: What is 135792468 multiplied by 864209753?
h4: How many prime numbers are below 300?
h5: What is 3 to the power of 80, written out exactly?
h6: What is the sum of the digits of 2 to the power of 150?
h7: What is the integer part of the square root of 2000000023456?
h8: What day of the week is 1 May 2027?
h9: What is 19 factorial?
h10: What is the greatest common divisor of 234567 and 9876?
On the easy set M4, M3, Kimi, DeepSeek, Neon, Opus and Sol all scored 12 out of 12 in 8 to 19 seconds, apart from Neon at 122 seconds. On the hard set M4 scored 9 out of 10, missing the integer square root (h7). M3 also scored 9 out of 10, missing 19 factorial (h9). Kimi, DeepSeek, Neon, Opus and Sol scored 10 out of 10. GLM-5.3 never returned usable JSON, so it is left out of this part.
The coding task is a small Node project called tidekit with three stub modules: an LRU cache with a TTL, a CSV parser and a duration parser. The models see ten visible tests and the README. I graded against fifteen hidden tests for the cases the README describes but the visible tests don’t cover.
This Node project (tidekit) has three stub modules in src/ and a test file for each in test/. The README describes the behaviour each module must have. Implement all three modules so that every test passes, following the README carefully, including cases the visible tests do not cover. Do not edit anything in test/ and do not install any packages. Run `npm test` until it passes.
| Model | Tests passed (of 25) | Time |
|---|---|---|
| Claude Opus 5.5 | 24 | 43 s |
| DeepSeek V4.1 Flash | 24 | 54 s |
| GPT-6.2 Sol | 25 | 63 s |
| Gemini 4 Neon | 24 | 121 s |
| Kimi K3.1 Pro | 25 | 135 s |
| MiniMax M3 | 25 | 168 s |
| MiniMax M4 | 24 | 218 s |
| GLM-5.3 | 24 | 708 s |
Five models, M4 among them, failed the same hidden case, the one that checks invalid durations. M4’s parser accepted “1h 30m” with a space in it, where the hidden test expects a TypeError. Only Kimi, M3 and Sol went clean.
The API itself
I hit MiniMax’s endpoint directly for the things an app would care about.
| Check | Result |
|---|---|
| Speed | M4 at low effort ran 117 to 139 tokens a second and at max 116 to 124 (completion tokens including reasoning, over total seconds, three runs each on a 600-word essay). MiniMax M3.1 Flash ran 117 to 199 and M3 ran 183 to 205. Time to first token was about one to two seconds. |
| Prompt caching | A 6,223 token prompt showed 192 cached tokens on the first call and 6,220 on the second, and the call dropped from 6.67 s to 3.47 s. |
| Long context | A planted needle was found at roughly 95k, 381k and 858k tokens, with the 858k answer taking 13.8 s. Five needles at about 775k were all found at low and max effort in around 12 s. |
| Tool calling | Worked. A tide lookup for Piha beach was called correctly. |
| Image input | Worked. It described my pelican PNG correctly. |
I only treat the cached-token behaviour as established here. My test prompt wasn’t built to measure billing savings.
A Laravel app, built end to end
To check M4 on work an actual team would do, I asked it to build a small Laravel 13 app on the official Laravel AI SDK, then pointed the app back at M4 for the real job of reading receipts. Receipt Desk takes a photo of a shop receipt, extracts the lines with M4, and then refuses to trust the model: a validator checks the arithmetic and flags anything that doesn’t add up.

This is the exact prompt. M4 ran it in opencode with the SDK already installed, and the prompt tells it not to call the model API.
This is a fresh Laravel 13 application with the official Laravel AI SDK (laravel/ai) already installed. Build a small app called Receipt Desk that reads photos of shop receipts with an AI model and checks the arithmetic.
Requirements:
1. AI provider: configure the SDK's openai-compatible provider in config/ai.php and .env.example to call https://api.minimax.io/v1 with the model MiniMax-M4, reading the key from MINIMAX_API_KEY. Make it the default provider. Read the SDK's source in vendor/laravel/ai to find the right way to do this; do not guess.
2. A ReceiptReader agent class (app/Ai/Agents) that is given a receipt image and returns structured output: vendor, date (Y-m-d), currency, line items (description, quantity, unit_price, line_total), subtotal_excl_gst, gst and total. Prices on New Zealand receipts include 15% GST.
3. A ReceiptValidator class that does not trust the model: it checks each line_total equals quantity times unit_price, the line totals add up to the total, and gst is within 2 cents of total*3/23. Any failure marks the receipt needs_review with the reasons listed; otherwise it is verified.
4. Receipts live in the database (migrations for receipts and receipt_items). POST /receipts stores an uploaded image and dispatches a queued job that calls the agent, saves the result and runs the validator. Show a status of queued, verified, needs_review or failed.
5. Pages: / lists receipts with status badges and has a drag-and-drop upload area; /receipts/{id} shows the image beside the extracted fields and highlights the validation reasons. Plain Blade with a small amount of Alpine or vanilla JavaScript is fine, keep the design clean and responsive. No external CDNs.
6. An Artisan command `php artisan receipts:import {directory}` that imports every image in a folder synchronously and prints a table of vendor, total and status.
7. Pest (or PHPUnit if Pest cannot be installed) feature tests that use the SDK's fake support so no network calls happen: one for a clean receipt, one where the model's totals do not add up and the receipt is flagged, and one for the upload endpoint.
Use SQLite and the database queue. Run the migrations and make `php artisan test` pass. Do not make real calls to the model API; I will run the real import myself. When done, print a short summary of the files you created.
M4 took 719 seconds and 114 steps, with 103,793 input, 28,298 output and 39,467 reasoning tokens, and wrote 685 lines of PHP in app/. It read the SDK source as instructed and found the right driver. The provider block it wrote is correct as written.
'minimax' => [
'driver' => 'openai-compatible',
'url' => env('MINIMAX_URL', 'https://api.minimax.io/v1'),
'key' => env('MINIMAX_API_KEY'),
'models' => [
'text' => [
'default' => env('MINIMAX_MODEL', 'MiniMax-M4'),
],
],
],
The agent is a class with instructions and a typed schema, and the validator carries the real logic. Prices on New Zealand receipts include 15% GST, so GST should be 3/23 of the total, and the check is done in integer cents to avoid float noise:
$gstCents = $this->toCents($receipt->gst);
if (is_null($gstCents)) {
$reasons[] = 'The GST amount is missing.';
} elseif (! is_null($totalCents) && abs($gstCents * 23 - $totalCents * 3) > self::GST_TOLERANCE_CENTS * 23) {
$reasons[] = sprintf(
'The GST of %s is more than %s away from three twenty-thirds of the total (%s).',
$this->money($gstCents),
$this->money(self::GST_TOLERANCE_CENTS),
$this->money((int) round($totalCents * 3 / 23)),
);
}
The app has a queued job with three tries and a 180 second timeout, migrations for receipts and items, a drag-and-drop upload page, a detail page that shows the image beside the extracted fields, and an Artisan import command. Twenty-two Pest tests with 78 assertions pass, all using the SDK’s fake support, so no test touches the network.
The real run
I drew seven receipts as images for the test. My first set printed the subtotal, GST and total in near-white ink, which was my generator’s bug, and one model returned zeros, as the agent’s instructions tell it to for unreadable values. I redrew all of them in dark ink, added a seventh receipt (a crayfish cafe whose lines sum to 30.00 but whose printed total is 32.00), and the results below are from the redrawn set only.
The import ran all seven in 39.6 seconds. Six came back verified and one, the crayfish cafe, was flagged with “The line totals add up to 30.00 but the receipt total is 32.00.” Every figure matched my ground truth. M4 also read all seven faithfully when I called it directly at 3 to 5 seconds a receipt, and Claude Opus 5.5, GPT-6.2 Sol and Gemini 4 Neon did the same, so on this task the four are indistinguishable.

Two bugs, one fix prompt
The first screenshots showed two real UI defects. The upload drop zone showed a broken image icon before any file was chosen, and at 390 pixels the status column was clipped. Neither showed up in the 22 tests. I gave M4 this prompt:
Receipt Desk has two UI defects visible in screenshots. 1) On the index page the upload drop zone shows a broken image icon and the alt text "Selected receipt" before any file is chosen; the preview image must stay hidden until a file is selected. 2) At a 390 px wide viewport the receipts table on the index page is clipped on the right, so the Status badges are cut off; make the table fit or scroll cleanly on narrow screens. Fix both in the Blade views and CSS only. Run php artisan test afterwards and make sure it still passes. Do not make any model API calls.
It fixed both in 423 seconds, in the Blade views and CSS only, and the 22 tests still passed.

Where that leaves M4
M4 is a capable model with a low price and a slow default. If you can spend 12 to 39 minutes and a 200,000 token cap on a hard single-file build, it gave me the best 3D island, a distinctive landing page and a game that plays. If you need an answer quickly, GPT-6.2 Sol and Claude Opus 5.5 are faster on every design task I ran except the pelican, by roughly 5 to 14 times against M4 at default effort. Low effort cut the orbit playground to 60 seconds and the game to 119.
On the work an app does around a model, it did fine. It followed the Laravel SDK’s source, wrote code that passed its own tests, handled long context and read receipts correctly. It did not beat the closest models in its league on numbers or coding, and MiniMax’s own table says the same thing.
What I couldn’t test is the claim that matters most to anyone planning to self-host: the weights aren’t out and there is no licence yet. I’ll update this piece when they ship.




