Follow Discord
Sweep 02 Oct 2026 · 18:55Z Build v2.1.288 509 read Stable v2.1.285 Latest v2.1.288 Next v2.1.288 Feeds RSS JSON llms.txt llms-full.txt Unofficial
One change · api

streaming changedbuild-with-claude/streaming

Nearest release: v2.1.281, published 5 hours before this site recorded the change. Shown because the two are within 24 hours of each other. Nothing here says the release caused the edit.

Recorded here
Lines+2added
Lines−2removed
From line 10 where the diff opens
First seen 14 Aug 2026 this site's first read of the page
Recorded edits7to this page, all time

The whole hunk

from line 10, old and new numbered
/
lines
from line 10
1010 
1111The [Python SDK](https://github.com/anthropics/anthropic-sdk-python) and [TypeScript SDK](https://github.com/anthropics/anthropic-sdk-typescript) offer multiple ways of streaming. The [PHP SDK](https://github.com/anthropics/anthropic-sdk-php) provides streaming through `createStream()`. The Python SDK allows both sync and async streams. See the documentation in each SDK for details.
1212 
13<CodeGroup>
13<CodeGroup exclude="shell:cURL">
1414 ```bash CLI
1515 ant messages create --stream --format jsonl \
1616 --model claude-opus-5-5 \
from line 140
140140 
141141If you don't need to process text as it arrives, the SDKs provide a way to use streaming internally while returning the complete `Message` object, identical to what `.create()` returns. This is especially useful for requests with large `max_tokens` values, where the SDKs require streaming to avoid HTTP timeouts.
142142 
143<CodeGroup>
143<CodeGroup exclude="shell:cURL">
144144 ```bash CLI
145145 # The ant CLI's --stream flag emits one event per line and does not
146146 # accumulate into a final Message. For long generations, stream the
Feedback