AI SDK 6

Overview

Quick reference guide for building AI applications with Vercel's AI SDK 6.

AI SDK 6

The AI SDK (maintained by Vercel) is a free, open-source TypeScript toolkit for building AI-powered applications. It provides a unified API across different LLM providers — you can swap models in and out without changing your app logic.

Three Parts

PartUse Case
AI SDK CoreBackend — Node.js, Deno, Bun, etc.
AI SDK UIFrontend hooks & components linked to an AI SDK backend
AI SDK RSCReact Server Components framework integration

These notes cover AI SDK Core only.

What You Can Do

  • Generate and stream text
  • Generate structured output (objects, arrays, enums) with Zod
  • Embed text for semantic search / similarity
  • Build agentic loops with tools

Sections