Initiate Async Chat Stream
Initiate an asynchronous chat completion stream.
This endpoint starts an asynchronous chat completion process that streams events. Unlike synchronous chat, this endpoint returns immediately with a message_id that can be used to observe the stream progress.
Key Features:
- Asynchronous Processing: Non-blocking request handling with immediate response
- Stream Observation: Use returned message_id to observe real-time events
- Works exactly like synchronous chat, but in an async manner
Notes:
- Optional message_id query parameter for custom stream identification
- Stream events follow the same format as synchronous chat responses
- Stream status can be monitored via status endpoint
Query parameters
Request
Request body for initiating asynchronous chat completion with multi-turn conversation support.
Contains message history, tool definitions, system prompts, and response configuration. The request initiates a background process that streams events, which can be observed via the stream endpoint.
The request body defines the complete conversation context and AI behavior parameters for generating asynchronous responses.
System prompt input. Accepts str, list[str], System, list[System], or null. It is normalized internally to list[System].
Optional request-level cache control.
Request metadata (for example, user_id).
Service tier preference (for example, “auto” or “standard_only”).
Deprecated response format. Use output_config.format instead.
Response
Initial status of the stream (typically ‘pending’)

