{
"id": "<string>",
"object": "chat.completion",
"created": 123,
"model": "kimi-k3.1-pro",
"choices": [
{
"index": 123,
"message": {
"role": "system",
"content": "<string>",
"reasoning_content": "<string>",
"tool_calls": [
{
"id": "<string>",
"type": "function",
"function": {
"name": "<string>",
"arguments": "<string>"
}
}
],
"tool_call_id": "<string>"
},
"finish_reason": "stop"
}
],
"usage": {
"prompt_tokens": 123,
"completion_tokens": 123,
"total_tokens": 123,
"prompt_tokens_details": {
"cached_tokens": 123,
"cache_write_tokens": 1
},
"completion_tokens_details": {
"reasoning_tokens": 123
}
}
}{
"error": {
"message": "<string>",
"type": "<string>",
"code": "<string>"
}
}{
"error": {
"message": "<string>",
"type": "<string>",
"code": "<string>"
}
}{
"error": {
"message": "<string>",
"type": "<string>",
"code": "<string>"
}
}{
"error": {
"message": "<string>",
"type": "<string>",
"code": "<string>"
}
}Kimi K3.1 Pro / Highspeed - OpenAI 互換 API
OpenAI Chat Completions 形式で両モデルを呼び出し、JSON または SSE ストリーミングで応答を受け取れます。複数ターンでは assistant メッセージの reasoning_content と tool_calls を完全に保持してください。
Web 検索が tool_calls を返した場合、各呼び出しの function.arguments を対応する tool_call_id の tool メッセージの内容として再送し、最終回答をリクエストしてください。
{
"id": "<string>",
"object": "chat.completion",
"created": 123,
"model": "kimi-k3.1-pro",
"choices": [
{
"index": 123,
"message": {
"role": "system",
"content": "<string>",
"reasoning_content": "<string>",
"tool_calls": [
{
"id": "<string>",
"type": "function",
"function": {
"name": "<string>",
"arguments": "<string>"
}
}
],
"tool_call_id": "<string>"
},
"finish_reason": "stop"
}
],
"usage": {
"prompt_tokens": 123,
"completion_tokens": 123,
"total_tokens": 123,
"prompt_tokens_details": {
"cached_tokens": 123,
"cache_write_tokens": 1
},
"completion_tokens_details": {
"reasoning_tokens": 123
}
}
}{
"error": {
"message": "<string>",
"type": "<string>",
"code": "<string>"
}
}{
"error": {
"message": "<string>",
"type": "<string>",
"code": "<string>"
}
}{
"error": {
"message": "<string>",
"type": "<string>",
"code": "<string>"
}
}{
"error": {
"message": "<string>",
"type": "<string>",
"code": "<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 会話メッセージ。複数ターンの会話では、過去の完全な assistant メッセージを含めてください。
1Show child attributes
Show child attributes
推論と最終回答を含む最大生成トークン数。デフォルトは 131072、最大は 1048576 で、残りのコンテキストにも制限されます。
1 <= x <= 1048576推論強度。low / high / max を推奨し、デフォルトは max です。推論は常に有効です。クライアント互換用に medium は high、xhigh は max、minimal / none は low として扱います。none でも推論は無効になりません。強度を上げると通常は推論トークンと遅延が増えます。推論トークンは出力に含まれます。
low, high, max, medium, xhigh, minimal, none 応答を SSE ストリームで返すかどうか。
関数ツールまたは Web 検索。検索は {"type":"web_search"} で指定します。
128- Option 1
- Option 2
Show child attributes
Show child attributes
モデルがツールを呼び出すか、特定の関数を強制するかを制御します。
auto, none, required コンテキストキャッシュの書き込み設定。省略時は 5m キャッシュへ自動書き込みします。書き込みと読み取りは別々に課金されます。
Show child attributes
Show child attributes
出力形式。text はプレーンテキスト、json_object は JSON オブジェクト、json_schema は指定した JSON Schema に従う構造化出力です。
Show child attributes
Show child attributes
旧クライアント用の出力上限の別名。新規リクエストでは max_completion_tokens を使い、両方の同時指定は避けてください。
1 <= x <= 1048576