MiniMax M4

MiniMax M4 accepts text, images, and video for tasks such as working across a large codebase, building interactive websites, and turning reference drawings into editable 3D models.

MiniMax M4 preview

What is MiniMax M4?

MiniMax M4 is a mixture-of-experts language model designed for software engineering tasks that span many steps. It has 2.74 trillion total parameters, activates 66 billion per token, and supports a 1 million-token context window. MiniMax’s public demos include a desktop browser written in Rust, interactive Three.js websites, and 3D models built from reference material. The hosted model is available through the MiniMax API and MiniMax Code. [MiniMax M4 launch and demos](https://www.minimax.io/blog/m4)

What can MiniMax M4 do?

  • 1 million-token context

    Provide large amounts of code, documentation, and prior conversation in a single request.

  • Text, image, and video inputs

    Add screenshots, mockups, or video references alongside text instructions in the same API request. [MiniMax API reference](https://platform.minimax.io/docs/api-reference/text-anthropic-api#messages-field-support)

  • Adjustable reasoning effort

    Choose from five effort levels, from low to max. Higher settings use more reasoning tokens and take longer. [MiniMax thinking controls](https://platform.minimax.io/docs/api-reference/text-anthropic-api#thinking-depth-control-minimax-m4-minimax-m3-1-flash)

  • Tool calls and streaming

    Use application-defined tools in multi-turn workflows and stream the model’s response as it generates. [MiniMax API reference](https://platform.minimax.io/docs/api-reference/text-anthropic-api)

How to get started

  1. 1

    Install the SDK and get an API key

    Install the Anthropic SDK for Python or Node.js and obtain an API key from the MiniMax Open Platform.

  2. 2

    Point the SDK at MiniMax

    Set `ANTHROPIC_BASE_URL` to `https://api.minimax.io/anthropic` and set `ANTHROPIC_API_KEY` to your MiniMax key.

  3. 3

    Send a test message

    Call the Messages API with `MiniMax-M4` as the model and read the answer from the text content block.

Open official guide

Who is MiniMax M4 for?

  • Implement changes across a codebase

    Give M4 the relevant source files and requirements for a feature that touches multiple modules, then have it draft changes and tests.

  • Build an interactive website from a mockup

    Use a visual reference to build a browser prototype with scroll-driven scenes or interactive 3D elements. [MiniMax M4 showcase](https://www.minimax.io/blog/m4#showcase)

  • Turn reference drawings into editable 3D models

    Use photos and technical drawings to generate modeling scripts for Blender or CAD, including assemblies with parts that can move independently. [MiniMax M4 showcase](https://www.minimax.io/blog/m4#showcase)

How much is MiniMax M4?

View official pricing
  • API input

    $0.80per 1 million input tokens

    Pay-as-you-go rate for uncached input tokens.

  • API output

    $3.10per 1 million output tokens

    Pay-as-you-go rate for generated tokens.

  • API cache reads

    $0.05per 1 million cached input tokens

    Pay-as-you-go rate for input tokens served from the prompt cache.

Checked 12/4/2026 · The hosted API bills by token usage in USD. MiniMax also lists M4 access through M Plan and MiniMax Code. [Official API pricing](https://platform.minimax.io/docs/pricing/overview)

Frequently Asked Questions

Where can I use MiniMax M4?

MiniMax lists three access routes for M4, the hosted API, M Plan, and the MiniMax Code app. [MiniMax launch announcement](https://www.minimax.io/blog/m4)

What model ID should I use?

Set the model to `MiniMax-M4` in requests to the MiniMax API. MiniMax provides a working request example for the Anthropic SDK. [MiniMax API quick start](https://platform.minimax.io/docs/api-reference/text-anthropic-api#quick-start)

Which image and video formats can M4 read?

The Anthropic-compatible API accepts JPEG, PNG, GIF, and WebP images, plus MP4, AVI, MOV, and MKV videos. Images can be sent by URL or as base64 data. The Files API also supports uploaded video references. [MiniMax input formats and limits](https://platform.minimax.io/docs/api-reference/text-anthropic-api#input-limits)

Does reasoning count toward the output token limit?

Yes. On the Anthropic-compatible endpoint, reasoning tokens count toward `max_tokens`, so a small limit can run out before the model returns answer text. [MiniMax API compatibility](https://platform.minimax.io/docs/api-reference/text-anthropic-api#compatibility)

Can I download the model weights?

The official repository provides the technical report. MiniMax says the weights will follow after internal and third-party safety evaluations. [MiniMax M4 repository](https://github.com/MiniMax-AI/MiniMax-M4) [Release announcement](https://www.minimax.io/blog/m4)

How much does M4 cost through the API?

The published rates are $0.80 per million input tokens, $3.10 per million output tokens, and $0.05 per million tokens read from the prompt cache. [Official API pricing](https://platform.minimax.io/docs/pricing/overview)

Looking for something else?

Explore tools similar to MiniMax M4.

Browse Large Language Models (LLMs)

More Large Language Models (LLMs) tools

View all

No other tools are listed in this category yet.

Report an issue

Spotted a problem with the MiniMax M4 listing? Let us know.

Report an issue with MiniMax M4