Back to models
MiniMaxText APIOperationalUpdated

MiniMax M3.1 Flash API

Use MiniMax M3.1 Flash for coding, image understanding and tool calls. Connect through OpenAI-compatible Chat Completions or try a text prompt in the playground.

API access

Endpoint
POST /v1/chat/completions
Base URL
https://api.apiko.app/v1

Speaks OpenAI Chat Completions; one APIKO key reaches every listed model.

Input price

25% off

$0.150

$0.1125

/ 1M tokens

Output price

25% off

$0.600

$0.45

/ 1M tokens

Cached input

$0.01125

/ 1M tokens

MiniMax’s documented context window

1M

Token

Start testing MiniMax M3.1 Flash

Ask a question — the answer streams in, followed by token usage, latency and an estimated cost.

MiniMax M3.1 Flash API quickstart

Call MiniMax M3.1 Flash in the OpenAI Chat Completions format. Copy-ready cURL, Python and Node.js samples below.

Code sample

Endpoint:/v1/chat/completions

curl https://api.apiko.app/v1/chat/completions \
  -H "Authorization: Bearer $APIKO_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "model": "minimax-m3.1-flash",
    "messages": [{"role": "user", "content": "Hello"}]
  }'

Tip: set APIKO_API_KEY to a key created on the API keys page.

Works with the official SDKs — swap in the base URL, API key and model ID.

Full MiniMax M3.1 Flash API docsManage API keysOne APIKO key works across every listed model.

MiniMax M3.1 Flash API pricing

Billed on the input, output and cached tokens reported in usage; every price is per 1M tokens.

Currency
Input tokens25% off
$0.150$0.1125/ 1M tokens

The prompt and context you send to the model

Output tokens25% off
$0.600$0.45/ 1M tokens

What the model generates, reasoning tokens included

Cached input
$0.015$0.01125/ 1M tokens

MiniMax M3.1 Flash API parameters

Verified on APIKO

messages · image_url
Send text and images in messages[].content. Images use image_url with an HTTPS URL or an image data URL. The API returns text. Native video input is unavailable on APIKO.
stream · stream_options
Set stream to true for server-sent events and stream_options.include_usage to true to receive token usage in the stream.
tools · tool_call_id
Define functions in tools. When the model returns tool_calls, append the assistant message, run the function, then send the result with the matching tool_call_id. Preserve reasoning_content when present.
max_tokens
Use max_tokens to limit output length. Thinking tokens count toward the limit. If the limit is too low, the answer can be empty. On APIKO, max_completion_tokens does not reliably limit output length.

MiniMax official settings

reasoning_effort · thinking
MiniMax documents always-on thinking and five reasoning_effort levels: low, medium, high, xhigh, and max (the default). APIKO has yet to verify how changing the level affects thinking.
temperature · top_p · service_tier
MiniMax documents fixed sampling values of temperature 1 and top_p 0.95. Passing these fields does not tune sampling on the official API. Flash also has no service_tier setting.

About MiniMax M3.1 Flash

Use MiniMax M3.1 Flash for coding, image understanding and tool calls. Connect through OpenAI-compatible Chat Completions or try a text prompt in the playground.

APIKO serves this model at /v1/chat/completions. Try prompts and parameters in the playground on this page first, then connect your server with the same APIKO API key.

Provider
MiniMax
Endpoint
/v1/chat/completions
MiniMax’s documented context window
1M
Model ID
minimax-m3.1-flash

How to use MiniMax M3.1 Flash

The playground and the API share one model ID — three steps take you from trying a prompt to production calls.

  1. Step 1

    Try it online

    Test the system prompt, output length and sampling settings in the playground.

  2. Step 2

    Manage API keys

    Sign in to see your keys or create one; one key works across every listed model.

  3. Step 3

    Connect your server

    Send requests to /v1/chat/completions and record cost from the usage field.

Comparing models and price tiers?

See live prices for every model

MiniMax M3.1 Flash FAQ

What context length does the MiniMax M3.1 Flash API support?

MiniMax lists a 1 million-token context window. APIKO has verified long text input of about 115K tokens in one request. The full 1 million tokens are still unverified on APIKO.

How is MiniMax M3.1 Flash billed?

By input and output tokens at the per-1M rates above; cached input uses its published rate when available. See the failed-request question below for the refund rule.

Is it OpenAI-compatible?

Yes. Point the OpenAI SDK at the gateway base URL, replace the model id, and keep the rest of your request unchanged.

How do I get an API key?

Sign up, then create an API key in your console. One API key can call every model on the gateway.

Is there a free trial for the MiniMax M3.1 Flash API?

Yes. Sign in with Google using a Gmail address and $0.20 of trial credit is added to your balance, no card needed, once per person. It works on minimax-m3.1-flash and every other model. Output is capped at 16k tokens per request during the trial.

Can I stream responses?

Yes. Set stream: true; for Chat Completions, also send stream_options.include_usage = true to receive usage in the final event.

What if a request fails?

You are not billed for failed or errored calls. Retry, and if it keeps failing, contact us via the live chat at the bottom right of the page.