MiniMax M4 API

Multimodal flagship for long-horizon coding and agents with 1M context, adjustable reasoning depth, image and video input, and built-in web search.

MiniMax テキスト生成 1M コンテキスト リリース 2026年12月3日 Singapore 独自エンドポイント 新着

MiniMax M4 について

Multimodal flagship for long-horizon coding and agents with 1M context, adjustable reasoning depth, image and video input, and built-in web search.

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

reasoning vision video web search function calling cache long コンテキスト agentic coding

MiniMax M4 の仕様

モデルID
minimax-m4
開発元
MiniMax
カテゴリ
テキスト生成
リリース
2026年12月3日
コンテキスト長
1M トークン
最大出力
262,144 トークン
入力
テキスト画像動画
出力
テキスト
構造化出力
非対応
リージョン
Singapore
エンドポイント
POST/v1/chat/completionsPOST/v1/responsesPOST/v1/messagesPOST/v1beta/models/minimax-m4:generateContent
代替モデルID
minimax/m4minimax/minimax-m4

MiniMax M4 API の料金最大25%お得

EmpirioLabs カタログのライブ従量課金料金です。週ごとの利用枠付きプランも選べます。

タイプ
仕様
料金
入力
per 1M prompt tokens
$0.80$0.60
出力
per 1M generated tokens
$3.10$2.325
Implicit cache read
per 1M cached input tokens
$0.05$0.0375
Web search
per call when invoked
$0.01
料金ページ全体で比較

MiniMax M4 API の呼び出し方

MiniMax M4 は OpenAI 互換の Chat Completions API を提供します。任意の OpenAI SDK を EmpirioLabs API キーで https://api.empiriolabs.ai/v1 に向け、モデル ID minimax-m4 を使ってください。 EmpirioLabs ダッシュボードで API キーを取得してください。

cURL
curl https://api.empiriolabs.ai/v1/chat/completions \
  -H "Authorization: Bearer $EMPIRIOLABS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "model": "minimax-m4",
    "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-m4",
    messages=[{"role": "user", "content": "Write a haiku about the ocean."}],
)
print(response.choices[0].message.content)
MiniMax M4 API の完全リファレンス

MiniMax M4 API のパラメーター

EmpirioLabs 上の MiniMax M4 API が対応するリクエストパラメーターです。フィールドを省略した場合はデフォルト値が適用されます。

パラメータタイプデフォルト範囲 / 値説明
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.
max_completion_tokensinteger-1 から 262144Maximum generated tokens, including reasoning tokens. When omitted, the model's own default applies.
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. This model supports auto and none.
video_fpsnumber10.2 から 5Frames per second to sample from video inputs. Higher values sample more frames and use more input tokens.
disable_formattingbooleanfalse-Return the answer without the Sources list that web search adds.

知っておくと便利

Text, image, and video input with text output, a 1M token context, and up to 262,144 output tokens. Image and video parts accept detail (low, default, or high) and max_long_side_pixel, which set the resolution the model reads and the input tokens billed; with tool_web_search on, max_long_side_pixel applies to video only. 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. In multi-step tool use, send each assistant turn back with its reasoning_content; it is billed as input 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. tool_choice accepts auto or none. 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 M4 API: よくある質問

MiniMax M4 API の料金はいくらですか?

EmpirioLabs では MiniMax M4 は従量課金です。週ごとの利用枠付きプランも選べます。このページのライブ料金表は常に API の請求額と一致します。

MiniMax M4 はどの入力と出力に対応していますか?

MiniMax M4 は テキスト, 画像, 動画 を入力として受け取り、テキスト を返します。

MiniMax M4 のコンテキストウィンドウはどれくらいですか?

MiniMax M4 は 1M トークンのコンテキストウィンドウに対応しています(1回の応答あたり最大 262,144 出力トークン)。

MiniMax M4 API は OpenAI 互換ですか?

はい。MiniMax M4 は OpenAI 互換の Chat Completions API を提供しているため、既存の OpenAI SDK は base_url を https://api.empiriolabs.ai/v1 に向けてモデル ID を minimax-m4 に設定するだけで動作します。

MiniMax M4 のモデル ID は何ですか?

リクエストの model に minimax-m4 を指定してください。代替 ID の minimax/m4, minimax/minimax-m4 も使えます。

MiniMax M4 はいつリリースされましたか?

MiniMax は 2026年12月3日 に MiniMax M4 をリリースしました。

MiniMax M4 はどこから提供されていますか?

EmpirioLabs の MiniMax M4 は Singapore から提供されています。

統合する前にブラウザで MiniMax M4 を試せますか?

はい。EmpirioLabs Playgroundでは API と同じパラメーターで MiniMax M4 をブラウザ上で実行できるので、コードを書く前にプロンプトを試せます。

MiniMax M4 の API キーはどうやって取得しますか?

EmpirioLabs アカウントを作成し、ダッシュボードの API Keysでキーを生成してください。課金は従量制クレジットなので、実行したリクエストの分だけ支払います。週ごとの利用枠付きプランも選べます。

MiniMax M4 を他のモデルと比較

すべてのモデル比較

より良いエンドポイントを使う準備はできていますか?

ご自身のモデルを当社のスタックに展開したい方は、ぜひご価格をご覧ください。