AI SDK
  • Docs
  • Cookbook
  • Providers
  • Showcase
  • Playground

Viewing AI SDK 4 Documentation

View AI SDK 5
AI SDK by Vercel
AI SDK 5 Beta
Foundations
Overview
Providers and Models
Prompts
Tools
Streaming
Agents
Getting Started
Navigating the Library
Next.js App Router
Next.js Pages Router
Svelte
Vue.js (Nuxt)
Node.js
Expo
AI SDK Core
Overview
Generating Text
Generating Structured Data
Tool Calling
Prompt Engineering
Settings
Embeddings
Image Generation
Transcription
Speech
Language Model Middleware
Provider & Model Management
Error Handling
Testing
Telemetry
AI SDK UI
Overview
Chatbot
Chatbot Message Persistence
Chatbot Tool Usage
Generative User Interfaces
Completion
Object Generation
OpenAI Assistants
Streaming Custom Data
Error Handling
Smooth streaming japanese text
Smooth streaming chinese text
Stream Protocols
AI SDK RSC
Advanced
Reference
AI SDK Core
AI SDK UI
AI SDK RSC
Stream Helpers
AI SDK Errors
Migration Guides
Versioning
Migrate AI SDK 4.1 to 4.2
Migrate AI SDK 4.0 to 4.1
Migrate AI SDK 3.4 to 4.0
Migrate AI SDK 3.3 to 3.4
Migrate AI SDK 3.2 to 3.3
Migrate AI SDK 3.1 to 3.2
Migrate AI SDK 3.0 to 3.1
Troubleshooting

Migration Guides

  • Migrate AI SDK 4.1 to 4.2
  • Migrate AI SDK 4.0 to 4.1
  • Migrate AI SDK 3.4 to 4.0
  • Migrate AI SDK 3.3 to 3.4
  • Migrate AI SDK 3.2 to 3.3
  • Migrate AI SDK 3.1 to 3.2
  • Migrate AI SDK 3.0 to 3.1

Versioning

  • Versioning
Previous
AI_UnsupportedFunctionalityError
Next
Versioning
On this page
Migration Guides
Versioning
Elevate your AI applications with Vercel.
Trusted by OpenAI, Replicate, Suno, Pinecone, and more.
Vercel provides tools and infrastructure to deploy AI apps and features at scale.

Resources

DocsCookbookProvidersShowcaseGitHubDiscussions

More

PlaygroundContact Sales

About Vercel

Next.js + VercelOpen Source SoftwareGitHubX

Legal

Privacy Policy

© 2025 Vercel, Inc.