AI SDK
TypeScript toolkit for streaming, tool calls and agents across model providers.
Bookmark
Bookmarks are kept in your free account, so you can find this page again on any device.
Sign in to bookmarkWhat it is
The AI SDK from Vercel is a TypeScript library with one API for text generation, streaming, structured output and tool calls across many model providers, plus React hooks for chat UIs and agent abstractions.
Best for
TypeScript and Next.js developers building AI features into web apps.
Skills it helps with
Learn AI SDK by doing
- Add human approval to agent actions
Pause risky tool calls, show the exact arguments, resume on approve or reject, then log and test it.
- Build your first agent in TypeScript
Tools that search and read notes, a step limit, a clear stop condition and logged steps.
- Get reliable JSON from an LLM with structured outputs
Describe the output as a schema, let the provider enforce it, validate it with Pydantic AI or the AI SDK, and handle failures.
Related tools
Pydantic AI
Type-safe Python agent framework from the Pydantic team.
Claude Agent SDK
Build agents on the same harness that powers Claude Code.
LangChain
Components and integrations for building LLM applications.
Agent Development Kit (ADK)
Google's code-first framework for building, evaluating and deploying agents.
Microsoft Agent Framework
Microsoft's open-source framework for agents and multi-agent workflows.
OpenAI Agents SDK
Lightweight Python framework for agents, handoffs and guardrails.