AI SDK Agents
  • Patterns
  • Templates
SDK API
Subcategory
2 patterns

streamText( )

Streaming text and structured data with Output.object()

Part of SDK API

Stream Text previewStream Text preview

Stream Text

Stream text responses from AI prompts in real-time. Includes character counting and live response rendering with useCompletion.

aiprompt+4
View →
Streaming Structured Output previewStreaming Structured Output preview

Streaming Structured Output

Stream structured output from AI prompts in real-time using streamText with Output.object(). Generate typed data with useObject and live rendering.

aiprompt+6
View →

Explore More

More in SDK API

generateText( )

Text and structured data generation with Output.object()

generateImage( )

Image generation examples

generateSpeech( )

Speech synthesis examples

transcribe( )

Audio transcription examples

tool( )

AI SDK tool API examples and patterns

Agent( )

AI SDK agent API examples and patterns

End of streamText( )