Skip to main content
POST
/
chat
/
completions
Create chat completion
curl --request POST \
  --url https://{defaultHost}/chat/completions \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "model": "<string>",
  "prompt": "<string>",
  "messages": [
    {
      "role": "system",
      "content": "<string>"
    }
  ]
}
'

Authorizations

Authorization
string
header
required

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

Body

application/json
model
string
required
prompt
string
required
messages
object[]
required

Response

200

service is up