Vercel AI SDK
The AI SDK is a free TypeScript toolkit from Vercel for building AI apps and agents, with one API across model providers and hooks for React, Vue, and more.
About Vercel AI SDK
The AI SDK is an open-source TypeScript toolkit, maintained under Vercel’s GitHub organization, for building AI applications and agents. It gives you one interface for generating text and structured data, calling tools, and streaming answers, so you can change model providers without rewriting your app.
Key features
- Unified model API — one set of calls across providers such as OpenAI, Anthropic, and Google, which you can reach through the Vercel AI Gateway or through each provider’s own package.
- Text, objects, and tools — AI SDK Core covers text generation, structured output, tool calls, and agents.
- UI hooks — framework-agnostic hooks for chat and generative interfaces in Next.js, React, Svelte, Vue, and Angular.
- Agent harnesses — run existing harnesses such as Claude Code and Codex through a HarnessAgent.
- Learning material — recipes, templates, a playground, and a showcase on the site.
Pricing
The SDK is described as free and open source. You pay the model providers, or Vercel’s AI Gateway if you use it; check those services for rates.
Who it’s for
JavaScript and TypeScript developers building chatbots, assistants, or agent features into web apps, especially in the React and Next.js ecosystem.
Good to know
- It requires Node.js 22 or later.
- The site names v7 as the current release, with v6 and v5 in maintenance, so check which version a tutorial uses.
- It is a code library, not a hosted app builder.