curl --request POST \
--url https://direct.evolink.ai/v1/messages \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"model": "kimi-k3.1-pro",
"max_tokens": 1024,
"output_config": {
"effort": "low"
},
"messages": [
{
"role": "user",
"content": "Reply with OK."
}
]
}
'{
"id": "<string>",
"type": "message",
"role": "assistant",
"model": "kimi-k3.1-pro",
"content": [
{
"type": "text",
"text": "<string>"
}
],
"stop_reason": "end_turn",
"stop_sequence": "<string>",
"usage": {
"input_tokens": 123,
"cache_creation_input_tokens": 123,
"cache_read_input_tokens": 123,
"output_tokens": 123,
"output_tokens_details": {
"thinking_tokens": 123
},
"cache_creation": {
"ephemeral_5m_input_tokens": 1,
"ephemeral_1h_input_tokens": 1
},
"server_tool_use": {
"web_search_requests": 1
}
}
}{
"type": "error",
"error": {
"type": "<string>",
"message": "<string>"
},
"request_id": "<string>"
}{
"type": "error",
"error": {
"type": "<string>",
"message": "<string>"
},
"request_id": "<string>"
}{
"type": "error",
"error": {
"type": "<string>",
"message": "<string>"
},
"request_id": "<string>"
}{
"type": "error",
"error": {
"type": "<string>",
"message": "<string>"
},
"request_id": "<string>"
}Kimi K3.1 Pro / Highspeed - Anthropic 互換 API
公開エンドポイントは POST /v1/messages。推論強度は output_config.effort、5m/1h の書き込みはトップレベルの cache_control で指定します。thinking、signature、tool_use、サーバー検索結果ブロックを完全に保持してください。
curl --request POST \
--url https://direct.evolink.ai/v1/messages \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"model": "kimi-k3.1-pro",
"max_tokens": 1024,
"output_config": {
"effort": "low"
},
"messages": [
{
"role": "user",
"content": "Reply with OK."
}
]
}
'{
"id": "<string>",
"type": "message",
"role": "assistant",
"model": "kimi-k3.1-pro",
"content": [
{
"type": "text",
"text": "<string>"
}
],
"stop_reason": "end_turn",
"stop_sequence": "<string>",
"usage": {
"input_tokens": 123,
"cache_creation_input_tokens": 123,
"cache_read_input_tokens": 123,
"output_tokens": 123,
"output_tokens_details": {
"thinking_tokens": 123
},
"cache_creation": {
"ephemeral_5m_input_tokens": 1,
"ephemeral_1h_input_tokens": 1
},
"server_tool_use": {
"web_search_requests": 1
}
}
}{
"type": "error",
"error": {
"type": "<string>",
"message": "<string>"
},
"request_id": "<string>"
}{
"type": "error",
"error": {
"type": "<string>",
"message": "<string>"
},
"request_id": "<string>"
}{
"type": "error",
"error": {
"type": "<string>",
"message": "<string>"
},
"request_id": "<string>"
}{
"type": "error",
"error": {
"type": "<string>",
"message": "<string>"
},
"request_id": "<string>"
}https://direct.evolink.ai で、テキストモデルと長時間接続をより適切にサポートします。https://api.evolink.ai はマルチモーダルサービスの主要エンドポイントで、テキストモデルの代替アドレスとして使用されます。承認
##すべてのインターフェースは Bearer Token による認証が必要です##
API Key の取得:
API Key 管理ページ にアクセスして API Key を取得してください
使用時はリクエストヘッダに追加:
Authorization: Bearer YOUR_API_KEY
ボディ
kimi-k3.1-pro または kimi-k3.1-pro-highspeed を指定します。Highspeed は生成が速いモデルです。
kimi-k3.1-pro, kimi-k3.1-pro-highspeed thinking と最終テキストを含む、この生成で使用できる最大 token 数。
1 <= x <= 1048576Anthropic Messages のメッセージ一覧。複数ターンの会話では、assistant の完全なコンテンツブロックを変更せずに返してください。
1Show child attributes
Show child attributes
文字列または text ブロック配列のシステムプロンプト。
Anthropic SSE イベントストリームを返すかどうか。
カスタム関数またはサーバー側 Web 検索。内蔵検索は type=web_search_20250305、name=web_search を使用し、実際の呼び出し回数で課金されます。
- Option 1
- Option 2
Show child attributes
Show child attributes
Show child attributes
Show child attributes
停止シーケンス。完全一致で生成を停止し、一致した文字列は出力しません。最大 5 個、各 32 バイト以内です。
5書き込み TTL はトップレベルの cache_control のみで制御します。メッセージブロック内のキャッシュ指定では代用できません。省略時は 5m です。
Show child attributes
Show child attributes
出力設定:推論強度と構造化出力。
Show child attributes
Show child attributes
レスポンス
Message 応答。ストリーミングリクエストでは Anthropic SSE イベントストリームを返します
message assistant "kimi-k3.1-pro"
テキスト、画像、推論、ツール呼び出し、またはツール結果を表す Anthropic コンテンツブロック。
- Option 1
- Option 2
- Option 3
- Option 4
- Option 5
- Option 6
- Option 7
Show child attributes
Show child attributes
end_turn, max_tokens, tool_use, refusal, null Show child attributes
Show child attributes