• Docs
  • AI GatewayGateway

Viewing AI SDK 4 Documentation.

Go to AI SDK 6 (Latest)
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

Migration Guides

  • Migrate AI SDK 4.0 to 5.0
  • 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
Deploy and Scale AI Apps with Vercel

Deliver AI experiences globally with one push.

Trusted by industry leaders:
  • OpenAI
  • Photoroom
  • leonardo-ai Logoleonardo-ai Logo
  • zapier Logozapier Logo

Get Started

  • Templates
  • Supported frameworks
  • Marketplace
  • Domains

Build

  • Next.js on Vercel
  • Turborepo
  • v0

Scale

  • Content delivery network
  • Fluid compute
  • CI/CD
  • Observability
  • AI GatewayNew
  • Vercel AgentNew

Secure

  • Platform security
  • Web Application Firewall
  • Bot management
  • BotID
  • SandboxNew

Resources

  • Pricing
  • Customers
  • Enterprise
  • Articles
  • Startups
  • Solution partners

Learn

  • Docs
  • Blog
  • Changelog
  • Knowledge Base
  • Academy
  • Community

Frameworks

  • Next.js
  • Nuxt
  • Svelte
  • Nitro
  • Turbo

SDKs

  • AI SDK
  • Workflow DevKitNew
  • Flags SDK
  • Chat SDK
  • Streamdown AINew

Use Cases

  • Composable commerce
  • Multi-tenant platforms
  • Web apps
  • Marketing sites
  • Platform engineers
  • Design engineers

Company

  • About
  • Careers
  • Help
  • Press
  • Legal
  • Privacy Policy

Community

  • Open source program
  • Events
  • Shipped on Vercel
  • GitHub
  • LinkedIn
  • X
  • YouTube

© 2026 Vercel, Inc.

Select a display theme: