curl --request POST \
--url https://direct.evolink.ai/v1/messages \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"model": "MiniMax-M3.1-Flash",
"max_tokens": 131072,
"messages": [
{
"role": "user",
"content": "Hello! How can you help me?"
}
]
}
'{
"id": "072514f09a86ce2abb0c5c3930f924fb",
"type": "message",
"role": "assistant",
"model": "MiniMax-M3.1-Flash",
"content": [
{
"thinking": "Let the ball cost x. Then 2x + 1 = 1.10, so x = 0.05.",
"signature": "84eddf556420e0cc237f8f50212216543e8add2ddd931c9a271d2a5a95689333",
"type": "thinking"
},
{
"text": "0.05",
"type": "text"
}
],
"usage": {
"input_tokens": 55,
"output_tokens": 66,
"cache_creation_input_tokens": 0,
"cache_read_input_tokens": 174,
"output_tokens_details": {
"thinking_tokens": 63
}
},
"stop_reason": "end_turn",
"base_resp": {
"status_code": 0,
"status_msg": ""
}
}MiniMax-M3.1-Flash - Anthropic 互換 API
- Anthropic Messages プロトコルで MiniMax-M3.1-Flash モデルを呼び出します
- リクエスト / レスポンスの構造は Anthropic API に準拠しています
- マルチモーダル対話:
contentはテキスト、画像、動画のコンテンツブロックに対応します - システムプロンプト:トップレベルの
systemで渡します - 思考モード:常に有効。
output_config.effortで思考の深さを調整します。思考内容はcontent[type=thinking]ブロックとして返されます - ストリーミング出力:SSE イベントストリーム
- ツール呼び出し:Anthropic の
tool_use/tool_resultフローと互換性があります
ストリーミングイベント:message_start → content_block_start → content_block_delta(thinking_delta / signature_delta / text_delta / input_json_delta)→ content_block_stop → message_delta → message_stop。途中で ping が送信される場合があります。最終的な使用量は message_delta イベントの usage を参照してください。
curl --request POST \
--url https://direct.evolink.ai/v1/messages \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"model": "MiniMax-M3.1-Flash",
"max_tokens": 131072,
"messages": [
{
"role": "user",
"content": "Hello! How can you help me?"
}
]
}
'{
"id": "072514f09a86ce2abb0c5c3930f924fb",
"type": "message",
"role": "assistant",
"model": "MiniMax-M3.1-Flash",
"content": [
{
"thinking": "Let the ball cost x. Then 2x + 1 = 1.10, so x = 0.05.",
"signature": "84eddf556420e0cc237f8f50212216543e8add2ddd931c9a271d2a5a95689333",
"type": "thinking"
},
{
"text": "0.05",
"type": "text"
}
],
"usage": {
"input_tokens": 55,
"output_tokens": 66,
"cache_creation_input_tokens": 0,
"cache_read_input_tokens": 174,
"output_tokens_details": {
"thinking_tokens": 63
}
},
"stop_reason": "end_turn",
"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
備考:EvoLink は /v1/messages に対して一律で Bearer Token 認証を採用しています。
ボディ
呼び出すモデル
MiniMax-M3.1-Flash "MiniMax-M3.1-Flash"
対話メッセージのリスト。user / assistant をターンごとに交互に並べます
説明:
- 少なくとも 1 件のメッセージを含む必要があります
- 最後のメッセージは通常
role=userです
1Show child attributes
Show child attributes
生成する内容の最大トークン数。思考と回答の両方を含みます
説明:
- 推奨値は 131,072(128K)、最大値は 524,288(512K)
- 値が小さすぎると、思考中に上限に達し、
stop_reason=max_tokensとなって text コンテンツが返されない場合があります
1 <= x <= 524288131072
システムプロンプト。AI の役割と振る舞いを設定します。文字列またはテキストコンテンツブロックの配列に対応し、トップレベルの system フィールドで渡します。
"You are a helpful assistant."
サンプリング温度
説明:
- 範囲は
[0, 2]、デフォルトは 1 - 値を上げると多様な出力になり、下げると確定的な出力になります
- temperature と top_p を同時に調整しないことを推奨します
0 <= x <= 21
Nucleus Sampling のしきい値
説明:
- 範囲は
[0, 1]、デフォルトは 0.95 - temperature と top_p を同時に調整しないことを推奨します
0 <= x <= 10.95
SSE ストリーミングで返すかどうか
true:Server-Sent Events のストリーミング返却false:完全なレスポンスを待ってから一括で返します(デフォルト)
false
思考モード。MiniMax-M3.1-Flash は常に思考を行います。adaptive のみ対応しており、省略できます。思考内容は type="thinking" のブロックとして返され、出力トークンとして課金されます
Show child attributes
Show child attributes
出力設定
Show child attributes
Show child attributes
ツール定義リスト
説明:
- Anthropic の tool 定義仕様に従います
input_schemaは JSON Schema オブジェクトを使用します
Show child attributes
Show child attributes
ツールの選択方針。auto のみ対応しています(ツールを呼び出すかどうかをモデルが判断します)
Show child attributes
Show child attributes
リクエストメタデータ
Show child attributes
Show child attributes
レスポンス
メッセージオブジェクト
Anthropic スタイルのメッセージレスポンス
メッセージの一意の ID
レスポンスオブジェクトの種類
message assistant 実際に使用されたモデル
"MiniMax-M3.1-Flash"
レスポンスのコンテンツブロックのリスト
含まれる可能性があるブロックの type:
thinking:思考過程(簡単な質問では生成されない場合があります)text:最終回答のテキストtool_use:モデルによるツール呼び出し
Show child attributes
Show child attributes
停止理由
end_turn:自然終了max_tokens:max_tokens の上限に到達tool_use:モデルがツール呼び出しをトリガー
end_turn, max_tokens, tool_use Token 使用統計(Anthropic 規格)
Show child attributes
Show child attributes
ステータスコードとエラー詳細
Show child attributes
Show child attributes