
Vercel AI SDK
Vercel's free, open-source TypeScript toolkit for AI apps and agents, with one API across model providers.
The AI SDK is Vercel's free TypeScript toolkit for AI apps and agents, open source under the Apache License 2.0, with one API across providers such as OpenAI, Anthropic and Google plus framework-agnostic UI hooks. It installs from npm as ai, and plain model strings go through the Vercel AI Gateway by default.
About Vercel AI SDK
The AI SDK, created by Vercel and Next.js team members with contributions from the open-source community, is a TypeScript toolkit for building AI-powered applications and agents with React, Next.js, Vue, Svelte, Angular, Node.js and more. It is free and open source under the Apache License 2.0, installs with npm install ai, and its GitHub repository asks for Node.js 22+ and npm or another package manager.
Its surfaces are AI SDK Core, a unified API for generating text, structured objects and tool calls and for building agents with LLMs; AI SDK UI, framework-agnostic hooks for chat and generative user interfaces, with a package per framework such as @ai-sdk/react; and AI SDK Harnesses, which run established agent harnesses such as Claude Code, Codex and Pi through HarnessAgent. The homepage lists streaming, built-in fallbacks and examples for image generation, speech, transcription and video generation.
Plain model strings go through the Vercel AI Gateway by default, which the homepage says reaches 100+ models with no markup and without managing multiple API keys; to call a provider directly, you install its package, such as @ai-sdk/openai, @ai-sdk/anthropic or @ai-sdk/google. The docs list providers including OpenAI, Anthropic, Google Generative AI, Google Vertex AI, xAI Grok, Azure, Amazon Bedrock, Mistral, Groq, DeepSeek, Cohere, Fireworks and Perplexity.
Vercel pairs the SDK with Vercel Sandbox for running agent-generated code, Workflows for long-running agents and apps that can suspend, resume and survive function timeouts, and AI Elements, a UI component library and registry. The documentation, labelled v7, is also published as Markdown at ai-sdk.dev/llms.txt for use with an LLM, and an AI SDK skill for coding agents such as Claude Code or Cursor installs with npx skills add vercel/ai.
Sources: ai-sdk.dev, /docs/introduction, github.com/vercel/ai and github.com/vercel/ai/blob/main/LICENSE, read 2026-10-27
Vercel AI SDK pros and cons
Pros
- Free and open source under the Apache License 2.0, with the code on GitHub at vercel/ai.
- Switching providers is a one-line change, according to the homepage, and the same API covers text, structured objects, tool calls and agents.
- The UI hooks are framework agnostic and work in Next.js, React, Svelte and Vue.
- The docs ship as one Markdown file for LLMs, and templates include a chatbot starter with persistence and multi-modal chat.
Cons
- It is a TypeScript toolkit: the GitHub repository asks for Node.js 22+, and neither it nor the docs introduction mentions Python.
- By default, plain model strings go through Vercel's AI Gateway; calling a provider's API directly takes its separate package, such as @ai-sdk/openai.
- Capabilities differ by provider: the docs table lists image generation for OpenAI but not for Anthropic, and only tool usage and tool streaming for Cohere.
- Some parts are new or experimental: Workflows is marked new on the homepage, and Generative UI with RSC is labelled experimental.
Tagged
- Bring Your Own Key
- Supports Claude
- Supports GPT
- Supports Gemini
- Open Source
Vercel AI SDK alternatives
The closest alternatives to Vercel AI SDK.
Related reading
Featured on Vibedonalds
Own Vercel AI SDK? Add this badge to your site to show you’re listed — and link back to your profile here.
<a href="https://vibedonalds.com/tools/vercel-ai-sdk" target="_blank" rel="noopener nofollow">
<img src="https://vibedonalds.com/badge/featured-on-vibedonalds.svg" alt="Vercel AI SDK — Featured on Vibedonalds" width="240" height="60" loading="lazy" />
</a>Frequently asked questions
- What is Vercel AI SDK?
- Vercel AI SDK — Vercel's free, open-source TypeScript toolkit for AI apps and agents, with one API across model providers.
- Is Vercel AI SDK free?
- Vercel AI SDK is free to use. There is no paid tier as of the last index update.
- What are the alternatives to Vercel AI SDK?
- The closest alternatives to Vercel AI SDK are LangChain, LlamaIndex.
- What are the downsides of Vercel AI SDK?
- It is a TypeScript toolkit: the GitHub repository asks for Node.js 22+, and neither it nor the docs introduction mentions Python. By default, plain model strings go through Vercel's AI Gateway; calling a provider's API directly takes its separate package, such as @ai-sdk/openai. Capabilities differ by provider: the docs table lists image generation for OpenAI but not for Anthropic, and only tool usage and tool streaming for Cohere. Some parts are new or experimental: Workflows is marked new on the homepage, and Generative UI with RSC is labelled experimental.
- Is the Vercel AI SDK free and open source?
- Yes: the GitHub repository vercel/ai calls the AI SDK a free open-source library, and its LICENSE file applies the Apache License, Version 2.0. You install it from npm with npm install ai.
- What is AI SDK UI?
- AI SDK UI is a set of framework-agnostic hooks for building chatbots and generative user interfaces. The GitHub repository says they can be used in Next.js, React, Svelte and Vue, and you install the package for your framework, such as @ai-sdk/react.
- Which model providers does the Vercel AI SDK support?
- The docs list the Vercel AI Gateway, OpenAI, Anthropic, Google Generative AI, Google Vertex AI, xAI Grok, Azure, Amazon Bedrock, Groq, Mistral, DeepSeek, Cohere, Fireworks, Together.ai, Perplexity and others, each with its own mix of image input, image generation, object generation and tool support.
- Can I use the Vercel AI SDK from Python?
- The docs introduction and the GitHub repository describe a TypeScript toolkit, the repository asks for Node.js 22+, and neither page mentions Python.
- What is the latest version of the AI SDK?
- The documentation at ai-sdk.dev is labelled 'v7 Latest documentation' and includes migration guides.