Skip to main content
POST
Same behaviour as Send message, but the AI reply is streamed back token-by-token for real-time rendering. The user message and the final AI message are still persisted to the chat.
Requires a positive wallet balance. Billed at ₦100 per 1,000 tokens consumed by the request, and rate limited to 10 AI requests per minute.

Path parameters

string
required
The chat session ID.

Body

string
required
Your message, 1–4000 characters.

Response format

The response is sent with Content-Type: application/x-ndjson. The body is a sequence of newline-delimited JSON objects, one per line. Each object has the shape { "type": <string>, "data": <any> }. This is NDJSON, not Server-Sent Events, so read it with a streaming body reader rather than EventSource:

Event types

Client example