megachangelog
Feature

Introducing the Vercel AI SDK

Vercel launched an open-source AI SDK for JavaScript and TypeScript that enables developers to build conversational, streaming, and chat interfaces with first-class support for OpenAI, LangChain, and Hugging Face models. The SDK includes React and Svelte hooks for real-time data rendering, integrates with Vercel Functions for instant scaling, and comes with an enhanced playground for comparing models and generating code.

This post is historical. Product names and runtime guidance may have changed. For new projects, use with the Node.js runtime and . Use for request-time routing before a response completes.Note:Vercel FunctionsFluid computeRouting Middleware

Over the past 6 months, AI companies like , , , , , and have launched with and Vercel. Vercel helps accelerate your product development by enabling you to focus on creating value with your AI applications, rather than spending time building and maintaining infrastructure.ScaleJasperPerplexityRunwayLexicaJenniNext.js

Today, we're launching new tools to improve the AI experience on Vercel.

The is an library designed to help developers build conversational, streaming, and chat user interfaces in JavaScript and TypeScript. The SDK supports React/Next.js, Svelte/SvelteKit, with support for Nuxt/Vue coming soon.Vercel AI SDKopen-source

To install the SDK, enter the following command in your terminal:

You can also .view the source code on GitHub

Choosing the right LLM for your application is crucial to building a great experience. Each has unique tradeoffs, and can be tuned in different ways to meet your requirements.

Vercel’s AI SDK embraces interoperability, and includes first-class support for , , and Inference. This means that regardless of your preferred AI model provider, you can leverage the Vercel AI SDK to create cutting-edge streaming UI experiences.OpenAILangChainHugging Face

The Vercel AI SDK includes React and Svelte hooks for data fetching and rendering streaming text responses. These hooks enable real-time, dynamic data representation in your application, offering an immersive and interactive experience to your users.

Building a rich chat or completion interface now just takes a few lines of code thanks to and :useChatuseCompletion

We've also included callbacks for storing completed streaming responses to a database within the same request. This feature allows for efficient data management and streamlines the entire process of handling streaming text responses.

The AI SDK works with Vercel Functions. You can deploy AI applications that scale instantly, stream generated responses, and run efficiently with Fluid compute.

With , you write application code in frameworks like Next.js and SvelteKit using the AI SDK, and Vercel converts this code into .framework-defined infrastructureglobal application infrastructure

In late April, we launched an interactive online prompt playground with 20 open source and cloud LLMs.play.vercel.ai

The playground provides a valuable resource for developers to compare various language model results in real-time, tweak parameters, and quickly generate Next.js, Svelte, and Node.js code.

Today, we’ve added a to the playground so you can simultaneously compare chat models side-by-side. We’ve also added code generation support for the Vercel AI SDK. You can now go from playground to chat app in just a few clicks.new chat interface

We'll be adding more in the coming weeks, as well as new templates built entirely with the AI SDK. Further, as new best practices for building applications emerge, we’ll lift them into the SDK based on your feedback.SDK examplesAI

Read more

  • **Vercel AI SDK: **Easily stream API responses from AI models

  • Explore models from , Hugging Face, and moreChat & Prompt Playground:OpenAI

The Vercel AI SDK

Chat & Prompt Playground

What’s Next?

Built-in LLM Adapters

Streaming First UI Helpers

Stream Helpers and Callbacks

Vercel Functions ready

aisdkstreamingjavascriptnext-jsopen-source

Source: original entry ↗

More from Vercel

Follow Vercel to get its new changes in your feed and email digest.

Announcement2026.10.19

Updates to Hobby and Pro Terms of Service

Vercel is updating Terms of Service for Hobby and Pro customers effective October 19, 2026, clarifying credit policies, managed accounts, auto-renewal practices, and adding statutory cancellation and refund rights for UK and EU consumers, including protections for service changes with negative impact.

termsbillingcreditspolicylegal
Announcement

Mercury 3 now available on AI Gateway

Inception's Mercury 3 model is now available on Vercel's AI Gateway with 50% launch pricing and generation speeds exceeding 1,000 tokens per second. The model enables parallel text refinement with a 1M-token context window, ideal for real-time applications like browser agents and customer support.

ai-gatewaymodelsinferencellmlaunch
Announcement

MiniMax M3.1 Flash now available on AI Gateway for free

MiniMax M3.1 Flash, an open-weight multimodal model with 1M-token context window for coding and agentic work, is now available on Vercel's AI Gateway at no cost through October 20. The model excels at complex agent tasks, coding applications, and cybersecurity work, and can be used through multiple APIs and coding agents.

ai-gatewaymodelscodingagentsapi
See all Vercel changes →