POST
/
v1
/
rag_chat
curl --request POST \
  --url https://rag-api.starkai.io/v1/rag_chat \
  --header 'Content-Type: application/json' \
  --header 'X-Api-Key: <api-key>' \
  --data '{
  "query": "gave me 5 minpower tips",
  "stream": true
}'
"<string>"
Check our Documention Page to create a new API Key

Authorizations

X-Api-Key
string
header
required

API Key for authentication

Body

application/json

Chat query with optional streaming

The body is of type object.

Response

200
text/event-stream

Chat response (streaming or non-streaming)

Server-Sent Events stream when stream=true. Contains token chunks prefixed with '0:', metadata with 'f:', 'e:', and 'd:' prefixes