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
What it is
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.
When to use it
Reach for ai when you need to call, serve, run locally, fine-tune or chat with a language model — it's written in TypeScript and fits stacks tagged anthropic, ai, gemini, generative-ai.