MiniMax M4 / Chat & OpenAI-Compatible API

MiniMax M4 chat & API.

Use MiniMax M4 in our web workspace with automatic web search and image generation, or call it from any OpenAI SDK, Cursor, or script with one shared credit balance.

Choose a film
Turing and the codebreakers

A portrait made of 100,000 particles opens a seven-scene film about Alan Turing.

Connect via OpenAI-compatible API

Chat with MiniMax M4

Ask a question, search the web, or create an image in chat.

Open chat

Developer API Proxy

Drop-in OpenAI-compatible MiniMax M4 API.

Point any OpenAI SDK, Cursor, Cline, or backend script to https://minimaxm4.net/api/v1 with model MiniMax-M4. API requests draw from the exact same credit pool as Web Chat — billed per token at 1-credit granularity, with streaming and tool calling supported out of the box.

  • One credit balance for Web Chat, Web Search, Images, and API calls
  • Streaming SSE & tool calls via standard /api/v1/chat/completions
  • No enterprise setup — create a key in seconds and use credits from a one-time pack or a subscription
curl https://minimaxm4.net/api/v1/chat/completions \
  -H "Authorization: Bearer sk_your_api_key" \
  -H "Content-Type: application/json" \
  -d '{
    "model": "MiniMax-M4",
    "messages": [{"role": "user", "content": "Write a Three.js particle shader"}],
    "stream": true
  }'

Release demos & live particle canvas

4 films + live demo
Live example

Live browser effect showcase

16,000-particle portrait canvas in real time

Inspired by the Turing codebreakers release film, this live HTML5 Canvas sequence runs entirely in your browser — a quick preview of the code-driven motion M4 excels at generating.

Ask M4 to write a canvas or Three.js scene

A guide to MiniMax M4

Understanding MiniMax M4

What is MiniMax M4?

MiniMax M4 is a multimodal model developed by MiniMax. The company describes it as a model for tasks such as reasoning, writing code and working with visual material. The four release films give those claims a concrete setting. One follows a camera moving through a portrait built from particles. Another shows a browser rendering a page with code MiniMax says M4 wrote in Rust. You can watch those recordings here, then ask M4 about a particular scene or try a question of your own.

Read the MiniMax model guide

What does a one-million-token context window mean?

MiniMax lists a context window of one million tokens for M4. A token is a unit the model uses to represent input and output. The number of words that fit varies with the language, formatting and amount of code. A large window is useful when a question depends on material scattered across a long conversation or document. Give the model landmarks such as a function name, section heading or exact quotation. The model specification and the amount of material a particular chat interface accepts are separate limits.

Check the published context specification

Why does MiniMax list both 2.74 trillion and 66 billion parameters?

MiniMax reports 2.74 trillion parameters in the full model and 66 billion active for a given token. The first figure describes the size of the overall model. The second describes the subset used while processing an individual token. Neither number tells you how long a particular answer will take or whether the model can complete your project. For choosing a workflow, a small test with a known result usually tells you more. Try asking M4 to explain a function you already understand and check its explanation against the code.

See the model figures from MiniMax

What makes M4 an agent when I use it in chat?

An agent can decide that it needs a tool, call that tool and use the result in its answer. On minimaxm4.net, the clearest example is a question about a current release. M4 can search for a recent source before answering, while a question about a line of text you supplied can be answered directly. The software available to an agent also matters. The Unreal Engine, Blender and CAD workflows shown in the films belonged to the demonstration environments. Opening a chat here gives you the tools in this interface.

See how MiniMax hosts search

Using M4 in your browser

How do I start a MiniMax M4 chat?

New accounts get 100 welcome credits after email verification or Google sign-in. Open Chat or enter a question in the box above. The first message can be a direct request, such as “Explain what a shader does in two sentences.” Add a follow-up in the same conversation to build on the answer. To ask about a specific film, open its notes first and start the chat there. That route supplies the selected film’s editorial notes to M4. You can refer to the project by name or ask about a detail without copying the whole description into your message.

Open M4 chat

How does M4 decide whether to search the web?

Web search is available in ordinary chat. M4 decides whether a lookup would help, so you can ask a question in your own words. Compare “What is a context window?” with “What context window does the current MiniMax API guide list for M4?” The second question gives the model a reason to check an external source. When the search tool returns links, minimaxm4.net includes them under Search sources. Open the primary source and check the passage yourself, especially when the answer depends on a version number or release date.

Read the hosted search documentation

How do I generate and download an image?

Ask for the image directly in chat, for example “Draw a violet glass prism on black velvet, 16:9, 2K.” You can attach up to 16 reference images or specify an H3 Image model and size in the same message. Without explicit settings, image generation uses H3 Image Highspeed at 1024 by 1024. The finished image appears in the conversation with a download link.

View the H3 image API specification

Can I use the site on a phone without installing anything?

Yes. You can play the four release clips, read the film notes and use the chat composer in a mobile browser. Tap a film title in the screening room to switch the video, then use the player controls to pause or scrub back to a detail. In chat, open the history menu to switch conversations. If you want to compare two frames closely, pause the video and turn your phone sideways. The Rust browser recording is silent, so a lack of audio on that clip is expected.

Choose a release film

How do I save an answer or reopen an older conversation?

Use Copy response for a single answer or the download control at the top of the conversation to export the saved exchange as Markdown. Open the conversation list to return to a previous chat. Guest history is associated with the browser’s guest cookie, so use the same browser profile when returning. Signed-in sessions can reopen conversations saved to the same account. For a generated picture you plan to keep, download the JPEG itself. Deleting its conversation also removes the image stored with that conversation.

