/anthropic/v1/messages endpoint supports native Anthropic event-based token streaming, fully compatible with official Anthropic Python and TypeScript SDKs.
Anthropic Streaming Event Sequence
Unlike OpenAI streams that transmit raw text deltas, Anthropic streams content block lifecycle events:message_start: Initial message metadata (id, model, role).content_block_start: Beginning of a new content block (text or thinking).content_block_delta: Content chunk updates (text_deltaorthinking_delta).content_block_stop: Closes the current block.message_delta: Trailing metadata (stop_reasonand final token counts).message_stop: Stream closing signal.