メインコンテンツへスキップ
POST
/
v1
/
chat
/
completions
Chat Completionを作成
curl --request POST \
  --url https://api.example.com/v1/chat/completions \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "messages": [
    {}
  ],
  "model": "<string>"
}
'
{
  "choices": [
    {
      "message": {
        "content": "<unknown>"
      }
    }
  ]
}

承認

Authorization
string
header
必須

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

ボディ

application/json
messages
Messages · object[]
必須
model
string
必須

レスポンス

正常なレスポンス

choices
ChatChoice · object[]