Skip to content

Vercel AI SDK

The Vercel AI SDK, also called AI SDK, is a free open source TypeScript library for building AI-powered applications and agents. It is made by Vercel and the Next.js team and gives one API for text generation, structured output, tool calling and chat interfaces across providers such as OpenAI, Anthropic and Google. The documentation site lists version 7 as the latest major version.

By VercelOpen sourceSince 2023LLM Frameworks

Facts checked on against the sources listed at the end of this page.

Pricing
Open sourceFree plan: The library is free and open source. You pay the model providers you call.
Open source
YesApache-2.0
GitHub stars
27,527
npm downloads a week
34Mup 9% on the week before
Latest release
@ai-sdk/vue@3.…17 hours ago
Releases in 90 days
10about 3 a month

A good fit for

  • TypeScript teams that want to switch between model providers without rewriting code
  • Chat and streaming interfaces in Next.js, React, Svelte or Vue apps
  • Applications that need typed, schema-checked model output
  • Agents with a modest number of tools that run inside an existing web app

Not a good fit for

  • Python projects: the SDK is TypeScript only
  • Long-running, durable agent workflows with state saved between steps: it does not include a hosted workflow engine
  • Teams that want a visual editor or a managed observability product from the same vendor

Vercel AI SDK pricing

The AI SDK is free and open source with no paid tier. Costs come from the model providers you use and from wherever you host your app.

PlanPriceWhat you get
AI SDK$0The full open source library.

Prices in USD, checked on 6 October 2026. Current prices on ai-sdk.dev.

Main features

Unified provider API
One interface for models from OpenAI, Anthropic, Google and other providers.
Text generation
Generate and stream text responses from a model.
Structured output
Generate typed objects that match a schema, with Zod integration.
Tool calling and agents
Give models tools and run them in a loop with the ToolLoopAgent class.
UI hooks
Framework-agnostic hooks for chat and generative interfaces in React, Svelte and Vue.
Framework support
Works with Next.js and other frameworks, and with the Node.js runtime.

About Vercel AI SDK

The AI SDK is a TypeScript toolkit. Its core package, ai, wraps many model providers behind one interface, so code written for one provider can switch to another by changing the model.

It covers text generation, structured data generation with schemas such as Zod, and agents that call tools in a loop. A separate UI layer provides framework-agnostic hooks for chatbots and generative interfaces.

The project is maintained by Vercel and the Next.js team in the vercel/ai repository. It does not need Vercel hosting.

Made by
Vercel
Launched
2023
Based in
San Francisco, California
Free plan
The library is free and open source. You pay the model providers you call.
Available on
TypeScript, Node.js, Next.js, React, Svelte, Vue

Usage and activity

Weekly npm downloads of ai, last 12 months.

010M20M30M40MSepNovJanMarMayJulOct24 September 2025: 2,745,928 downloads a week1 October 2025: 3,488,107 downloads a week8 October 2025: 3,447,067 downloads a week15 October 2025: 3,642,118 downloads a week22 October 2025: 3,945,512 downloads a week29 October 2025: 4,100,307 downloads a week5 November 2025: 4,333,070 downloads a week12 November 2025: 4,744,512 downloads a week19 November 2025: 4,890,942 downloads a week26 November 2025: 5,395,727 downloads a week3 December 2025: 4,912,355 downloads a week10 December 2025: 5,434,940 downloads a week17 December 2025: 5,264,079 downloads a week24 December 2025: 4,303,727 downloads a week31 December 2025: 2,608,728 downloads a week7 January 2026: 4,119,016 downloads a week14 January 2026: 6,048,805 downloads a week21 January 2026: 6,209,415 downloads a week28 January 2026: 6,807,009 downloads a week4 February 2026: 7,177,546 downloads a week11 February 2026: 7,869,913 downloads a week18 February 2026: 7,596,012 downloads a week25 February 2026: 8,547,842 downloads a week4 March 2026: 9,181,021 downloads a week11 March 2026: 10,197,261 downloads a week18 March 2026: 9,987,797 downloads a week25 March 2026: 10,128,618 downloads a week1 April 2026: 10,374,527 downloads a week8 April 2026: 9,947,375 downloads a week15 April 2026: 11,208,385 downloads a week22 April 2026: 11,856,629 downloads a week29 April 2026: 12,213,454 downloads a week6 May 2026: 11,926,851 downloads a week13 May 2026: 13,163,939 downloads a week20 May 2026: 13,520,405 downloads a week27 May 2026: 12,731,853 downloads a week3 June 2026: 14,283,445 downloads a week10 June 2026: 14,477,731 downloads a week17 June 2026: 15,629,909 downloads a week24 June 2026: 15,964,225 downloads a week1 July 2026: 15,301,209 downloads a week8 July 2026: 15,948,602 downloads a week22 July 2026: 18,295,547 downloads a week29 July 2026: 19,158,483 downloads a week5 August 2026: 20,611,790 downloads a week12 August 2026: 20,831,113 downloads a week26 August 2026: 23,227,587 downloads a week2 September 2026: 24,533,669 downloads a week28 September 2026: 31,596,868 downloads a week5 October 2026: 34,364,547 downloads a week

Recent releases

Vercel AI SDK alternatives

All 7 alternatives to Vercel AI SDK, side by side

Getting started

  1. Install the core package.

    npm install ai
  2. Follow the quickstart for your framework in the documentation.

Questions about Vercel AI SDK

Is the Vercel AI SDK free?

Yes. It is a free open source library. You pay only the model providers you call and your own hosting.

Do I need to host on Vercel to use the AI SDK?

No. It is a TypeScript library that runs in Node.js and works with several frameworks, so it does not require Vercel hosting.

What language does the AI SDK use?

TypeScript. It is installed from npm as the ai package.

Which model providers does it support?

The documentation names OpenAI, Anthropic and Google among others, all behind one API.

Vercel AI SDK vs LangGraph: which should I use?

The AI SDK is a TypeScript toolkit for provider access, streaming and chat UIs. LangGraph is a Python and JavaScript framework for stateful, long-running agent graphs.

Sources and links

Work on Vercel AI SDK? Claim this listing. Something wrong or out of date? Suggest a correction. Stats come from the public GitHub and npm APIs and update every day.

Vercel AI SDK: pricing, features and alternatives (2026) | ScratchDB