Skip to content

Vercel AI SDK

An open source library for building AI-powered user interfaces.

The Vercel AI SDK is an open-source library designed to help developers build conversational streaming user interfaces in JavaScript and TypeScript. The SDK supports React/Next.js, Svelte/SvelteKit, and Vue/Nuxt as well as Node.js, Serverless, and the Edge Runtime (opens in a new tab).

Templates & Examples

You can also clone or deploy a Vercel AI SDK starter repository to get a head start on your AI journey. For even more examples and starters, see the Vercel AI SDK examples directory on GitHub (opens in a new tab).

Next.js OpenAI Starter

Next.js OpenAI Starter

Starter template for building AI-powered chat with Next.js (opens in a new tab), OpenAI (opens in a new tab), and the Vercel AI SDK (opens in a new tab)

SvelteKit Starter

SvelteKit OpenAI Starter

Starter template for building AI-powered chat with SvelteKit (opens in a new tab), OpenAI (opens in a new tab), and the Vercel AI SDK (opens in a new tab)

Nuxt Starter

Nuxt OpenAI Starter

Starter template for building AI-powered chat with Nuxt (opens in a new tab), OpenAI (opens in a new tab), and the Vercel AI SDK (opens in a new tab)

Next.js Hugging Face Starter

Next.js Hugging Face Starter

Starter template for building AI-powered chat with Next.js (opens in a new tab), Hugging Face (opens in a new tab), and the Vercel AI SDK (opens in a new tab)

Next.js Starter

Next.js LangChain Starter

Starter template for building AI-powered chat app with Next.js (opens in a new tab), LangChain (opens in a new tab), and the Vercel AI SDK (opens in a new tab)

Nuxt Starter

Nuxt LangChain Starter

Starter template for building AI-powered chat app with Nuxt (opens in a new tab), LangChain (opens in a new tab), and the Vercel AI SDK (opens in a new tab)

Integrations

OpenAIOpenAI is an AI research and deployment company. The Vercel AI SDK provides a simple way to use OpenAI in your frontend web applications.Azure OpenAIAzure OpenAI Service offers industry-leading coding and language AI models that you can fine-tune to your specific needs for a variety of use cases.LangChainLangChain is an open source prompt engineering framework for developing applications powered by language models. The Vercel AI SDK provides a simple way to use LangChain in your frontend web applications.MistralMistral is an AI research and deployment company. The Vercel AI SDK provides a simple way to use Mistral models in your frontend web applications.AWS BedrockBedrock is a fully managed service that offers a choice of high-performing foundation models from leading AI companies through AWS. The Vercel AI SDK provides a simple way to use AWS Bedrock models in your frontend web applications.GoogleGoogle Gemini is a state-of-the-art AI model by Google. The Vercel AI SDK provides a simple way to use Google Gemini in your frontend web applications.CohereCohere is an AI platform for enterprise. The Vercel AI SDK provides a simple way to use Cohere's command models in your frontend web applications.AnthropicAnthropic is an AI research and deployment company. The Vercel AI SDK provides a simple way to use Anthropic's Claude models in your frontend web applications.ReplicateReplicate is an on-demand AI model hosting platform. The Vercel AI SDK provides a simple way to use Replicate models in your frontend web applications.Hugging FaceHugging Face is a collaboration and model hosting platform for the machine learning community. The Vercel AI SDK provides a simple way to use Hugging Face models in your frontend web applications.FireworksFireworks is a lightning-fast LLM inference platform. The Vercel AI SDK provides a simple way to use Fireworks.ai's models in your frontend web applications.PerplexityPerplexity AI is an answer engine that combines AI with web search to provide ready-made answers to user questions in natural language. The Vercel AI SDK provides a simple way to use Perplexity's models in your frontend web applications.InkeepInkeep's AI chat service provides answers grounded in your company's documentation, blogs, support tickets, and other sources. The Vercel AI SDK provides a simple way to use Inkeep's RAG service to build a custom support and search copilot.

© 2023 Vercel Inc.