エンドポイント
Chat completions
Capriole AI モデルで OpenAI 互換の Chat Completions を作成します。
POST
アプリケーション、SDK、またはゲートウェイが OpenAI Chat Completions のリクエストとレスポンス形式を期待する場合は、このエンドポイントを使ってください。
model と messages を含む標準の Chat Completions ペイロードを送信します。Capriole AI は上流へ送る前に latest エイリアスを選択したプロバイダーのモデル ID に解決し、messages、tools、tool_choice、response_format、stream などの互換フィールドを転送し、上流の JSON または SSE ストリームをそのまま返します。ストリーミング リクエストでは、使用量を記録できるよう、転送前に stream_options.include_usage=true を設定します。
POST /v1/chat/completions は openai-latest、claude-latest、google-latest、および GET /v1/models が返す公開の具体的なモデル ID を受け付けます。対応プロバイダーの推奨旗艦モデルを Capriole AI に選ばせるには、latest エイリアスを使ってください。
latest エイリアスは入力のショートカットです。使用量は解決後のモデルに対して記録され、レスポンス本文は選択した互換エンドポイント本来のモデル命名の動作を保持します。
Capriole ネイティブのテキスト生成には POST /v1/chat を使ってください。OpenAI 互換のワイヤ動作が必要な場合は POST /v1/chat/completions を使ってください。承認
Use an API key created in the Capriole AI page. Send it as Authorization: Bearer sk-....
ボディ
application/json
Public model identifier or latest alias returned by GET /v1/models
利用可能なオプション:
openai-latest, openai/gpt-5.6-terra, openai/gpt-5.6-luna, openai/gpt-5.5, openai/gpt-5.4-mini, claude-latest, anthropic/claude-fable-5, anthropic/claude-opus-5, anthropic/claude-opus-4-8, anthropic/claude-opus-4-7, anthropic/claude-opus-4-6, anthropic/claude-sonnet-4-6, google-latest, google/gemini-3.1-pro-preview, google/gemini-3.5-flash, xai/grok-4.5, zai/glm-5.2, moonshot/kimi-k3 OpenAI-compatible conversation messages.
OpenAI-compatible tool definitions.
OpenAI-compatible tool choice.
OpenAI-compatible response format.
Stream the response as OpenAI-compatible server-sent events.
OpenAI-compatible stream options. For streaming requests, Capriole AI sets include_usage=true before upstream dispatch for usage accounting.
最終更新日 2026年8月18日