Skip to main content
Use AI streaming when a website or support surface should show the AI answer as it is generated.
The response uses server-sent events.

Request

Body

senderId is required unless Plato can read it from lastMessageId. channelId is optional when the conversation already has a channel or the last message has a channel.

Events

The stream sends data: events. Delta event:
Done event:
Error event:

Browser Example

For public websites, call this endpoint from your backend when possible. Do not expose long-lived API keys in browser code.

Permission

AI streaming requires: