# AI SDK

> The AI Toolkit for TypeScript, from the creators of Next.js

Source: https://talira.ai/catalog/ai-sdk-6402bhq1
Every listing: https://talira.ai/catalog.md

- Kind: Open source
- Types: Library, Framework
- Categories: [ai / agents / frameworks](https://talira.ai/categories/ai/agents/frameworks)
- Licence: Apache-2.0[^2]
- Pricing: Free and open source[^1]
- Pricing notes: Free; the Vercel AI Gateway it uses by default is a separate Vercel service.
- Free tier: yes[^1]
- Self-hostable: yes[^1]
- Backed by: [Vercel](https://talira.ai/orgs/vercel.md)
- Funding: Series F[^3]

The AI SDK is Vercel's provider-agnostic TypeScript toolkit for building AI-powered applications and agents. AI SDK Core gives one API for generating text and structured data, streaming and tool calling across model providers (OpenAI, Anthropic, Google and many more), either through provider packages such as `@ai-sdk/openai` or by model string through the Vercel AI Gateway, which it uses by default. Its `ToolLoopAgent` runs agents that call tools in a loop, and AI SDK UI provides framework-agnostic hooks for chatbots and generative user interfaces in [Next.js](https://talira.ai/catalog/next-js-2chrxyc7.md), React, Svelte, Vue and Angular, on Node.js. It's free, open source under Apache-2.0, and published on npm as `ai`.

## Links

- Website: https://ai-sdk.dev/
- GitHub: https://github.com/vercel/ai
- Docs: https://ai-sdk.dev/docs

## Problems it solves

- call OpenAI, Anthropic or Gemini from TypeScript with one API and switch providers easily
- stream LLM responses into a React or Next.js chat UI
- get typed structured JSON output from an LLM in TypeScript
- build a tool-calling agent in TypeScript
- add a chatbot to my Next.js app quickly
- build generative UI that renders components from model output
- a TypeScript alternative to LangChain for LLM apps

## Features

- unified API for text generation, structured data, streaming and tool calls
- provider packages for OpenAI, Anthropic, Google and many more
- model strings through the Vercel AI Gateway by default
- ToolLoopAgent for tool-calling agents
- AI SDK UI hooks for chatbots and generative UI
- works with Next.js, React, Svelte, Vue, Angular and Node.js
- agent skill for coding agents (npx skills add vercel/ai)

## Capabilities

- Has official SDKs: plan not known

## Trust

Overall: 0.37 out of 1.
Signals: backing 0.55, extensibility 0.00.

- backed by Vercel
- funding: Series F

Warnings:

- GitHub activity not fetched yet

## Alternatives

- [Mastra](https://talira.ai/catalog/mastra-2p2exeg9.md): The modern TypeScript framework for AI-powered applications and agents
- [VoltAgent](https://talira.ai/catalog/voltagent-8ydbe4p9.md): Open source TypeScript AI agent framework, with the VoltOps console for observability, evals and deployment
- [LangChain](https://talira.ai/catalog/langchain-x3527dp4.md): A framework for building agents and LLM-powered applications
- [Pydantic AI](https://talira.ai/catalog/pydantic-ai-qty4m7j7.md): How Python does AI: agents, realtime voice, image generation, embeddings, typed end to end
- [Strands Agents](https://talira.ai/catalog/strands-agents-pztm3re2.md): Open source SDK for building and running production AI agents in Python and TypeScript

## Sources

[^1]: https://github.com/vercel/ai/blob/main/README.md (checked 23 Nov 2026)
[^2]: https://github.com/vercel/ai/blob/main/LICENSE (checked 23 Nov 2026)
[^3]: https://vercel.com/blog/series-f (checked 20 Nov 2026)
