Create more. Sell more this Black Friday.Explore
Skip to article
Three braided cables connect to a brushed aluminum hub.
Tutorial

Where to Use MiniMax M4: Apps, Coding Tools and Access

Choose a MiniMax M4 access route for your work. Find the official app, check M Plan access in Claude Code, or test a first request from your own application.

JessieCOO
4 min read
To try MiniMax M4 on a local project, start with MiniMax Code for desktop. If you already work in Claude Code, MiniMax documents how to point that client at M4. For a service that must send requests without a person at a keyboard, use an API. Your choice determines which account pays and which software can open files or run tests.

Which account and tool do I need?

What you haveWhere to startFirst check
A task to try in a browserMiniMax Code web app, signed in with your subscription accountSelect M4 and ask it to describe a reference image
A local repository or an existing Claude Code setupGive the desktop app folder access, or use an M Plan subscription key in Claude CodeAsk for a known file and verify the active model and permissions
An unattended serviceMiniMax pay-as-you-go key or an EvoLink keySend a short request and check the model ID and billing account

Try M4 in MiniMax Code

Open MiniMax Code, sign in, and look for M4 in the model controls available to your account. Use the web app for a task with material you can supply in the browser. Use the desktop app when you need to select a local project folder and let the agent run a test.

For a first task, select a small repository and ask: “Where does the catalog read the current page number? Show me the file and function.” Check that the file exists and the function handles pagination. Then ask for one change and inspect the diff. This makes it easy to tell what the app actually read.

Which plan includes M4, and why does the app show 400K? MiniMax lists M4 on all four paid M Plan tiers. MiniMax Code defaults to 400K context for M4. Select 1M in the message-box model selector when you need a large set of files or a long log in one pass. M4 draws on the weekly plan allowance. Bursts of requests can also hit a separate rate limit, so check the usage screen before upgrading. Model selection guide · Usage rules

Keep your editor and use M Plan in Claude Code

M Plan is MiniMax’s subscription. It supplies an allowance for supported tools. MiniMax Code is an application that can use that allowance. Check the models and quota in your account before configuring a client. MiniMax M Plan
In the official Claude Code setup, use your MiniMax subscription key with the Anthropic-compatible base URL https://api.minimax.io/anthropic. Follow MiniMax’s settings for the model aliases so a background task does not silently use another model. Start a fresh session. Use /status to check the host and /model to check that M4 is active. MiniMax’s guide also shows how to declare 1M context in the client. Claude Code setup

Check MiniMax’s full manual configuration before saving. This excerpt identifies the provider and the model. Set the default Sonnet, Opus and Haiku aliases in the full configuration so those routes use M4 too.

{
  "env": {
    "ANTHROPIC_BASE_URL": "https://api.minimax.io/anthropic",
    "ANTHROPIC_AUTH_TOKEN": "<MINIMAX_SUBSCRIPTION_KEY>",
    "ANTHROPIC_MODEL": "MiniMax-M4[1m]"
  }
}

Connect an application or compare providers

For direct access, create a MiniMax platform key for your intended billing arrangement, copy the matching SDK example and set the model to MiniMax-M4. Send a short text request before adding files or tools. Inspect the returned model, completion status and usage, then check where that request was billed. MiniMax invocation examples
Create an API key in your EvoLink dashboard and set it as EVOLINK_API_KEY in your shell. For an OpenAI-compatible application, send a text message to the Chat Completions endpoint with the model ID MiniMax-M4.
curl --fail-with-body https://direct.evolink.ai/v1/chat/completions \
  -H "Authorization: Bearer $EVOLINK_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"model": "MiniMax-M4", "messages": [{"role": "user", "content": "Introduce yourself in one sentence."}]}'
A successful text response contains the reply in choices[0].message.content. Check model and usage before sending a larger job. EvoLink MiniMax Chat Completions guide · MiniMax M4 rates and model details

What if the first attempt fails?

An authentication error is a reason to check the key and host together. A model-access error calls for checking the exact ID and your account’s entitlement. If you get a text reply but no file changes, inspect the client’s project permissions and tool settings. A successful API response alone does not give a model access to your disk. For examples of work that benefits from a connected agent, see what MiniMax M4 can do.

Connect AI models through one API

Compare models and current pricing, then follow the API documentation to integrate your chosen model.