OpenAI-compatible APIminimax-m4
MiniMax M4 API, OpenAI-compatible
Point your OpenAI SDK at creovox.ai/api/v1, set model to minimax-m4, and you're calling MiniMax M4. The endpoint runs on Creovox AI, a multi-model AI studio.
- 240 cr / 1M in
- 930 cr / 1M out
import os
from openai import OpenAI
client = OpenAI(
base_url="https://api.openai.com/v1",
base_url="https://creovox.ai/api/v1",
api_key=os.environ["CREOVOX_API_KEY"],
)
stream = client.chat.completions.create(
model="your-current-model",
model="minimax-m4",
messages=[{"role": "user",
"content": "Merge two sorted lists."}],
stream=True,
)
python client.py response
def merge(a, b):
01Playground
Try MiniMax M4 in the playground
Type a prompt on the left and it opens in the MiniMax M4 chat on Creovox AI; copy-paste requests are on the right. Chat usage is billed in Creovox credits.
curl https://creovox.ai/api/v1/chat/completions \
-H "Authorization: Bearer $CREOVOX_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"model": "minimax-m4",
"stream": true,
"messages": [
{"role": "user", "content": "Write a Python function that merges two sorted lists."}
]
}'02Why
Why call MiniMax M4 through Creovox
One endpoint on Creovox AI, one model, billed per token in credits.
OpenAI-compatible
Chat completions in the OpenAI format. Change base_url and model, keep the SDK you already use.
Streaming SSE
Server-sent events when you set stream to true. Reasoning arrives as reasoning_content deltas before the answer.
Tool calls passthrough
Function definitions, tool_choice and parallel tool calls are passed through in OpenAI format.
1M token context
MiniMax M4 has a 1,000,000-token context window. Per-request input is subject to upstream limits.
Credits, no subscription required
Sign up on Creovox, create a key, buy credits and call. Usage is billed per token at 240 credits per 1M input tokens and 930 per 1M output tokens, with a small minimum per request. No subscription required.
Honest fallback labeling
If MiniMax M4 is unavailable, GPT-6.2 Sol answers instead. The response model field and the X-Served-Model header always say which model replied.
03Quickstart
Quickstart in three steps
From zero to a streaming answer in a few minutes.
Create an API key
Sign up on Creovox and create a key on its API keys page. New Creovox accounts get free credits. Keep the key on your server, never in browser code.
Open Creovox API keysPoint the SDK at this endpoint
Set base_url to the Creovox endpoint in your OpenAI client. Everything else stays the same.
https://creovox.ai/api/v1Set the model and call
Use model minimax-m4 in chat completions. Streaming, tools and structured output work as in the OpenAI API.
Read the reference on Creovox
04Model
MiniMax M4 model card
Facts from the MiniMax announcement and the MiniMax-AI/MiniMax-M4 GitHub repository.
- Developer
- MiniMax
- Released
- December 3, 2026
- Architecture
- Natively multimodal mixture-of-experts (MoE); all 68 attention layers use MiniMax Sparse Attention 2 (MSA2)
- Parameters
- 2.74T total, 66B active per token
- Context window
- 1,000,000 tokens (1M)
- Max output
- Up to 524,288 tokens upstream
- Reasoning
- Always on and cannot be turned off; reasoning_effort accepts low, medium, high or xhigh
- Modalities
- The model accepts text, image and video input; the API is text-only for now
- Model id
- minimax-m4 on the Creovox API (MiniMax-M4 officially, minimax/minimax-m4 on OpenRouter)
- Weights
- Not released yet. The GitHub repo says "We will release the weights soon."
Source: MiniMax official blog and GitHub MiniMax-AI/MiniMax-M4, December 2026.
05Benchmarks
MiniMax M4 benchmark snapshot
Selected results from the vendor-reported benchmark tables.
- 33.0
FrontierCode-AA 2.0
Ahead of the other open-model peers in MiniMax's chart (Kimi K3.1, DeepSeek V4.1, GLM 5.3); closed frontier models score 44.4 to 48.8.
- 66.7
Finance Agent v2.1
Above GPT-6.2 Sol (58.9); Gemini 4 Neon (68.6), Opus 5.5 (67.9) and Fable 5.2 (69.5) score higher.
- 1440
Design Arena (HTML)
Roughly level with Gemini 4 Neon (1437).
Vendor-reported by MiniMax (GitHub MiniMax-AI/MiniMax-M4, figures/M4.png)
06Pricing
API pricing
Usage is billed in credits per token, input and output priced separately.
MiniMax list price, for reference
$0.80input per 1M tokens
$3.10output per 1M tokens
These are MiniMax's own USD prices, shown for comparison. They are not M4 API prices.
Every request costs at least 0.05 credits, and your balance must cover an estimated minimum reserve (1 credit, or more for large inputs) before a call starts. When the fallback model answers, its own rates apply: 180 / 900 credits per 1M tokens.
Full pricing07FAQ
MiniMax M4 API FAQ
Is this the official MiniMax API?
No. M4 API is an independent reference site, not affiliated with or endorsed by MiniMax. The API itself runs on Creovox AI, which is also independent from MiniMax. Requests are routed to MiniMax M4 through a third-party inference provider.
What base URL and model id do I use?
Base URL https://creovox.ai/api/v1, model id minimax-m4. Create a key on Creovox (https://creovox.ai/dashboard/api-keys) and authenticate with it as a Bearer token.
Is the MiniMax M4 API OpenAI-compatible?
Yes. It speaks the OpenAI chat completions format, so the official OpenAI SDKs and most compatible clients work once you change the base URL and model.
Does it support streaming and tool calls?
Yes. Set stream to true for server-sent events, and pass tools, tool_choice and parallel_tool_calls as in the OpenAI API.
How is MiniMax M4 API usage billed?
Per token on Creovox: 240 credits per 1M input tokens, 930 per 1M output tokens; 1 credit is $0.005. Minimum 0.05 credits per request. Your balance must cover a small reserve (at least 1 credit) before a call starts.
What is the max output length?
The upstream model allows up to 524,288 output tokens; the cap applied to each request keeps reservation amounts predictable.
Can I send images to MiniMax M4 through this API?
Not yet. The model itself accepts image and video input, but the API currently accepts text only. Non-text content parts are rejected.
What happens when MiniMax M4 is overloaded?
GPT-6.2 Sol answers instead. The response model field and the X-Served-Model header show gpt-6.2-sol, and the call is billed at Sol rates (180 / 900 credits per 1M tokens).
How do I get a free MiniMax M4 API key?
Sign up on Creovox and create a key on its API keys page. New Creovox accounts get free credits.
Start calling MiniMax M4
One key from Creovox, one endpoint, pay per token.

