Sintra AI
Home
Live Feed
Automation Hub
Prompt Library256
AI News554
Weekly Digest
Topic Hubs
AI History
AI Labs
Research
Learning Paths
Guides
Resources
Concepts
Videos
AI Tools74
Models
Claude
Google AI
Cost Calc
Skip to content
Sintra AIConcepts
Home/Concepts/Streaming
๐ŸŒŠ
ProtocolsBeginner

Streaming

Receiving an AI's response token by token as it's generated, not all at once.

Streaming sends each token to the client as soon as the model generates it, rather than waiting for the full response to complete. This is why ChatGPT and Claude "type" text progressively rather than showing a blank screen then dumping the answer.

Technical mechanism: Server-Sent Events (SSE) or WebSockets. The server pushes a delta (one or a few tokens) as each is generated. The client appends it to the UI in real time.

When to use:

  • Always in user-facing apps: Streaming is dramatically better UX for responses over ~100 tokens. A 20-second wait feels instant when you see output after 200ms.
  • Not needed for batch processing: If you're processing documents offline and don't need real-time display, non-streaming is simpler.

Practical notes:

  • Structured output (JSON) works poorly with streaming โ€” you need the full response to parse JSON. Either stream and parse at the end, or don't stream when you need structured output.
  • Token counts arrive in the final delta for billing purposes.
  • Most SDKs handle streaming with a simple stream=True parameter and async iteration over the response.

In plain terms

A live sports ticker vs. a post-match summary. The ticker streams each score as it happens; the summary appears once the game ends.

Related concepts

๐Ÿ”Œ

API

A standardised way for software to talk to other software.

โšก

Inference

The moment a trained model actually runs and generates output.

๐Ÿช™

Tokens

The tiny chunks of text an AI reads, one at a time.

Stay current

New prompts & AI news, weekly

No noise. Curated highlights from the library.

Newsletter signup is currently disabled.

Sintra Tesseract

A curated library of AI use cases, mapped across every way to think with a machine.

Open source ยท Free forever

Discover

Use CasesCollectionsAI Tools DirectoryAI NewsLearning PathsResources & Links

Reference

Claude & AnthropicAI ConceptsAI HistoryAI LabsGoogle AI Tools

Elsewhere

AI Keynote โ†—GitHub โ†—RSS Feed โ†—
ยฉ 2026 Sintra ยท Curated in the open.Built on the void.