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,991+633 in the last 30 days
npm downloads a week
46Mup 1% on the week before
Latest release
@ai-sdk/vue@3.…3 days 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.

020M40M60MOctDecFebAprJunAugNov18 October 2025: 3,721,337 downloads a week25 October 2025: 3,993,418 downloads a week1 November 2025: 4,198,991 downloads a week8 November 2025: 4,518,061 downloads a week15 November 2025: 4,819,282 downloads a week22 November 2025: 5,076,594 downloads a week29 November 2025: 4,904,484 downloads a week6 December 2025: 5,502,902 downloads a week13 December 2025: 5,272,497 downloads a week20 December 2025: 5,254,840 downloads a week27 December 2025: 3,090,827 downloads a week3 January 2026: 2,784,856 downloads a week10 January 2026: 5,515,775 downloads a week17 January 2026: 6,155,968 downloads a week24 January 2026: 6,349,989 downloads a week31 January 2026: 6,976,434 downloads a week7 February 2026: 7,495,403 downloads a week14 February 2026: 7,863,735 downloads a week21 February 2026: 7,869,758 downloads a week28 February 2026: 8,651,829 downloads a week7 March 2026: 9,711,140 downloads a week14 March 2026: 10,212,016 downloads a week21 March 2026: 9,823,549 downloads a week28 March 2026: 10,379,242 downloads a week4 April 2026: 10,136,442 downloads a week11 April 2026: 10,542,768 downloads a week18 April 2026: 11,461,023 downloads a week25 April 2026: 11,855,830 downloads a week2 May 2026: 12,118,727 downloads a week9 May 2026: 12,508,500 downloads a week16 May 2026: 13,135,442 downloads a week23 May 2026: 13,732,578 downloads a week30 May 2026: 13,006,178 downloads a week6 June 2026: 14,391,336 downloads a week13 June 2026: 15,098,743 downloads a week20 June 2026: 15,498,662 downloads a week27 June 2026: 15,892,744 downloads a week4 July 2026: 15,124,270 downloads a week11 July 2026: 16,795,044 downloads a week18 July 2026: 17,803,943 downloads a week25 July 2026: 18,709,388 downloads a week1 August 2026: 19,729,841 downloads a week8 August 2026: 20,403,276 downloads a week15 August 2026: 21,827,227 downloads a week22 August 2026: 22,242,372 downloads a week29 August 2026: 23,560,904 downloads a week5 September 2026: 25,943,393 downloads a week27 September 2026: 30,382,054 downloads a week4 October 2026: 34,491,532 downloads a week31 October 2026: 42,245,778 downloads a week7 November 2026: 45,312,935 downloads a week14 November 2026: 45,561,041 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