Skip to main content
POST
/
v1
/
llm
/
chat
/
completions
Chat completions
curl --request POST \
  --url https://api.usenaive.ai/v1/llm/chat/completions \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "model": "<string>",
  "messages": [
    {}
  ],
  "prompt": "<string>",
  "stream": true
}
'
{}

Authorizations

Authorization
string
header
required

Workspace API key. Create one via the dashboard or POST /v1/auth/keys.

Body

application/json
model
string
messages
object[]
prompt
string
stream
boolean

Response

Completion (JSON) or text/event-stream when stream: true.

The response is of type object.