Let your app respond as output arrives
The Responses and Messages compatibility endpoints now support streaming alongside ordinary JSON responses. Your application can show text as it arrives and follow tool calls through their event lifecycle, while the gateway continues to enforce access and spending limits.
Use /v1/responses for Responses-style events or /v1/messages for Messages-style events. Both run through the existing model and route selection path.
Keep the conversation connected
- Tool calls and tool results retain their identifiers, including parallel tool calls.
- Explicit conversation replay preserves the relationship between an assistant’s call and the result your application sends back.
- Usage and billing stay attached to one gateway request. Messages usage separates uncached input, cache reads, and cache writes.
- Interrupted streams report an error rather than a successful completion. Incomplete output is identified explicitly.
This helps when your app needs to show progress while a model prepares a tool call, then continue the conversation after your tool returns a result.
Start with the supported protocol features
Send a supported request with stream: true and consume the endpoint’s server-sent events. Use an LLMRegistry API key and a model or route that supports the capabilities you request.
These endpoints support a defined compatibility subset. Stored-response continuation, hosted tools, background mode, and native thinking or citation blocks are not part of this release. Unsupported fields are rejected explicitly; provider and model capabilities still apply.