Vercel AI SDK

sdk.vercel.ai
Developer Tools

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

llms.txt

AI SDK

The AI SDK is a provider-agnostic TypeScript toolkit for building AI-powered applications and agents with React, Next.js, Vue, Svelte, Node.js, and other JavaScript runtimes.

Use this page to find current AI SDK documentation. Prefer search results and targeted Markdown pages over loading the full documentation bundle.

Web Access

If you can fetch URLs, search the docs first:

Examples:

The search endpoint returns JSON with documentation URLs. Fetch the returned URLs with .md appended to get Markdown content.

Local Coding Agents

If you are working inside a local coding project with filesystem access, install the AI SDK skill first:

npx skills add vercel/ai

Then follow the skill instructions before changing code.

Common Starting Points

  • Getting Started: Installation and first usage.
  • Navigating the Library: How the AI SDK packages fit together.
  • AI SDK Core: Core model calls like generateText, streamText, structured output, tools, embeddings, and providers.
  • AI SDK UI: Framework-agnostic hooks for chatbots and generative UIs.
  • Agents: Building agents with ToolLoopAgent and related APIs.
  • AI Gateway: Default provider access through Vercel AI Gateway.
  • Providers: Supported model providers.
  • Reference: API reference.
  • Sitemap: Full documentation index.

Full Documentation

  • llms-full.txt: A concatenated Markdown copy of the AI SDK documentation for models with large context windows.
Related

Meet the modern standard for public facing documentation. Beautiful out of the box, easy to maintain, and optimized for user engagement.

/llms.txt
5,436 tokens
/llms-full.txt
181,290 tokens
Developer Tools

Web development for the rest of us.

/llms.txt
602 tokens
/llms-full.txt
453,623 tokens
Developer Tools

Search through billions of items for similar matches to any object, in milliseconds. It’s the next generation of search, an API call away.

/llms.txt
15,715 tokens
/llms-full.txt
588,629 tokens
Developer Tools

Build and deploy reliable background jobs with no timeouts and no infrastructure to manage.

/llms.txt
12,202 tokens
/llms-full.txt
387,586 tokens
Developer Tools

Get the simple developer experience of SQLite in production, and scale your multi-tenant backend with unlimited databases.

/llms.txt
10,006 tokens
/llms-full.txt
163,317 tokens
Developer Tools

Upstash is a serverless data platform providing low latency and high scalability for real-time applications.

/llms.txt
52,307 tokens
/llms-full.txt
1,200,134 tokens
Developer Tools

One-click deployments built for teams, tuned for Laravel, loaded with tools and goodies you're going to love.

/llms.txt
565 tokens
/llms-full.txt
11,330 tokens
Developer Tools

Build, test, and send transactional emails at scale.

/llms.txt
9,628 tokens
/llms-full.txt
305,384 tokens
Developer Tools