POST
/
api
/
chat
/
completions
curl --request POST \
  --url https://api.scholarai.io/api/chat/completions \
  --header 'Content-Type: application/json' \
  --header 'x-scholarai-api-key: <api-key>' \
  --data '{
  "model": "<string>",
  "messages": [
    {
      "role": "<string>",
      "content": "<string>"
    }
  ],
  "stream": true
}'

Authorizations

x-scholarai-api-key
string
header
required

Body

application/json

Response

200

Stream based on OpenAI Completions structure