curl --request POST \
--url https://direct.evolink.ai/v1/responses \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"model": "MiniMax-M3.1-Flash",
"input": "Explain recursion in one sentence.",
"max_output_tokens": 131072
}
'{
"id": "0725233a85e23431681447327cbcd9d2",
"object": "response",
"created_at": 1792405562,
"model": "MiniMax-M3.1-Flash",
"status": "completed",
"output": [
{
"id": "0725233a85e23431681447327cbcd9d2_rs",
"type": "reasoning",
"status": "completed",
"summary": [],
"content": [
{
"type": "reasoning_text",
"text": "We need solve CRT. Need only n. Compute. n=3 mod7, 5 mod11,7 mod13. Product 1001. Let's solve.\n\nUse n=3+7a. mod11: 3+7a=5 =>7a=2 mod11. inverse7=8 (56=1), a=16=5 mod11. a=5+11b. n=38+77b. mod13: 38+77b = 12+12b mod13 (77=12,38=12) equals7 =>12b=-5=8 mod13. inverse12=12, b=96 mod13 =5? 91 remainder5. n=38+385=423. Check 423 mod7 3 (420), mod11 5 (418), mod13 7 (416). Smallest positive 423. Only n."
}
],
"encrypted_content": "Ahlub3JtYWwtcmVhc29uaW5nLTIwMjYxMDExjehfvIf2rUinmic9ZiAutly0DD3lHqWEni9ENDziUw0nX-F6VPZLM7x1NbRWbytJNcLH9XQIa-KLYgd-it6XmXzYLvck3xOPOG9wtDdxUnjdBhuuj9dkWrkx0kbK8MFT5UreZ7EcxoRZybrs3oELf2BK_WtDUFOm_FbZXKwNbg76pTCFDoRke0Er0GMWjmi5L8GE7hGnvvBQjHXrwQ88G0L2p6STay-n1FJ5prqz6Q4LEF-xu7FqGjDmh9haliI638ivcQ9XGo9_DLUrtKMh1K4UYN87j2H7vbjbJPJaw6oJ61ZF8Ngk1FSuHUvLB540QKwBJKnClMcvw-ih3CdKRdSTPRfIYlsYOkNCwEWrLwHarLTHG5HzeakMO_5usxOAvzXVDUKRIX7W62x9xKCnVl_Gp0E91dLtlU3U8j_ZZvYCj9pMvd_n_Ba82OUpFxvoXv2R2H1H8bfzztGg5E88fH6OMwoMS5OYa45nCoRFA11Bw7G8OEVqBiPzS48EY1JPjPTC5lBco0CUoeUAHPXeD7jmO-D3LhIL1-3erJ_mxP0ZeiCWUckYaFE2EliolooAHqkoVBmy5Q"
},
{
"id": "0725233a85e23431681447327cbcd9d2_msg",
"type": "message",
"status": "completed",
"role": "assistant",
"content": [
{
"type": "output_text",
"text": "423",
"annotations": []
}
]
}
],
"output_text": "423",
"usage": {
"input_tokens": 239,
"output_tokens": 190,
"total_tokens": 429,
"input_tokens_details": {
"cached_tokens": 174
},
"output_tokens_details": {
"reasoning_tokens": 189
}
},
"error": null,
"incomplete_details": null,
"instructions": null,
"metadata": {},
"tools": null,
"tool_choice": "auto",
"temperature": 1,
"top_p": 0.95,
"text": {
"format": {
"type": "text"
}
},
"reasoning": {
"effort": "medium",
"summary": null
},
"max_output_tokens": 2048,
"max_tool_calls": null,
"parallel_tool_calls": true,
"previous_response_id": null,
"conversation": null,
"store": false,
"service_tier": null,
"safety_identifier": null,
"truncation": "disabled"
}MiniMax-M3.1-Flash - Responses API
- OpenAI Responses プロトコルで MiniMax-M3.1-Flash モデルを呼び出します
- 入力形式:
inputにはプレーンテキスト、または入力アイテムの配列(メッセージ、関数呼び出し、関数の実行結果)を指定できます - マルチモーダル入力:メッセージの
content内でinput_text、input_image、input_videoブロックを組み合わせます - システム指示:
instructionsで指定します。先頭の system メッセージと同等です - 思考モード:常に有効。
reasoning.effortで思考の深さを調整します。思考内容はreasoning出力アイテムとして返されます - ストリーミング出力:意味ごとに定義された SSE イベントで配信され、
response.completedで終了します。[DONE]は送信されません - ツール呼び出し:Function Calling に対応
- コンテキストキャッシュ:同一のプレフィックスは自動的にキャッシュヒットし、該当部分は
usage.input_tokens_details.cached_tokensに反映されます
ステートレス:レスポンスは保存されず、previous_response_id は使用できません。対話を続ける際は、前の output に含まれるすべてのアイテムを元の順序と構造のまま input に追加してください。思考アイテムの content、summary、encrypted_content なども保持します。ツールの実行後は、関数呼び出しと同じ call_id を持つ function_call_output アイテムを追加してください。
ストリーミングイベント:response.created、response.in_progress、response.output_item.added、response.content_part.added、response.reasoning_text.delta / response.reasoning_text.done、response.output_text.delta / response.output_text.done、response.content_part.done、response.output_item.done。終了イベントは response.completed です。各イベントには並び順を示す sequence_number が含まれます。
curl --request POST \
--url https://direct.evolink.ai/v1/responses \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"model": "MiniMax-M3.1-Flash",
"input": "Explain recursion in one sentence.",
"max_output_tokens": 131072
}
'{
"id": "0725233a85e23431681447327cbcd9d2",
"object": "response",
"created_at": 1792405562,
"model": "MiniMax-M3.1-Flash",
"status": "completed",
"output": [
{
"id": "0725233a85e23431681447327cbcd9d2_rs",
"type": "reasoning",
"status": "completed",
"summary": [],
"content": [
{
"type": "reasoning_text",
"text": "We need solve CRT. Need only n. Compute. n=3 mod7, 5 mod11,7 mod13. Product 1001. Let's solve.\n\nUse n=3+7a. mod11: 3+7a=5 =>7a=2 mod11. inverse7=8 (56=1), a=16=5 mod11. a=5+11b. n=38+77b. mod13: 38+77b = 12+12b mod13 (77=12,38=12) equals7 =>12b=-5=8 mod13. inverse12=12, b=96 mod13 =5? 91 remainder5. n=38+385=423. Check 423 mod7 3 (420), mod11 5 (418), mod13 7 (416). Smallest positive 423. Only n."
}
],
"encrypted_content": "Ahlub3JtYWwtcmVhc29uaW5nLTIwMjYxMDExjehfvIf2rUinmic9ZiAutly0DD3lHqWEni9ENDziUw0nX-F6VPZLM7x1NbRWbytJNcLH9XQIa-KLYgd-it6XmXzYLvck3xOPOG9wtDdxUnjdBhuuj9dkWrkx0kbK8MFT5UreZ7EcxoRZybrs3oELf2BK_WtDUFOm_FbZXKwNbg76pTCFDoRke0Er0GMWjmi5L8GE7hGnvvBQjHXrwQ88G0L2p6STay-n1FJ5prqz6Q4LEF-xu7FqGjDmh9haliI638ivcQ9XGo9_DLUrtKMh1K4UYN87j2H7vbjbJPJaw6oJ61ZF8Ngk1FSuHUvLB540QKwBJKnClMcvw-ih3CdKRdSTPRfIYlsYOkNCwEWrLwHarLTHG5HzeakMO_5usxOAvzXVDUKRIX7W62x9xKCnVl_Gp0E91dLtlU3U8j_ZZvYCj9pMvd_n_Ba82OUpFxvoXv2R2H1H8bfzztGg5E88fH6OMwoMS5OYa45nCoRFA11Bw7G8OEVqBiPzS48EY1JPjPTC5lBco0CUoeUAHPXeD7jmO-D3LhIL1-3erJ_mxP0ZeiCWUckYaFE2EliolooAHqkoVBmy5Q"
},
{
"id": "0725233a85e23431681447327cbcd9d2_msg",
"type": "message",
"status": "completed",
"role": "assistant",
"content": [
{
"type": "output_text",
"text": "423",
"annotations": []
}
]
}
],
"output_text": "423",
"usage": {
"input_tokens": 239,
"output_tokens": 190,
"total_tokens": 429,
"input_tokens_details": {
"cached_tokens": 174
},
"output_tokens_details": {
"reasoning_tokens": 189
}
},
"error": null,
"incomplete_details": null,
"instructions": null,
"metadata": {},
"tools": null,
"tool_choice": "auto",
"temperature": 1,
"top_p": 0.95,
"text": {
"format": {
"type": "text"
}
},
"reasoning": {
"effort": "medium",
"summary": null
},
"max_output_tokens": 2048,
"max_tool_calls": null,
"parallel_tool_calls": true,
"previous_response_id": null,
"conversation": null,
"store": false,
"service_tier": null,
"safety_identifier": null,
"truncation": "disabled"
}https://direct.evolink.ai で、テキストモデルへの対応が優れており、長時間接続をサポートします。https://api.evolink.ai はマルチモーダルサービスの主力エンドポイントで、テキストモデルに対しては代替アドレスとして使用されます。承認
すべての API で Bearer Token 認証が必要です
API キーの取得:
API キー管理ページで API キーを取得してください
リクエストヘッダーに追加:
Authorization: Bearer YOUR_API_KEY
ボディ
モデル ID
MiniMax-M3.1-Flash "MiniMax-M3.1-Flash"
モデルへの入力
- 文字列形式:テキスト全体を 1 件の
userメッセージとして扱います - 配列形式:入力アイテムのリスト。
message、function_call、function_call_output、reasoningに対応します
マルチモーダル:message アイテムの content 配列内で input_text、input_image、input_video ブロックを組み合わせます。
マルチターン対話:API はステートレスです。対話を続ける場合は、完全な履歴を配列に含める必要があります。
"Explain recursion in one sentence."
システムレベルの指示。先頭に挿入される system メッセージと同等で、役割・口調・出力制約の設定に使用します。
"You are a technical documentation assistant. Keep your answers concise."
ストリーミングで返すかどうか
false(デフォルト):完全なレスポンスオブジェクトを一括で返しますtrue:意味ごとに定義された SSE イベントで配信します。終了イベントはresponse.completedで、[DONE]は送信されません
false
今回の生成で出力できる最大トークン数。思考と回答の両方を含みます
- 推奨値は 131,072(128K)、最大値は 524,288(512K)
- 値が小さすぎると、思考中に上限に達し、
status: "incomplete"となってmessage出力アイテムが返されない場合があります
1 <= x <= 524288131072
思考の設定。MiniMax-M3.1-Flash は常に思考を行い、その内容を reasoning 出力アイテムとして返します。思考トークンは出力に含まれ、出力料金で課金されます。
Show child attributes
Show child attributes
サンプリング温度。1 に固定されています
1 1
Nucleus Sampling のしきい値。デフォルトは 0.95。
0 <= x <= 10.95
モデルが呼び出せるツールのリスト。現在は function タイプのみ対応しています。関数はクライアント側で実行し、結果を function_call_output 入力アイテムとして返します。
Show child attributes
Show child attributes
ツールの選択方針。auto のみ対応しています(ツールを呼び出すかどうかをモデルが判断します)
auto "auto"
テキスト出力形式の設定。format.type は text のみ対応しています
Show child attributes
Show child attributes
リクエストのメタデータ。キーと値はどちらも文字列です
Show child attributes
Show child attributes
レスポンス
生成に成功しました
Responses API のレスポンスオブジェクト。以下のフィールドに加え、今回のリクエストの設定(tools、tool_choice、temperature、top_p、text、reasoning、max_output_tokens など)も返されます。
このレスポンスの一意識別子
"072514d63605b7a0c83f1672230c398c"
オブジェクト種別。常に response
"response"
作成時刻(Unix タイムスタンプ、秒)
1792401878
レスポンスの状態
completed:正常に完了incomplete:途中で打ち切り。理由はincomplete_detailsを参照してくださいfailed:生成に失敗。理由はerrorを参照してください
completed, incomplete, failed "completed"
実際に本レスポンスを生成したモデル ID
"MiniMax-M3.1-Flash"
生成順に並んだ出力アイテムのリスト:
reasoning:思考過程。id は<id>_rs形式で、content(reasoning_textブロックのリスト)、summary(空の配列)、encrypted_contentを含みますmessage:最終回答。id は<id>_msg形式で、content(output_textブロックのリスト)を含みますfunction_call:モデルによる関数呼び出し。id は<id>_fc_<連番>形式で、call_id、name、argumentsを含みます。クライアント側で実行し、結果をfunction_call_outputとして返す必要があります
すべての output_text のテキストを連結した結果。テキスト出力がない場合は null です
失敗の理由。成功時は null
打ち切り理由。打ち切られていない場合は null です。reason は max_output_tokens(出力上限に到達)または content_filter(コンテンツ安全性)です
トークン使用統計(キャッシュと思考の内訳を含む)
Show child attributes
Show child attributes