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

Body

application/json
model
string

Model being used. Currently ignored and defaults to "scholarai" with GPT4-turbo

messages
object[]
stream
boolean

Whether or not to stream the response. Streaming is recommended!