MiniMax API: text and images
MiniMax’s text and image models through the MegaBrain API, without a MiniMax platform account: MiniMax M3 and M3.1 Flash paid per token, H3 Image paid per image, all from one prepaid US-dollar balance.
MiniMax text models and prices
Prices in US dollars per 1M tokens, from the MegaBrain catalogue; they update automatically.
| Model | Input | Output | Context |
|---|---|---|---|
| MiniMax M3.1 Flash minimax/minimax-m3.1-flash | $0.09 | $0.36 | 1M |
| MiniMax M3 minimax/minimax-m3 | $0.36 | $1.44 | 1M |
Generation models from this lab
Prices in US dollars from the MegaBrain catalogue; they update automatically. Each model’s page has examples, every parameter and a playground.

MiniMax H3 Image
$0.0297MiniMax’s open-weight model: native 4K (4096×4096) in about 15 seconds, prompts up to 20,000 characters.

MiniMax H3 Image Edit
$0.0297Edits and compositions from up to 16 images: up to 20 MP, native 4K.

MiniMax H3 Image Highspeed
$0.0484Native 4K (4096×4096) in about 9 seconds: the fast mode of H3 Image.

MiniMax H3 Image Highspeed Edit
$0.0484Edits and compositions from up to 16 images, the fast mode: up to 20 MP, native 4K.
Text: M3 and M3.1 Flash
MiniMax M3 is a multimodal foundation model: text, images and video in, text out, with a 1M-token context window. MiniMax M3.1 Flash improves on it across benchmarks, most of all in complex agentic tasks, coding and cybersecurity.
MiniMax M3 releaseImages: H3 Image
MiniMax H3 Image is MiniMax’s open-weight image model: native 4K (4096×4096) in about 15 seconds, or about 9 in Highspeed mode. The Edit versions edit and compose from up to 16 images.
MiniMax H3 Image: native 4K through the APIYour code barely changes
The MegaBrain API is OpenAI-compatible. Change the base URL to https://getmegabrain.com/api/gateway/v1, the key to your MegaBrain key, and set model to an id from the table: they start with minimax/.
First request
The API is OpenAI-compatible: the official SDK, LangChain and any client with a base URL field work. Create the key on the API key page after you sign up.
from openai import OpenAI
client = OpenAI(
base_url="https://getmegabrain.com/api/gateway/v1",
api_key="YOUR_MEGABRAIN_KEY",
)
response = client.chat.completions.create(
model="minimax/minimax-m3",
messages=[{"role": "user", "content": "Hello! What can you do?"}],
)
print(response.choices[0].message.content)Questions and answers
Do I need a MiniMax platform account?
No. Sign up on MegaBrain, top up the balance by card and create a key. Requests to MiniMax models are paid from that balance for the tokens actually used, and the same key works for every other model in the catalogue.
How are requests paid for?
From a prepaid balance in US dollars, for the tokens actually used: input and output separately, at the price per 1M tokens in the table. No subscription is needed: top up by card and pay as you go.
How is H3 Image paid for?
Per generated image, from the same balance as the text models. The price depends on the image size and is on each model’s page; a failed generation is not charged.
Can I try it for free?
Yes. The model mb-auto/free (Auto Free) is free and works without an API key or sign-up: each request goes to a free model available at that moment, with a limit per IP address. The paid models in the table need an account and a balance.
Get your API key
Sign-up is open. Create an account, top up the balance by card and create a key: it works for every text, image, video and audio model in the catalogue. Credits never expire.
Questions? Write to team@getmegabrain.com