MiniMax M4 API
MiniMax M4 is a multimodal model with a1-million-token context window, designed for software engineering, browser development, finance, and creative work.
MiniMax M4 uses a Mixture-of-Experts architecture, with MSA2 attention and the MFlashKV companion system to reduce HBM requirements and improve compute efficiency. It accepts text, images, audio, and video, and has a1-million-token context window. Its capabilities include computer use and support for Recursive Self-Improvement workflows, such as reinforcement learning data construction, continuous iteration, RFT, infrastructure optimization, and training monitoring and analysis.
The model is suited to systems-level software engineering, browser development, finance and data analysis, creative design, video production,3D modeling, and game development, including Unreal Engine5 projects. It can implement a browser from scratch, covering HTML5 parsing, CSS3 layout, SVG and Canvas rendering, and a JavaScript engine with core features through ES2022. In a browser demonstration, it wrote120,000 lines of pure Rust over more than4,000 tool calls; the demonstrated browser rendered mainstream websites and ran dynamic web apps built with React18 and Redux.
Reported benchmarks include66.7 on Vals.ai Finance Agent v2,75.5 on Banker, and100 on Acid3. The cited benchmark coverage does not provide measured evidence for reasoning, multimodal, knowledge, multilingual, instruction-following, or math categories. The publicly released general-purpose version also has attenuated capabilities in certain cybersecurity areas.
Updated:
MODEL ID
- Input / Output
- $0.8 / $3.1/ 1M tokens
- Released
- Context
- 1M
- Max output
- 524.288K
- Recommended API
- messages
- Input
- Text / Image / Video
- Output
- Text
Highlights
- 1-million-token context window
- Text, image, audio, and video
- Mixture-of-Experts architecture
- MSA2 and MFlashKV
- Computer use and browser implementation
Providers
Best priceCompare API prices across providers. Select a provider to view all charges and conditions.
| Uptime | ||||
|---|---|---|---|---|
| $0.8 | $3.1 | $0.05 | ||
Historical observations are not a live health check. Missing data does not mean an outage.
What $10 buys
- Input
- 12.5M tokens
- Output
- 3.2M tokens
Estimated from current input and output prices, before discounts.
Benchmarks
- 38.2
Posttrain Bench v1.2
- 66.7
Vals.ai Finance Agent v2
- 75.5
Banker
- 61.65%
Vals Index
Across13 benchmarks.
- 100
Acid3
Out of100.
Scores as published by the model provider.
Reasoning
- Default effort
- max
- Always enabled
- Yes
- Available effort levels
- max / xhigh / high / medium / low
Best for
Get your API key
Create a key from your Felo API Platform account and set it as an environment variable.
export FELO_API_KEY="YOUR_API_KEY"Make your first request
Use this model ID with the Felo API Platform endpoint. Optional request headers such as X-Request-Id can help troubleshooting.
minimax-m4This model is reasoning-capable. If your selected protocol and model route expose reasoning controls, preserve the returned reasoning metadata when continuing a conversation.
MessagesPOST https://openapi.felo.ai/api/v1/messages
const response = await fetch("https://openapi.felo.ai/api/v1/messages", {
method: 'POST',
headers: {
Authorization: `Bearer ${process.env.FELO_API_KEY}`,
'Content-Type': 'application/json',
},
body: JSON.stringify({
"model": "minimax-m4",
"max_tokens": 1024,
"messages": [
{
"role": "user",
"content": "Hello"
}
]
}),
});
if (!response.ok) throw new Error(await response.text());
console.log(await response.json());Using third-party SDKs
Use compatible SDKs by setting baseURL to https://openapi.felo.ai/api/v1. Use the Anthropic-compatible base URL for Claude-style clients. https://openapi.felo.ai/api.
Enable streaming
Add stream: true to receive responses as server-sent events.
curl -N https://openapi.felo.ai/api/v1/messages \
-H "Authorization: Bearer $FELO_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"model": "minimax-m4",
"max_tokens": 1024,
"messages": [
{
"role": "user",
"content": "Hello"
}
],
"stream": true
}'Parameters
modelstringminimax-m4Public model ID to call.max_tokensinteger—Maximum generated tokens.messagesarray—Conversation messages for Chat Completions.toolsarray—Tool calling definitions following compatible schema.top_p———reasoning———temperaturenumber—Controls response variety when supported.tool_choicestring or object—Controls whether a tool should be called.response_formatobject—Request structured output when supported.reasoning_effort———include_reasoning———Frequently asked questions
What is MiniMax M4?
MiniMax M4 uses a Mixture-of-Experts architecture, with MSA2 attention and the MFlashKV companion system to reduce HBM requirements and improve compute efficiency. It accepts text, images, audio, and video, and has a1-million-token context window. Its capabilities include computer use and support for Recursive Self-Improvement workflows, such as reinforcement learning data construction, continuous iteration, RFT, infrastructure optimization, and training monitoring and analysis. The model is suited to systems-level software engineering, browser development, finance and data analysis, creative design, video production,3D modeling, and game development, including Unreal Engine5 projects. It can implement a browser from scratch, covering HTML5 parsing, CSS3 layout, SVG and Canvas rendering, and a JavaScript engine with core features through ES2022. In a browser demonstration, it wrote120,000 lines of pure Rust over more than4,000 tool calls; the demonstrated browser rendered mainstream websites and ran dynamic web apps built with React18 and Redux. Reported benchmarks include66.7 on Vals.ai Finance Agent v2,75.5 on Banker, and100 on Acid3. The cited benchmark coverage does not provide measured evidence for reasoning, multimodal, knowledge, multilingual, instruction-following, or math categories. The publicly released general-purpose version also has attenuated capabilities in certain cybersecurity areas.
How is usage billed?
Your bill depends on the provider you use, its prices and your usage. Longer inputs or other conditions may have different prices.
Which input types does MiniMax M4 support?
The listed modalities are text, image, audio, and video.
What is its context window and output limit?
Its context window is1-million-token. No output limit is specified in the provided facts.
What tasks is MiniMax M4 suited to?
It is suited to systems-level software engineering, browser development, finance and data analysis, creative design, and game development, including Unreal Engine5 projects.
How does it differ from other models in its series?
The provided facts identify MiniMax M3 and M3.1 Flash as siblings but do not describe how their capabilities compare with MiniMax M4.