Open your conversation list

Does watching a demo use API credit, and what if chat stops responding?

Playing a release film loads an existing MP4 and makes no model request. Sending a chat message, generating an image, or calling /api/v1/chat/completions uses credits from your minimaxm4.net account. If you see an insufficient-credit message here, it refers to that account. If a reply is interrupted, reopen the conversation and check the last saved turn before sending again. An image request may finish on the provider’s side after a disconnect, so submitting the same prompt twice can produce two billable generations.

Check MiniMax’s image request and retry behavior

Reading the four release films

What did M4 do in the Alan Turing film?

MiniMax describes a seven-scene film constructed with Three.js and GLSL. Its opening portrait is made from 100,000 particles. Watch the first sequence twice. On the first pass, follow the face as it becomes recognizable. On the second, focus on a small patch where loose points settle into light and shadow. You can see how the composition changes even without reading the underlying code. The release article supplies the particle count and the account of the production tools. The 64-second recording supplies the finished sequence and soundtrack.

Watch Turing and the codebreakers

How was the ruined street in the Unreal Engine demo built?

According to MiniMax, M4 implemented movement and interactions in C++ and used Python scripts in Blender to build the street for Unreal Engine 5. A useful detail to inspect is the depth of the window frames. As the player moves sideways, the recessed frames shift relative to the facade behind them. Pause on a window, move forward a few seconds, then compare the visible side of the recess. That small change helps explain why a modeled opening can look different from a flat window texture.

Watch the first-person UE5 walkthrough

What does the robot dog’s exploded view show?

The 30-second animation separates a red quadruped into assemblies and brings them back together. Pick one knee joint or a housing panel and follow it through the middle of the clip. You can see which components fit inside the shell and which move away as a group. MiniMax reports 2,800 solids, 302 screws and 22 joints in the CAD model, and describes a Blender animation that separates 3,097 parts. Those figures describe the digital project. A hardware evaluation would also need tolerances, materials and physical test results.

Inspect the robot CAD animation

What did the Rust browser actually demonstrate?

The recording shows a desktop browser starting from a terminal, rendering content and running an interactive to-do list. It ends with a score of 100 out of 100 on Acid3, a specific web compatibility test. MiniMax reports that M4 had a 24-hour engineering window and produced about 120,000 lines of Rust, including a JavaScript engine, HTML parser and layout code. The recording lasts thirty seconds. For an assessment of general browser compatibility, you would also want results across other test suites and a range of real sites.

Watch the Rust browser and Acid3 test

Which M4 demo should I watch first?

Choose the film that lets you judge something you already know. For animation, start with the particle portrait and follow the camera between scenes. For games, the wasteland clip gives you more than a minute to inspect movement and depth. For mechanical design, the robot’s short assembly sequence makes it easy to track a single part. For systems programming, start with the Rust browser and ask what each visible test exercises. Each film page has its own player and watch notes so you can share the relevant example directly.

Compare all four examples

Trying M4 on your own task

How do I connect an application to the MiniMax M4 API?

Use the model identifier MiniMax-M4 with an API key from /settings/apikeys and base URL https://minimaxm4.net/api/v1 (OpenAI-compatible). Start with one short text message and inspect the returned answer before adding conversation history, streaming or tools. Keep the credential on your server. API calls share the exact same credit balance as Web Chat.

Follow the official API quickstart examples

How can I test M4 on a coding task of my own?

Choose one change with an observable result. For example, give M4 a small to-do list component and ask it to preserve the order of unfinished items when one item is marked complete. Include the starting behavior, one example input and the expected result. Read the suggested change, run it in your own development environment and try the example again. This gives you a result you can reproduce. A short conversation can also reveal whether the model carries an earlier constraint through to a follow-up change.

Start a coding conversation

How do I ask a better question about one of the films?

Name the film, point to an observable detail and say what kind of explanation you want. On the wasteland page, try “Why do the window recesses change shape as the player moves sideways? Explain it to someone learning 3D graphics.” On the robot page, ask which components disappear inside the outer housing when the assembly closes. A useful follow-up is “Which parts of that explanation come from the release notes?” That lets you compare the model’s interpretation with the description supplied by the publisher.

Start from the wasteland film notes

Can I reproduce one of these demos from the video alone?

The recordings can guide a smaller experiment. To explore the Turing portrait, for example, choose a simple image, represent it as a set of points and animate those points from scattered positions into place. To explore the game scene, compare a textured rectangle with a modeled window recess while moving a camera past them. Reproducing the complete release projects would require additional information about assets, prompts, build settings and evaluation. Use the recording to define one visible behavior you can compare with your own result.

Review the original MiniMax release article

Where can I verify a claim about MiniMax M4?

Choose the source that matches the claim. Use the MiniMax model guide for the API identifier and context window, the server-tools guide for supported search interfaces, and the original release article for how MiniMax says the four projects were made. Use the recordings to check visible events such as the robot coming apart or the final browser test score. minimaxm4.net is an independent guide. The model specifications and reported project figures come from MiniMax, while the viewing directions and site usage notes are ours.

Open the MiniMax M4 project repository

Source notes

Behind the release

MiniMax introduced M4 as a native multimodal model with 2.74 trillion total parameters, 66 billion active per token and a one-million-token context window. The four recordings above accompany its release article.

Explore the MiniMax M4 technical report and benchmarks for the test settings, or check MiniMax M4 on Hugging Face for the latest verified weight availability.

Original release article Technical report and repository