Search the documentation
50 pages for streaming.
Titles and paths first, then pages whose text carries it. Each row opens that page as this site last read it. Cut at 50, so a narrower query shows the rest.
fine-grained-tool-streaming
Claude Developer Platform · title
agents-and-tools/tool-use/fine-grained-tool-streaming
streaming
Claude Developer Platform · title
build-with-claude/streaming
events-and-streaming
Claude Developer Platform · title
managed-agents/events-and-streaming
handle-streaming-refusals
Claude Developer Platform · title
test-and-evaluate/strengthen-guardrails/handle-streaming-refusals
Streaming Input
Claude Code CLI · title
agent-sdk/streaming-vs-single-mode
Stream responses in real-time
Claude Code CLI · path
agent-sdk/streaming-output
Or, for the model with the same capabilities and no access approval requirement:
Claude Developer Platform · in the page
about-claude/models/migration-guide
…fort-2025-11-24"]` from your requests. 3. **Remove fine-grained tool streaming beta header:** Fine-grained tool streaming does not require a beta header. Remove `betas=["fine-grained-tool-streaming-2…
optimizing-for-cost-and-intelligence
Claude Developer Platform · in the page
about-claude/models/optimizing-for-cost-and-intelligence
…ream responses](https://platform.claude.com/docs/en/build-with-claude/streaming) that large, treat [`stop_reason: max_tokens`](https://platform.claude.com/docs/en/build-with-claude/handling-stop-reaso…
customer-support-chat
Claude Developer Platform · in the page
about-claude/use-case-guides/customer-support-chat
…out any PII from responses. #### Reduce perceived response time with streaming When dealing with potentially lengthy responses, implementing streaming can improve user engagement and satisfaction. I…
claude-api-skill
Claude Developer Platform · in the page
agents-and-tools/agent-skills/claude-api-skill
…rfaces: * **Messages API:** The primary surface for single requests, streaming chat, tool use, batch processing, prompt caching, structured outputs, and custom agent loops. * **Claude Managed Agents…
advisor-tool
Claude Developer Platform · in the page
agents-and-tools/tool-use/advisor-tool
…tool` and `any`, so use the prompt nudge on those models instead. ## Streaming The advisor sub-inference does not stream. The executor's stream pauses while the advisor runs; then the full result ar…
bash-tool
Claude Developer Platform · in the page
agents-and-tools/tool-use/bash-tool
…e outputs in your application before returning them to Claude. * **No streaming:** Output reaches Claude only when your application returns the `tool_result` in the next request. ## Combining with ot…
browser-use-tool
Claude Developer Platform · in the page
agents-and-tools/tool-use/browser-use-tool
…execution caller in `allowed_callers`, the legacy `fine-grained-tool-streaming-2025-05-14` beta header on the request, a `tool_choice` of type `tool` naming `browser` or a member, or a second browser…
code-execution-tool
Claude Developer Platform · in the page
agents-and-tools/tool-use/code-execution-tool
…ter you send back the `tool_result` blocks for your client tools. ## Streaming With [streaming](https://platform.claude.com/docs/en/build-with-claude/streaming) enabled (`"stream": true`), you'll re…
computer-use-tool
Claude Developer Platform · in the page
agents-and-tools/tool-use/computer-use-tool
…`strict`, `input_examples`, `defer_loading` placement, `tool_choice`, streaming, and caller restrictions, see [Client toolsets](https://platform.claude.com/docs/en/agents-and-tools/tool-use/tool-refer…
Process results programmatically
Claude Developer Platform · in the page
agents-and-tools/tool-use/programmatic-tool-calling
…## Next steps <CardGroup cols={2}> <Card title="Fine-grained tool streaming" icon="bolt" href="https://platform.claude.com/docs/en/agents-and-tools/tool-use/fine-grained-tool-streaming"> Strea…
server-tools
Claude Developer Platform · in the page
agents-and-tools/tool-use/server-tools
…ode execution versions alongside these web tool versions. </Note> ## Streaming server-tool events Server-tool events stream as part of the normal server-sent events (SSE) flow. A `server_tool_use` b…
tool-reference
Claude Developer Platform · in the page
agents-and-tools/tool-use/tool-reference
…tool-use/programmatic-tool-calling)). * The legacy `fine-grained-tool-streaming-2025-05-14` beta header. When you stream, each member's `input` arrives as one complete `input_json_delta`. * A `tool_ch…
Log at info level
Claude Developer Platform · in the page
agents-and-tools/tool-use/tool-runner
…ake over message history when, from inside an `each_message` or `each_streaming` block, you reassign `runner.params[:messages]` or call `feed_messages`. The following pattern calls `feed_messages` bet…
tool-search-tool
Claude Developer Platform · in the page
agents-and-tools/tool-use/tool-search-tool
…I returns a 400. Put the cache breakpoint on a non-deferred tool. ## Streaming With streaming enabled, you'll receive tool search events as part of the stream: ```sse event: content_block_start dat…
web-fetch-tool
Claude Developer Platform · in the page
agents-and-tools/tool-use/web-fetch-tool
…/docs/en/agents-and-tools/tool-use/tool-use-with-prompt-caching). ## Streaming With streaming enabled, fetch events are part of the stream with a pause during content retrieval: ```sse Output event…
web-search-tool
Claude Developer Platform · in the page
agents-and-tools/tool-use/web-search-tool
…/docs/en/agents-and-tools/tool-use/tool-use-with-prompt-caching). ## Streaming With streaming enabled, you'll receive search events as part of the stream. There will be a pause while the search runs…
Beta
Claude Developer Platform · in the page
api/beta
…o incrementally stream the response using server-sent events. See [streaming](https://platform.claude.com/docs/en/build-with-claude/streaming) for details. - `system: optional string or array of B…
Messages
Claude Developer Platform · in the page
api/beta/messages
…o incrementally stream the response using server-sent events. See [streaming](https://platform.claude.com/docs/en/build-with-claude/streaming) for details. - `system: optional string or array of B…
Batches
Claude Developer Platform · in the page
api/beta/messages/batches
…crementally stream the response using server-sent events. See [streaming](https://platform.claude.com/docs/en/build-with-claude/streaming) for details. - `system: optional string or array…
Create a Message Batch
Claude Developer Platform · in the page
api/beta/messages/batches/create
…crementally stream the response using server-sent events. See [streaming](https://platform.claude.com/docs/en/build-with-claude/streaming) for details. - `system: optional string or array…
Retrieve Message Batch results
Claude Developer Platform · in the page
api/beta/messages/batches/results
…The block is treated like a server-tool content block for streaming: it arrives via the standard `content_block_start` / `content_block_stop` pair and carries no de…
Count tokens in a Message
Claude Developer Platform · in the page
api/beta/messages/count_tokens
…important aspects of the tool input JSON schema. - `eager_input_streaming: optional boolean or null` Enable eager input streaming for this tool. When true, tool input parameters will be s…
Create a Message
Claude Developer Platform · in the page
api/beta/messages/create
…o incrementally stream the response using server-sent events. See [streaming](https://platform.claude.com/docs/en/build-with-claude/streaming) for details. - `system: optional string or array of B…
Events
Claude Developer Platform · in the page
api/beta/sessions/events
…etaManagedAgentsDeltaType` When set, this connection also receives streaming deltas (`event_start`, `event_delta`) while an event is being produced, before the event itself arrives. Deltas are best…
Stream Events
Claude Developer Platform · in the page
api/beta/sessions/events/stream
…etaManagedAgentsDeltaType` When set, this connection also receives streaming deltas (`event_start`, `event_delta`) while an event is being produced, before the event itself arrives. Deltas are best…
Threads
Claude Developer Platform · in the page
api/beta/sessions/threads
…etaManagedAgentsDeltaType` When set, this connection also receives streaming deltas (`event_start`, `event_delta`) while an event is being produced, before the event itself arrives. Deltas are best…
Events
Claude Developer Platform · in the page
api/beta/sessions/threads/events
…etaManagedAgentsDeltaType` When set, this connection also receives streaming deltas (`event_start`, `event_delta`) while an event is being produced, before the event itself arrives. Deltas are best…
Stream Session Thread Events
Claude Developer Platform · in the page
api/beta/sessions/threads/events/stream
…etaManagedAgentsDeltaType` When set, this connection also receives streaming deltas (`event_start`, `event_delta`) while an event is being produced, before the event itself arrives. Deltas are best…
Completions
Claude Developer Platform · in the page
api/completions
…o incrementally stream the response using server-sent events. See [streaming](https://platform.claude.com/docs/en/build-with-claude/streaming) for details. - `temperature: optional number` **De…
Create a Text Completion
Claude Developer Platform · in the page
api/completions/create
…o incrementally stream the response using server-sent events. See [streaming](https://platform.claude.com/docs/en/build-with-claude/streaming) for details. - `temperature: optional number` **De…
errors
Claude Developer Platform · in the page
api/errors
…t_error`: The request timed out while processing. Consider using the [streaming Messages API](https://platform.claude.com/docs/en/build-with-claude/streaming) for long-running requests. See [Long requ…
Messages
Claude Developer Platform · in the page
api/messages
…o incrementally stream the response using server-sent events. See [streaming](https://platform.claude.com/docs/en/build-with-claude/streaming) for details. - `system: optional string or array of T…
Batches
Claude Developer Platform · in the page
api/messages/batches
…crementally stream the response using server-sent events. See [streaming](https://platform.claude.com/docs/en/build-with-claude/streaming) for details. - `system: optional string or array…
Create a Message Batch
Claude Developer Platform · in the page
api/messages/batches/create
…crementally stream the response using server-sent events. See [streaming](https://platform.claude.com/docs/en/build-with-claude/streaming) for details. - `system: optional string or array…
Retrieve Message Batch results
Claude Developer Platform · in the page
api/messages/batches/results
…uent request to let the model continue. * `"refusal"`: when streaming classifiers intervene to handle potential policy violations * `"model_context_window_exceeded"`: we exceeded t…
Count tokens in a Message
Claude Developer Platform · in the page
api/messages/count_tokens
…important aspects of the tool input JSON schema. - `eager_input_streaming: optional boolean or null` Enable eager input streaming for this tool. When true, tool input parameters will be s…
Create a Message
Claude Developer Platform · in the page
api/messages/create
…o incrementally stream the response using server-sent events. See [streaming](https://platform.claude.com/docs/en/build-with-claude/streaming) for details. - `system: optional string or array of T…
overview
Claude Developer Platform · in the page
api/overview
…est and response handling * Built-in retry logic and error handling * Streaming support * Request timeouts and connection management For a list of client SDKs, see [Client SDKs](https://platform.clau…
versioning
Claude Developer Platform · in the page
api/versioning
…ror types * Add new variants to enum-like output values (for example, streaming event types) Generally, if you are using the API as documented in this reference, Anthropic will not break your usage.…
Message Batches API
Claude Developer Platform · in the page
build-with-claude/batch-processing
…om anthropic.types.message_create_params import MessageCreateParamsNonStreaming from anthropic.types.messages.batch_create_params import Request client = anthropic.Anthropic() message_batch =…
cache-diagnostics
Claude Developer Platform · in the page
build-with-claude/cache-diagnostics
…}} puts "cache_miss_reason: #{type}" end ``` </CodeGroup> ## Streaming In streaming responses, `diagnostics` appears on the `message_start` event. <CodeGroup> ```bash cURL # Turn 2: str…
citations
Claude Developer Platform · in the page
build-with-claude/citations
…"end_block_index": 1 } ] } ] } ``` ### Streaming support For streaming responses, citations arrive as a `citations_delta` delta type inside `content_block_delta` events…
claude-in-amazon-bedrock
Claude Developer Platform · in the page
build-with-claude/claude-in-amazon-bedrock
…the `InvokeModel`-based integration, this endpoint uses standard SSE streaming and the same request body shape as Anthropic's first-party API. The SDK resolves credentials and region using the stand…
claude-on-amazon-bedrock-legacy
Claude Developer Platform · in the page
build-with-claude/claude-on-amazon-bedrock-legacy
…ck), which uses the Messages API at `/anthropic/v1/messages` with SSE streaming. For an Anthropic-operated alternative with AWS Marketplace billing and typically same-day feature access, see [Claude P…