Resources
The AI SDK moves quickly (7.x already changed stream helpers, ESM-only, and the default Gateway). Prefer the official docs. Do not treat model IDs in this tutorial as frozen.
Official
When feeding docs to Cursor or Copilot, paste llms.txt instead of 2024–2025 posts that still show toDataStreamResponse.
Coming from 6.x — change these first
Full list: official Migration Guide 7.0. Optional: npx skills add vercel/ai --skill migrate-ai-sdk-v6-to-v7.
Common npm packages
Official templates: Chatbot Starter, Multi-Modal Chat, Structured Object Streaming, Generative UI with RSC (experimental). Start from the Templates section on https://sdk.vercel.ai/docs.
Tutorial index
- Vercel AI SDK tutorial
- Introduction
- Installation
- Quick start
- useChat
- Streaming
- Tools
- RSC and streamUI
- Providers
- Next.js
- Practical examples
Related courses on this site
Contribute
This tutorial lives in Kenhuang Academy. When Gateway strings, the useChat signature, or stream helpers change, open an issue or PR and update docs/zh/ai-sdk/ and docs/en/ai-sdk/ together.