MiniMax M3.1 Flash API

Fast multimodal coding and agent model with 1M context, adjustable reasoning depth, image and video input, function calling, and built-in web search.

MiniMaxText Generation1M contextReleased Oct 19, 2026SingaporeProprietary EndpointNew

About MiniMax M3.1 Flash

Fast multimodal coding and agent model with 1M context, adjustable reasoning depth, image and video input, function calling, and built-in web search.

Supports text, image, and video input, five reasoning effort levels with reasoning always on, function calling, implicit prompt cache reads, and built-in web search billed per executed search. Reasoning tokens are billed as output tokens.

reasoningvisionvideoweb searchfunction callingcachelong contextagentic coding

MiniMax M3.1 Flash specs

Model ID
minimax-m3-1-flash
Author
MiniMax
Category
Text Generation
Released
Oct 19, 2026
Context window
1M tokens
Max output
524,288 tokens
Input
TextImageVideo
Output
Text
Structured output
Not supported
Region
Singapore
Endpoints
POST/v1/chat/completionsPOST/v1/responsesPOST/v1/messagesPOST/v1beta/models/minimax-m3-1-flash:generateContent
Alternate model IDs
minimax-m3.1-flashminimax/m3.1-flashminimax/minimax-m3.1-flash

MiniMax M3.1 Flash API pricingSave up to 25%

Live pay-as-you-go rates from the EmpirioLabs catalog. You are billed only for what you use, with no monthly minimum.

Type
Spec
Rate
Input
per 1M prompt tokens
$0.15$0.1125
Output
per 1M generated tokens
$0.60$0.45
Implicit cache read
per 1M cached input tokens
$0.015$0.01125
Web search
per call when invoked
$0.01
Compare on the full pricing page

How to call the MiniMax M3.1 Flash API

MiniMax M3.1 Flash serves the OpenAI-compatible Chat Completions API. Point any OpenAI SDK at https://api.empiriolabs.ai/v1 with your EmpirioLabs API key and use the model id minimax-m3-1-flash. Get an API key from the EmpirioLabs dashboard.

cURL
curl https://api.empiriolabs.ai/v1/chat/completions \
  -H "Authorization: Bearer $EMPIRIOLABS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "model": "minimax-m3-1-flash",
    "messages": [
      {"role": "user", "content": "Write a haiku about the ocean."}
    ]
  }'
Python (OpenAI SDK)
from openai import OpenAI

client = OpenAI(
    base_url="https://api.empiriolabs.ai/v1",
    api_key="YOUR_EMPIRIOLABS_API_KEY",
)

response = client.chat.completions.create(
    model="minimax-m3-1-flash",
    messages=[{"role": "user", "content": "Write a haiku about the ocean."}],
)
print(response.choices[0].message.content)
Full MiniMax M3.1 Flash API reference

MiniMax M3.1 Flash API parameters

Request parameters supported by the MiniMax M3.1 Flash API on EmpirioLabs. Defaults apply when a field is omitted.

ParameterTypeDefaultRange / valuesDescription
reasoning_effortenummaxlow, medium, high, xhigh, maxReasoning is always on; this sets how much effort the model spends before answering. Higher effort uses more reasoning tokens.
temperaturenumber10 to 2Controls randomness. Lower values are more deterministic; higher values are more exploratory.
top_pnumber0.950 to 1Controls nucleus sampling by limiting generation to the most likely token mass.
max_completion_tokensinteger327681 to 524288Maximum generated tokens, including reasoning tokens.
stoparray--Optional stop sequence or list of stop sequences.
tool_web_searchbooleanfalse-Search the web for real-time information. Adds $0.01 to the request cost for each invoked call.
toolsarray--OpenAI-compatible tool definitions for function calling.
tool_choiceobject--Optional OpenAI-compatible tool_choice value.
disable_formattingbooleanfalse-Return raw provider-style output without EmpirioLabs source formatting where supported.

Good to know

Text, image, and video input with text output, a 1M token context, and up to 524,288 output tokens. The model always reasons: reasoning_effort sets how deeply (low, medium, high, xhigh, or max; the default is max), and the reasoning text is returned in reasoning_content. Reasoning tokens are billed as output tokens. Repeated prompt prefixes are cached automatically and billed at the cached input rate. Set tool_web_search to true to let the model search the web; each executed search is billed, and one request can run several searches. Answers that used web search end with a Sources list unless disable_formatting is true. Structured output through response_format is not supported; ask for JSON in the prompt instead.

Per-tool billing (usage.tool_usage)

When this model invokes tools (web search, code interpreter, etc.) inside a single request, the response carries a normalized usage.tool_usage map alongside the token counts. The example below shows the shape, exact field names, units, and which tools appear can vary slightly per provider:

"usage": {
  "prompt_tokens": 123,
  "completion_tokens": 456,
  "cost_usd": 0.0042,
  "tool_usage": {"web_search": 3, "code_interpreter": 1}
}

The tool counts are already factored into cost_usd, they are surfaced for transparency so you can audit per-tool billing. The field is omitted when no tools were invoked.

MiniMax M3.1 Flash API: common questions

How much does the MiniMax M3.1 Flash API cost?

On EmpirioLabs, MiniMax M3.1 Flash is billed pay as you go. The live rate card on this page always matches what the API charges.

What is the context window of MiniMax M3.1 Flash?

MiniMax M3.1 Flash supports a 1M-token context window with up to 524,288 output tokens per response.

Is the MiniMax M3.1 Flash API OpenAI-compatible?

Yes. MiniMax M3.1 Flash serves the OpenAI-compatible Chat Completions API, so existing OpenAI SDKs work by pointing base_url at https://api.empiriolabs.ai/v1 and setting the model id to minimax-m3-1-flash.

Can I try MiniMax M3.1 Flash in the browser before integrating?

Yes. The EmpirioLabs playground runs MiniMax M3.1 Flash in the browser with the same parameters the API exposes, so you can test prompts before writing code.

How do I get a MiniMax M3.1 Flash API key?

Create an EmpirioLabs account, then generate a key under API Keys in the dashboard. Billing is pay-as-you-go credits, so you only pay for the requests you make.

Ready to use better endpoints?

Check out our pricing or reach out if you want your own model deployed on our stack.