Skip to main content
POST
Use the ScholarAI Agent to generate chat completions

Authorizations

x-scholarai-api-key
string
header
required

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!

Response

200

Stream based on OpenAI Completions structure