메인 콘텐츠로 건너뛰기
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[]