MiniMax M4 API pricing and specs
MiniMax M4 is a MiniMax model. It takes text, images and video and returns text, with a context window of 1M tokens. The model ID is minimax-m4. It is available through the relay.fast API with one relay.fast key and pay-as-you-go billing.
MiniMax M4 API pricing
Prices checked from the live catalog. "From" is the lowest price among the relay.fast sources that currently serve the model. The price you pay depends on the source your request uses and can change on any day. The pricing page always shows current values.
| Official input price | $0.8 per 1M tokens |
|---|---|
| Official output price | $3.1 per 1M tokens |
| relay.fast input from | $0.133 per 1M tokens |
| relay.fast output from | $0.517 per 1M tokens |
| Cache read from | $0.00833 per 1M tokens |
| Lower than the official price by | up to 83% |
MiniMax M4 specifications
| Model ID | minimax-m4 |
|---|---|
| Developer | MiniMax |
| Context window | 1M tokens |
| Input | text, images, video |
| Output | text |
| Features | tool calling, reasoning, image input, prompt caching |
| Endpoints | /v1/chat/completions |
Release month, limits and features are as published by MiniMax.
What a request to MiniMax M4 costs
Cost of one request at the prices above, without cached input. Multiply by your number of requests to estimate a budget.
| Request | Tokens, input + output | At the official price | On relay.fast, from |
|---|---|---|---|
| A short chat reply | 1,000 + 300 | $0.0017 | $0.00029 |
| One step of a coding agent | 30,000 + 1,500 | $0.0287 | $0.0048 |
| A long document summary | 150,000 + 2,000 | $0.126 | $0.021 |
Example request
Keep the key in the RELAY_FAST_API_KEY environment variable.
curl https://relay.fast/v1/chat/completions \
-H "Authorization: Bearer $RELAY_FAST_API_KEY" \
-H "Content-Type: application/json" \
-d '{"model":"minimax-m4","messages":[{"role":"user","content":"Hello"}]}'Use MiniMax M4 in coding tools
Setup guides: Claude Code, Codex, Cursor, Cline, Kilo Code, OpenCode, Aider. The API docs have one-command installers.
Frequently asked questions
How much does the MiniMax M4 API cost?
On 2026-12-04, relay.fast charges from $0.133 per 1M input tokens and $0.517 per 1M output tokens for MiniMax M4, against the official $0.8 and $3.1. The price depends on the source your request uses and can change; https://relay.fast/pricing/minimax-m4 shows the current value.
What is the context window of MiniMax M4?
MiniMax M4 accepts up to 1M tokens of context in the relay.fast catalog. Output limits depend on the model and client settings.
Does MiniMax M4 accept images?
Yes. MiniMax M4 takes text, images and video as input and returns text.
Does MiniMax M4 support tool calling?
Yes. MiniMax M4 supports tool calling (function calling), so it works in coding agents and other clients that call tools.
Which API endpoint does MiniMax M4 use?
Call /v1/chat/completions with a relay.fast API key. OpenAI-compatible SDKs use the base URL https://relay.fast/v1.
Do I need a MiniMax account to use MiniMax M4?
No. You use a relay.fast account and API key. relay.fast is an independent API gateway and is not affiliated with MiniMax.