post
https://apis.elai.io/api/v1/streams/chat/
Runs the built-in demo conversational agent over the supplied message history and returns its reply. Backs the interactive demo on the Elai site; it is not a general-purpose chat API and the prompt/persona is fixed server-side.
The reply is returned to the caller — it is not automatically spoken. Pass the text to POST /streams/render/{streamId} if you want the avatar to say it.
Recent Requests
Log in to see full request history
| Time | Status | User Agent | |
|---|---|---|---|
Retrieving recent requests… | |||
Loading…
curl -X POST 'https://apis.elai.io/api/v1/streams/chat/66a1f0c2b7cd13032a9c6200' \
-H 'Authorization: Bearer YOUR_API_TOKEN' \
-H 'Content-Type: application/json' \
-d '{
"messages": [
{
"role": "user",
"content": "What can Elai do?"
}
],
"firstMessage": true
}'
