Server-sent events let a server send updates to a client over a single long-lived HTTP response. Each event is a few lines of text, such as an event: name and a data: line holding JSON. Model APIs from providers including Anthropic and OpenAI use SSE so applications can show an answer as it is generated. See our guide to streaming LLM API responses.