# Server-Sent Events (SSE)

- **Canonical URL:** https://getaimath.com/dictionary/server-sent-events-sse/
- **Topics:** [AI APIs, Protocols & Integration](https://getaimath.com/dictionary/category/ai-apis-protocols-and-integration/)
- **Last updated:** 2026-11-25

## 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.

![APIs, JSON & MCP: The Drive-Thru Window & Universal Plug — Simple cartoon showing an App handing a neat checklist order slip (JSON) through a drive-thru window (API) to the AI, while a universal USB-C plug (MCP) connects the AI to Google Drive, Slack, and Email.](https://getaimath.com/diagrams/ai-apis-protocols-and-integration.png)
*Napkin Diagram (AI APIs, Protocols & Integration): An API is the drive-thru window apps use to talk to AI; JSON keeps replies neat; MCP is the universal plug for tools.*

## What is an example of Server-Sent Events (SSE)?

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.

## Related Concepts

- [Streaming Response](https://getaimath.com/dictionary/streaming-response/): A streaming response sends an AI's answer piece by piece as it is generated, instead of waiting for the whole thing.
- [Webhooks](https://getaimath.com/dictionary/webhooks/): Webhooks are automatic messages one system sends to another when something happens.
- [Tool Calling](https://getaimath.com/dictionary/tool-calling/): Tool calling is when an AI model asks to use an outside tool, like a calculator, search engine or app, by producing a structured request.
- [Rate Limiting](https://getaimath.com/dictionary/rate-limiting/): Rate limiting caps how many requests or tokens you can send to an API in a certain amount of time.
- [JSON Schema](https://getaimath.com/dictionary/json-schema/): JSON Schema is a standard way to describe what a piece of JSON data should look like, including its fields and types.
- [Request Payload](https://getaimath.com/dictionary/request-payload/): A request payload is the data you send in an API request, like your prompt, model choice and settings.

---
Source: The AI Math Dictionary (https://getaimath.com/dictionary/server-sent-events-sse/)
