AI SDK
AI SDK is a provider-agnostic TypeScript toolkit for building AI-powered applications and agents across frameworks such as Next.js, React, Svelte and Vue, with a unified API for calling many model providers.
AI SDK is a provider-agnostic TypeScript toolkit for building AI-powered applications and agents. It targets popular UI frameworks including Next.js, React, Svelte, Vue and Angular, as well as Node.js runtimes, and gives developers functions for generating plain text, structured data, and tool-using agents.
By default it routes model calls through the Vercel AI Gateway, so a single model string can reach providers such as OpenAI, Anthropic and Google without installing their SDKs; each provider's own package can also be installed and used directly instead. A ToolLoopAgent class builds agents around tools such as image generation.
An AI SDK UI module supplies framework-agnostic hooks for building chatbots and generative interfaces in Next.js, React, Svelte and Vue applications.