Passer au contenu principal
POST
/
v1
/
chat
/
completions
/
Créer une 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>"
      }
    }
  ]
}

Autorisations

Authorization
string
header
requis

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

Corps

application/json
messages
Messages · object[]
requis
model
string
requis

Réponse

Réponse réussie

choices
ChatChoice · object[]