vercel/ai
The AI Toolkit for TypeScript. From the creators of Next.js, the AI SDK is a free open-source library for building AI-powered applications and agents
From the publisher
README & documentation
Source previewRead the project’s overview, installation instructions and usage examples. The original README is the source of truth.
The AI SDK is a provider-agnostic TypeScript toolkit designed to help you build AI-powered applications and agents using popular UI frameworks like Next.js, React, Svelte, Vue, Angular, and runtimes like Node.js. To learn more about how to use the AI SDK, check out our API Reference and Documentation. You will need Node.js 22+ and npm (or another package manager) installed on your local development machine. If you use coding agents such as Claude Code or Cursor, we highly recommend adding the AI SDK skill to your repository: The AI SDK provides a unified API to interact with model providers like OpenAI, Anthropic, Google, and more. By default, the AI SDK uses the Vercel AI Gateway to give you access to all major providers out of the box. Just pass a model string for any supported model: You can also connect to providers directly using their SDK packages: The AI SDK…
Read the full README ↗ · Preview checked 2026-10-27T02:36:19.581Z
Inside the original README — Document outline
- AI SDK
- Installation
- Skill for Coding Agents
- Unified Provider Architecture
- Usage
- Generating Text
- Generating Structured Data
- Agents
- UI Integration
- Agent @/agent/image-generation-agent.ts
- Route (Next.js App Router) @/app/api/chat/route.ts
- UI Component for Tool @/component/image-generation-view.tsx
Headings are captured from the source. Links open the publisher’s document, not a locally hosted copy.
Links from the README
References supplied by the publisher, not independently verified endorsements. Check the destination before downloading files or entering credentials.
Documentation belongs to its respective authors. Reported project/model license: Other. A listing is not a grant of reuse or training rights. Confirm the document’s own terms at the source.
What this repository does
The AI Toolkit for TypeScript. From the creators of Next.js, the AI SDK is a free open-source library for building AI-powered applications and agents
Repository facts
- Owner
- vercel
- Primary language
- TypeScript
- Stars
- 27,642
- Forks
- 5,488
- Open issues + pull requests
- 1,520
- License
- Other
- Archived
- No
- Default branch
- main
- Created
- 2023-05-23T15:04:08.000Z
- Last push
- 2026-10-31T08:07:11.000Z
Topics and intended use
Owner-supplied topics: anthropic, artificial-intelligence, gemini, generative-ai, generative-ui, javascript, language-model, llm, nextjs, openai, react, svelte, typescript, vercel, vue
Review the README for scope, installation, examples and limitations. We do not run repository code or certify it.
Evaluate before installing
Review licensing and dependencies, inspect recent commits and unresolved issues, and test in an isolated environment before production use. Stars and forks alone cannot answer these questions.
Source and freshness
Source: GitHub. Metadata observed 2026-10-31T13:20:02.570Z. Daily imports are snapshots, not real-time monitoring.
Popularity and source listings do not establish security, suitability, licensing rights or benchmark performance.