curl --request POST \
--url https://direct.evolink.ai/v1/chat/completions \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"model": "MiniMax-M3.1-Flash",
"messages": [
{
"role": "user",
"content": "Please introduce yourself."
}
],
"max_completion_tokens": 131072
}
'{
"id": "072514edea627212c7e226a55bcf4e2e",
"choices": [
{
"finish_reason": "stop",
"index": 0,
"message": {
"content": "0.05",
"role": "assistant",
"name": "MiniMax AI",
"audio_content": "",
"reasoning_content": "Let the ball cost x. Then 2x + 1 = 1.10, so x = 0.05."
}
}
],
"created": 1792401901,
"model": "MiniMax-M3.1-Flash",
"object": "chat.completion",
"usage": {
"total_tokens": 281,
"total_characters": 0,
"prompt_tokens": 229,
"completion_tokens": 52,
"completion_tokens_details": {
"reasoning_tokens": 49
},
"prompt_tokens_details": {
"cached_tokens": 187
}
},
"input_sensitive": false,
"output_sensitive": false,
"input_sensitive_type": 0,
"output_sensitive_type": 0,
"output_sensitive_int": 0,
"base_resp": {
"status_code": 0,
"status_msg": ""
}
}MiniMax-M3.1-Flash - OpenAI 互換 API
- OpenAI Chat Completions プロトコルで MiniMax-M3.1-Flash モデルを呼び出します
- マルチターン対話:単一ターンまたは複数ターンの文脈を含む対話に対応します
- システムプロンプト:
role=systemメッセージで AI の役割と振る舞いを設定します - マルチモーダル入力:
content内でテキストと画像 / 動画を組み合わせられます - 思考モード:常に有効。
reasoning_effortで思考の深さを調整します。思考内容はreasoning_contentで返され、contentには最終回答のみが含まれます - ストリーミング出力:SSE ストリーミングに対応
- ツール呼び出し:Function Calling に対応
ストリーミングレスポンス:stream=true の場合、Server-Sent Events で返されます。各メッセージの形式は data: {JSON} で、終了時に data: [DONE] が返されます。choices[].delta は、まず reasoning_content、次に content / tool_calls を差分として返します。stream_options.include_usage=true を設定すると、終了前に usage を含むチャンクが追加で返されます。
curl --request POST \
--url https://direct.evolink.ai/v1/chat/completions \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"model": "MiniMax-M3.1-Flash",
"messages": [
{
"role": "user",
"content": "Please introduce yourself."
}
],
"max_completion_tokens": 131072
}
'{
"id": "072514edea627212c7e226a55bcf4e2e",
"choices": [
{
"finish_reason": "stop",
"index": 0,
"message": {
"content": "0.05",
"role": "assistant",
"name": "MiniMax AI",
"audio_content": "",
"reasoning_content": "Let the ball cost x. Then 2x + 1 = 1.10, so x = 0.05."
}
}
],
"created": 1792401901,
"model": "MiniMax-M3.1-Flash",
"object": "chat.completion",
"usage": {
"total_tokens": 281,
"total_characters": 0,
"prompt_tokens": 229,
"completion_tokens": 52,
"completion_tokens_details": {
"reasoning_tokens": 49
},
"prompt_tokens_details": {
"cached_tokens": 187
}
},
"input_sensitive": false,
"output_sensitive": false,
"input_sensitive_type": 0,
"output_sensitive_type": 0,
"output_sensitive_int": 0,
"base_resp": {
"status_code": 0,
"status_msg": ""
}
}https://direct.evolink.ai で、テキストモデルへの対応が優れており、長時間接続をサポートします。https://api.evolink.ai はマルチモーダルサービスの主力エンドポイントで、テキストモデルに対しては代替アドレスとして使用されます。承認
すべての API で Bearer Token 認証が必要です
API キーの取得:
API キー管理ページで API キーを取得してください
リクエストヘッダーに追加:
Authorization: Bearer YOUR_API_KEY
ボディ
対話モデル名
MiniMax-M3.1-Flash "MiniMax-M3.1-Flash"
対話メッセージのリスト。マルチターン対話に対応
役割が異なるメッセージは異なるフィールド構造を持つため、対応する役割を選択して確認してください
1- System Message
- User Message
- Assistant Message
- Tool Message
Show child attributes
Show child attributes
思考の深さ。デフォルトは max。深さを上げると、通常は思考トークンの消費量と応答時間が増加します。
low, medium, high, xhigh, max "high"
思考モード。MiniMax-M3.1-Flash は常に思考を行います。adaptive のみ対応しており、省略できます
Show child attributes
Show child attributes
思考内容を別のフィールドで返すかどうか。true のみ対応しています。思考内容は reasoning_content で返され、このパラメータは省略できます
true サンプリング温度。出力のランダム性を制御します
説明:
- 範囲は
[0, 2]、デフォルトは 1 - 値を下げると確定的な出力になり、上げると多様な出力になります
推奨:temperature と top_p を同時に調整しないでください
0 <= x <= 21
Nucleus Sampling パラメータ
説明:
- 累積確率に基づいてサンプリング対象のトークンを制御します
- 例えば 0.95 の場合、累積確率が 95% に達するまでのトークンから選択します
- 範囲は
[0, 1]、デフォルトは 0.95
推奨:temperature と top_p を同時に調整しないでください
0 <= x <= 10.95
生成する内容の最大トークン数。思考と回答の両方を含みます
説明:
- 推奨値は 131,072(128K)、最大値は 524,288(512K)
- 値が小さすぎると、思考中に上限に達し、
finish_reason=lengthとなってcontentが空になる場合があります
1 <= x <= 524288131072
レスポンスをストリーミング方式で返すかどうか
true:ストリーミング返却。SSE(Server-Sent Events)でチャンクごとにリアルタイムで内容を返しますfalse:完全なレスポンスを待ってから一括で返します(デフォルト)
false
ストリーミングレスポンスのオプション
stream=true の場合のみ有効です
Show child attributes
Show child attributes
Function Calling 用のツール定義リスト
各ツールには名前、説明、パラメータ schema が必要です
Show child attributes
Show child attributes
ツールの選択方針。auto のみ対応しています(ツールを呼び出すかどうかをモデルが判断します)
auto 旧版の生成長さ制限パラメータ
説明:非推奨です。代わりに max_completion_tokens を使用してください
x >= 1生成する返信の数。1 のみ対応しています
1 レスポンス
対話の生成に成功しました
対話完了の一意の識別子
"0668a381bdc3c0ded310e27c9a46d16e7"
実際に使用されたモデル名
"MiniMax-M3.1-Flash"
レスポンスの種類
chat.completion "chat.completion"
作成タイムスタンプ(Unix 秒)
1777026807
対話生成の選択肢リスト
Show child attributes
Show child attributes
Token 使用統計情報
Show child attributes
Show child attributes
入力内容がセンシティブワードフィルターに該当したかどうか。入力が重大な違反の場合、API はコンテンツ違反エラーを返し、レスポンス内容は空になります
入力が該当したセンシティブワードの種類(input_sensitive が true の場合に返却):1 重大な違反;2 ポルノ;3 広告;4 禁止コンテンツ;5 暴言;6 暴力 / テロ;7 その他
出力内容がセンシティブワードフィルターに該当したかどうか
出力が該当したセンシティブワードの種類
ステータスコードとエラー詳細
Show child attributes
Show child attributes
出力が該当したセンシティブワードの種類を示す数値識別子