Skip to main content
POST
アプリケーション、SDK、またはゲートウェイが OpenAI Chat Completions のリクエストとレスポンス形式を期待する場合は、このエンドポイントを使ってください。 modelmessages を含む標準の Chat Completions ペイロードを送信します。Capriole AI は上流へ送る前に latest エイリアスを選択したプロバイダーのモデル ID に解決し、messagestoolstool_choiceresponse_formatstream などの互換フィールドを転送し、上流の JSON または SSE ストリームをそのまま返します。ストリーミング リクエストでは、使用量を記録できるよう、転送前に stream_options.include_usage=true を設定します。 POST /v1/chat/completionsopenai-latestclaude-latestgoogle-latest、および GET /v1/models が返す公開の具体的なモデル ID を受け付けます。対応プロバイダーの推奨旗艦モデルを Capriole AI に選ばせるには、latest エイリアスを使ってください。 latest エイリアスは入力のショートカットです。使用量は解決後のモデルに対して記録され、レスポンス本文は選択した互換エンドポイント本来のモデル命名の動作を保持します。 Capriole ネイティブのテキスト生成には POST /v1/chat を使ってください。OpenAI 互換のワイヤ動作が必要な場合は POST /v1/chat/completions を使ってください。

承認

Authorization
string
header
必須

Use an API key created in the Capriole AI page. Send it as Authorization: Bearer sk-....

ボディ

application/json
model
enum<string>
必須

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
messages
object[]
必須

OpenAI-compatible conversation messages.

tools
object[]

OpenAI-compatible tool definitions.

tool_choice

OpenAI-compatible tool choice.

response_format
object

OpenAI-compatible response format.

stream
boolean
デフォルト:false

Stream the response as OpenAI-compatible server-sent events.

stream_options
object

OpenAI-compatible stream options. For streaming requests, Capriole AI sets include_usage=true before upstream dispatch for usage accounting.

レスポンス

OpenAI-compatible Chat Completions response or SSE stream. Response model fields follow the selected compatible endpoint and may differ from the input alias.

id
string
必須
object
string
必須
:

"chat.completion"

created
integer
必須
model
string
必須
choices
object[]
必須
usage
object
最終更新日 2026年8月18日