Skip to content
masterclass Buddy

AI Tools · Function

streamUI

streamUI calls a language model and streams React components to the client. It can render plain text or UI returned by model-selected tools.

Last updated

Syntax

streamUI({ model, prompt, messages, system, initial, text, tools })

In-depth API docs are only for subscribers: parameters, examples, common mistakes and interview practice.

Subscribe
  • streamText
  • streamObject
  • createStreamableUI
  • createStreamableValue
  • useChat

Source: Streaming React Components | AI SDK. Checked 2026-11-03.