GitHub RepositoryOpen SourceNOASSERTIONNext.jsTypeScriptDemo AvailableExternal Project

vercel/ai

This is an external open-source GitHub repository imported into the WOCSOL Marketplace for discovery. The original repository owner is the primary creator.

Stars
25.1K
Forks
4.7K
Watchers
25.1K
Open Issues
1.8K
vercel/ai

Repository Details

Repository
vercel/ai
Framework
Next.js
Primary Language
TypeScript
Content Language
English
License
NOASSERTION
Stars
25.1K
Forks
4.7K
Watchers
25.1K
Open Issues
1.8K
Default Branch
main
Last Synced
25 Jun 2026
Repository Status
draft_created

Repository Description

AI Summary

The AI Toolkit for TypeScript. From the creators of Next.js, the AI SDK is a free open-source library for building AI-powered applications and agents

Original Repository Description

The AI Toolkit for TypeScript. From the creators of Next.js, the AI SDK is a free open-source library for building AI-powered applications and agents

README Preview

![hero illustration](https://github.com/vercel/ai/blob/HEAD/assets/hero.gif) # AI SDK The [AI SDK](https://ai-sdk.dev/docs) is a provider-agnostic TypeScript toolkit designed to help you build AI-powered applications and agents using popular UI frameworks like Next.js, React, Svelte, Vue, Angular, and runtimes like Node.js. To learn more about how to use the AI SDK, check out our [API Reference](https://ai-sdk.dev/docs/reference) and [Documentation](https://ai-sdk.dev/docs). ## Installation You will need Node.js 22+ and npm (or another package manager) installed on your local development machine. ```shell npm install ai ``` ## Skill for Coding Agents If you use coding agents such as Claude Code or Cursor, we highly recommend adding the AI SDK skill to your repository: ```shell npx skills add vercel/ai ``` ## Unified Provider Architecture The AI SDK provides a [unified API](https://ai-sdk.dev/docs/foundations/providers-and-models) to interact with model providers like [OpenAI](https://ai-sdk.dev/providers/ai-sdk-providers/openai), [Anthropic](https://ai-sdk.dev/providers/ai-sdk-providers/anthropic), [Google](https://ai-sdk.dev/providers/ai-sdk-providers/google), and [more](https://ai-sdk.dev/providers/ai-sdk-providers). By default, the AI SDK uses the [Vercel AI Gateway](https://vercel.com/docs/ai-gateway) to give you access to all major providers out of the box. Just pass a model string for any supported model: ```ts const result = await generateText({ model: 'anthropic/claude-opus-4.6', // or 'openai/gpt-5.4', 'google/gemini-3-flash', etc. prompt: 'Hello!', }); ``` You can also connect to providers directly using their SDK packages: ```shell npm install @ai-sdk/openai @ai-sdk/anthropic @ai-sdk/google ``` ```ts import { anthropic } from '@ai-sdk/anthropic'; const result

Next.jsTypeScriptNOASSERTIONartificial-intelligencejavascriptlanguage-modelllmopenaireactsveltevercelnextjsvuegenerative-aigenerative-uianthropicgemini

Related Repositories

Product Discussion

Ask questions or discuss this product. New comments are reviewed before publishing.

0 comments

Loading comments...

Explore

WOCSOL services and marketplace

Account

Sign in or create an account to manage downloads, orders, and support.