Skip to main content
For real-time output, stream a model response with sdk.inference.responses.stream(). You receive typed events as the model generates — text fragments, tool calls, and a final done event. This is raw model output over SSE, with no agent runtime in between.

Stream a response

Event types

Concatenate text-delta fragments to build the full response. The done event carries the final usage and receipt.

Inference streaming vs agent streaming

Both use SSE, but they serve different layers: Use inference streaming when you want direct model output with no orchestration. Use agent streaming when you want tools, memory, plans, or multi-agent delegation.