Send Chat Message

Description: Sends a user message to the AI chat and streams the assistant response as an AI SDK UI message stream.

Usage: If conversationId is omitted, a new conversation is created. The created conversation id is returned in the X-Chat-Conversation-Id response header.

Usage Cost: 1 point per submitted message

Recent Requests
Log in to see full request history
TimeStatusUser Agent
Retrieving recent requests…
LoadingLoading…
Body Params
int32 | null
≥ 1
Defaults to null

Existing conversation id. If omitted, a new conversation is created and returned in the X-Chat-Conversation-Id response header.

string
required

AI SDK UIMessage object submitted by the user. It must be a user message with at least one text part.

string
enum
Defaults to pro

Chat model preset. pro uses the default full model, lite uses the lightweight model.

Allowed:
Headers
string
required
Response

Language
LoadingLoading…
Response
Click Try It! to start a request and see the response here! Or choose an example:
text/event-stream