AI
SDK
Docs
Cookbook
Providers
Showcase
Playground
Cookbook
An open-source collection of recipes and guides for building with the AI SDK.
Guides
Build a Natural Language Postgres Editor
Get Started with Computer Use
Get Started with OpenAI o1
Get Started with Llama 3.1
Show More
Recipes
Next.js
Next.js
Node.js
React Server Components
API Servers
streaming
10
chat
3
tool use
3
persistence
2
assistant
2
structured data
2
caching
1
middleware
1
multimodal
1
multi-modal
1
generative user interface
1
Generate Text
Generate Text with Chat Prompt
streaming
chat
Stream Text
streaming
Stream Text with Chat Prompt
streaming
chat
Stream Text with Image Prompt
streaming
multimodal
Generate Object
structured data
Generate Object with File Prompt through Form Submission
multi-modal
Stream Object
streaming
structured data
Call Tools
tool use
Call Tools in Parallel
streaming
tool use
Call Tools in Multiple Steps
streaming
tool use
Send Custom Body from useChat
chat
Render Visual Interface in Chat
generative user interface
Save Messages to Database
persistence
Restore Messages from Database
persistence
Stream Assistant Response
streaming
assistant
Stream Assistant Response with Tools
streaming
assistant
Caching Middleware
streaming
caching