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.
AI Glossary
Server-sent events (SSE)
A web standard in which a server keeps an HTTP connection open and pushes a stream of text events to the client, widely used to stream AI model responses token by token.