Stream prompt with GenAI endpoint
This topic describes how to use the
/prompt
and
/messages
streaming API endpoints.The GenAI Chat Service provides two endpoints: /api/v1/prompt/stream
and
/api/v1/messages/stream
.
These endpoints return responses in a streaming format, delivering output in chunks as it is generated.
Use these endpoints with the same request payload as completed in the
/api/v1/prompt
or /api/v1/messages
.