Learn AI Math

Server-Sent Events (SSE)

What is Server-Sent Events (SSE)?

In one sentence: Server-Sent Events is a web technology that lets a server keep sending updates to a browser or app over one open connection.

Many AI APIs use SSE to stream tokens as they are generated. The connection stays open and the server pushes each new chunk.

What does Server-Sent Events (SSE) look like?

An AI API sending "data: {token: 'Hello'}" events one after another uses SSE.

Why does Server-Sent Events (SSE) matter?

SSE is a simple and common way to stream AI responses.

Last updated · Fact-checked by The AI Math

Linking to this page from a lesson or article?

Like this explanation? Get one every week.

The AI Math newsletter turns confusing AI news into plain English. No hype, no jargon walls.