vercel/ai
Provider-agnostic TypeScript SDK from Vercel for building AI-powered applications and agents across Next.js, React, Svelte, Vue, and Node.js.

The AI SDK provides a unified API for interacting with multiple LLM providers including OpenAI, Anthropic, and Google Gemini. It offers core functions like generateText and streamText for text generation, with built-in support for AI agents, tool calling, and multi-step workflows. The library is designed for TypeScript/JavaScript developers building AI features in web applications and supports major UI frameworks and runtimes.