# Streaming Input Mode

> The mode that keeps one session open. You can send more, add images and stop it.

**Field:** Artificial Intelligence  
**Category:** Claude Agent SDK  
**Also known as:** streaming input, Agent SDK streaming mode, Claude Agent SDK Streaming Input Mode

## Think of it like

It is like a walkie-talkie left on. You can talk again at any time, and cut in.

## Definition

Streaming input mode is the way of using the Agent SDK where you feed prompts to one long-lived session as a stream. You can send more messages while the agent works, attach images, stop a turn and change the model mid-session. The docs call it the preferred mode. A limit such as max turns ends a turn but leaves the session alive.

## Example

Mia's chat app sends each new user message into the same stream. Users can add a screenshot or stop Claude mid-answer.

## Why it matters

Real apps need follow-ups, images and a stop button. Only this mode has all three.

## Common mistake

Using a single prompt string and then wondering why you cannot attach an image. That needs streaming input.

## Three principles

- **One long session.** Many messages.
- **Images and interrupts.** Supported.
- **Preferred mode.** Per the docs.

## Related terms

- [Single Message Input](https://learn.benibix.com/term/ai/single-message-input)
- [ClaudeSDKClient](https://learn.benibix.com/term/ai/claude-sdk-client)
- [query() Function](https://learn.benibix.com/term/ai/query-function)
- [interrupt() Method](https://learn.benibix.com/term/ai/interrupt-method)

## Told apart from

- [Streaming Input vs Single Message Input](https://learn.benibix.com/compare/streaming-input-mode-vs-single-message-input): People think the two input modes are the same thing in a different form. Single message input sends one prompt and ends. It takes no images and cannot be stopped mid-turn. Streaming input keeps a session open, so you can send more, add images and stop it. Pick single message input for one-shot jobs, and streaming input for a chat.

![Streaming input keeps one session open for many messages, images and interrupts, while single message input sends one prompt and ends.](https://learn.benibix.com/diagrams/agent-sdk-input-modes.svg)

---

Source: https://learn.benibix.com/term/ai/streaming-input-mode
Author: Behnia Zarei (a developer in Vienna, Austria, who builds and teaches data, AI and business intelligence at BENIBIX)
Publisher: BENIBIX Learn (https://learn.benibix.com/)
Last updated: 2026-11-20
Licence: CC BY 4.0 (https://creativecommons.org/licenses/by/4.0/). Quote freely with attribution.
