Kiloport

MiniMax M4 · released December 3, 2026

MiniMax M4 API

Call MiniMax M4, MiniMax’s newest 2.74-trillion-parameter model, through one OpenAI-compatible API key. 1M-token context, image input, tool calls and adjustable reasoning. Pay $5 once, then only for the tokens you use.

Try it in the playground
  • OpenAI SDK compatible
  • No subscription
  • Failed requests are free
  • Balance never expires
cURL
curl https://minimaxm4.io/v1/chat/completions \
  -H "Authorization: Bearer $KILOPORT_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "model": "minimax-m4",
    "messages": [{"role": "user", "content": "Write a Python function that merges overlapping intervals."}]
  }'
$1.20per 1M input tokens
$4.65per 1M output tokens
1Mtoken context window
$5one-time top-up to start

GET STARTED

Three steps to your first MiniMax M4 API call

Step 1 of 3. Sign in with Google or email. Takes about 20 seconds.

  1. 1

    Create an API key

    Sign in with Google or email and your first key is created for you. Keep it on your server or in your editor settings; you can revoke it at any time.

  2. 2

    Add $5 of balance, once

    A single small payment activates the key. $5 covers about 600 short questions or about 240 file reviews at these rates; see the examples below.

    One-time payment, no subscription. Your balance never expires and works with both models.

    Need more? $20 and $50 top-ups →
  3. 3

    Connect your code or editor

    Use this base URL with any OpenAI-compatible client and the model minimax-m4.

    Base URL
    https://minimaxm4.io/v1
    Open the integration guide →

PLAYGROUND

Try MiniMax M4 online

System prompt

Try MiniMax M4 here before you write any code. The playground sends the same request as the API and uses the same balance.

Sign in to send. Your message is kept.

WHY THIS API

Why developers call MiniMax M4 here

Newest MiniMax model

MiniMax M4 was released on December 3, 2026: 2.74T parameters, 66B active, 1M-token context and native image understanding.

Reasoning you control

minimax-m4 starts at medium effort for speed. Raise reasoning_effort to max per request, or call minimax-m4-pro for maximum depth.

Works with your stack

Keep the OpenAI SDK, Cline, Roo Code, Continue, Aider or OpenCode. Change the base URL and key, nothing else.

INTEGRATION

Paste into your editor or agent

Cline / Roo Code / Kilo Code
API Provider:  OpenAI Compatible
Base URL:      https://minimaxm4.io/v1
API Key:       sk_minimaxm4-io_your_key
Model ID:      minimax-m4

Open the extension settings in VS Code and choose the OpenAI Compatible provider.

MODELS AND PRICES

MiniMax M4 API pricing

ModelInputCached inputOutput
MiniMax M4minimax-m4Balanced by default (medium reasoning). Set reasoning_effort from low to max per request.$1.20$0.075$4.65
MiniMax M4 Prominimax-m4-proMiniMax M4 pinned to its deepest reasoning setting, for hard code, math and agent steps.$1.20$0.075$4.65

Price per 1M tokens, billed from your USD balance. Reasoning tokens count as output. Minimum $0.001 per request. Failed requests are free.

Example requestInputOutputCost
Short question1,0001,500$0.009
Review a 300-line file6,0003,000$0.022
Agent step with repository context40,0004,000$0.067

Estimates. The exact charge of every request is shown in your usage list.

Model facts were checked on 2026-12-04 against MiniMax’s announcement and API documentation; see the guides for sources.

FAQ

MiniMax M4 API questions

What is MiniMax M4?

MiniMax M4 is a large language model from MiniMax, released on December 3, 2026. It is a mixture-of-experts model with 2.74 trillion total and 66 billion active parameters, a 1-million-token context window and native image and video understanding. It always reasons before it answers.

How do I get a MiniMax M4 API key?

Sign in with Google or email, create a key on this page, and add a one-time balance from $5. Then set the base URL to https://minimaxm4.io/v1 in any OpenAI-compatible client and use the model minimax-m4.

How much does the MiniMax M4 API cost here?

$1.20 per million input tokens, $0.075 per million cached input tokens and $4.65 per million output tokens, including reasoning tokens. There is no subscription: you pay once to add balance, from $5, and it never expires.

Is the MiniMax M4 API OpenAI-compatible?

Yes. The endpoint follows the OpenAI Chat Completions format, including streaming, tool calls, JSON output and image input, so the OpenAI SDKs for Python and Node.js, Cline, Roo Code, Continue, Aider, OpenCode and most agents work after you change the base URL and key.

What is the difference between minimax-m4 and minimax-m4-pro?

Both run the same MiniMax M4 model at the same token price. minimax-m4 uses medium reasoning by default and lets you set reasoning_effort per request. minimax-m4-pro always runs at the maximum reasoning setting, which is slower and uses more output tokens but helps on hard problems.

Can I try MiniMax M4 before writing code?

Yes. The playground on this page sends the same request as the API from your browser and shows the tokens and cost of every reply. It uses the same balance as your API keys.

Is this an official MiniMax service?

No. Kiloport (minimaxm4.io) is an independent service that forwards your requests to MiniMax M4 through a hosted model provider. It is not affiliated with or endorsed by MiniMax. MiniMax and MiniMax M4 are names of the model’s maker and the model, used here only to describe them.

Do you store my prompts?

API requests are not stored: we keep only metering data such as the model, token counts, cost and time. Playground messages stay in your browser. Prompts are sent to the model provider to generate the reply.

Kiloport is an independent service and is not affiliated with or endorsed by MiniMax. MiniMax and MiniMax M4 are used only to name the model this API serves. Model output can be wrong; review it before you rely on it.

Sign in with Google or email. Takes about 20 seconds.