# Vercel AI SDK

> A free, open-source TypeScript toolkit from the creators of Next.js for building AI-powered applications with a unified provider API and streaming support.

The Vercel AI SDK is a free, open-source library for TypeScript developers that simplifies building AI-powered products. Created by the team behind Next.js, it provides a unified API to work with any major AI provider, streaming responses, generative UI capabilities, and framework-agnostic support. Developers can go from idea to working AI app in minutes, with abstractions that handle the hard parts like stream parsing, tool streaming, multi-turn tool execution, and error handling.

- **Unified Provider API** — *Switch between AI providers like OpenAI, Claude, and Hugging Face by changing a single line of code, eliminating vendor lock-in.*
- **Streaming AI Responses** — *Send AI responses to users instantly without waiting for full completion, improving perceived performance.*
- **Generative UI** — *Create dynamic, AI-powered user interfaces that render components based on model output.*
- **Framework-Agnostic** — *Works seamlessly with React, Next.js, Vue, Nuxt, SvelteKit, and more.*
- **generateObject / generateText** — *Call typed helper functions that return properly structured JSON objects or text from any supported model.*
- **Tool & Agent Support** — *Built-in support for multi-turn tool execution, agentic workflows, and tool streaming.*
- **Tools Registry** — *Browse and integrate pre-built tools directly into your AI applications.*
- **Playground** — *Experiment with models and prompts interactively at ai-sdk.dev/playground before writing code.*
- **Cookbook & Docs** — *Extensive documentation, recipes, and examples to accelerate development.*
- **Open Source** — *Fully open source with an active community; contribute via GitHub issues, PRs, and discussions.*

To get started, install the SDK with `npm i ai`, visit the getting started page, and choose your preferred framework and AI provider. The SDK handles authentication, streaming, and response parsing so you can focus on building features.

## Features
- Unified Provider API
- Streaming AI Responses
- Generative UI
- Framework-agnostic support
- generateObject and generateText helpers
- Multi-turn tool execution
- Tool streaming
- Error handling and recovery
- Tools Registry
- Interactive Playground
- TypeScript-first design
- Open source

## Integrations
OpenAI, Anthropic Claude, Hugging Face, Next.js, React, Vue, Nuxt, SvelteKit, Vercel, AI Gateway

## Platforms
API, DEVELOPER_SDK, WEB

## Pricing
Open Source

## Links
- Website: https://ai-sdk.dev
- Documentation: https://ai-sdk.dev/docs
- Repository: https://github.com/vercel/ai
- EveryDev.ai: https://www.everydev.ai/tools/vercel-ai-sdk
