AI engineering glossary · Web APIs HTTP

What is SSE (Server-Sent Events)?

Server-Sent Events (also called SSE, EventSource): A standard where a server keeps one HTTP connection open and pushes a stream of text events to the client, in one direction only. Browsers reconnect automatically. It is the usual way chat APIs stream generated tokens.

Level: advancedTopic: Web APIs HTTP

Server-Sent Events: an example

A language model API streams each new word as a data: line, ending with data: [DONE].

Related terms

More Web APIs HTTP terms

Where you learn it

Server-Sent Events is part of the AI Engineering Program, which teaches it with notes, a hands-on lab and an exam. The first lesson is free.

Before you go

Take the cheat sheet with you

One free PDF: the key AI-engineering terms, formulas and Python idioms. No spam; unsubscribe any time.