Stream AI-powered chat responses using the Recoup chat system. This endpoint mirrors the request payload of the Chat Generate API but returns a streaming response compatible with the Vercel AI SDK createUIMessageStreamResponse. The stream emits UI message parts encoded as data chunks that can be parsed with createUIMessageStreamParser.
Your Recoup API key. Learn more.
Chat stream request
Request body for chat streaming. Exactly one of 'prompt' or 'messages' must be provided.
Single text prompt for the assistant. Required if 'messages' is not provided.
Array of UIMessage objects for context. Required if 'prompt' is not provided.
The unique identifier of the artist (optional)
The AI model to use for text generation (optional)
"openai/gpt-5-mini"
Array of tool names to exclude from execution
["create_scheduled_actions"]UUID of the chat room. If not provided, one will be generated automatically.
Topic name for the new chat room (e.g., 'Pulse Feb 2'). Only applies when creating a new room - ignored if room already exists. To edit the topic of an existing room, use PATCH /api/chats.
Streaming response with UI message parts. Events include: message-start (assistant begins message), message-delta (incremental updates), message-end (assistant finishes message), error (stream error), and metadata (usage data).
Server-Sent Events stream containing UI message parts