POST
/
chat
/
completions
curl --request POST \
  --url https://{capsule-id}.sid.ai/chat/completions \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "messages": [
    {
      "role": "<string>",
      "content": "<string>"
    }
  ]
}'

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <API_KEY>. API keys can be generated in the dashboard.

Body

application/json
messages
object[]

Array of messages in the conversation

Response

200
_mintlify/placeholder

Successful response