This is the starter project for the Vercel AI SDK Academy Course, a comprehensive tutorial for building AI-powered applications using the Vercel AI SDK.
The Vercel AI SDK is a free, open-source library for building AI-powered products. Created by Vercel, it enables developers to quickly integrate AI features into their projects.
This 12-hour course is divided into three sections:
- Foundations: Understand LLMs, prompting techniques, and basic AI SDK usage
- Invisible AI: Build seamless AI features like classification and summarization
- Conversational AI: Create interactive chatbots with advanced features
- JavaScript/TypeScript knowledge
- React familiarity
- Node.js v20 or later (LTS recommended)
- pnpm package manager
- Vercel account (free)
git clone https://github.com/vercel/build-an-ai-app-starter-aug-25.git
cd build-an-ai-app-starter-aug-25pnpm installThis project uses Vercel AI Gateway for unified AI model access with built-in reliability, monitoring, and load balancing.
pnpm install -g vercel
vercel linkvercel deploy
vercel env pullThis will create a .env.local file with your VERCEL_OIDC_TOKEN which is valid for 12 hours.
- Go to your Vercel Dashboard
- Navigate to AI Gateway → Integrations
- Add your AI provider API keys (e.g., OpenAI, Anthropic)
- Keys are securely stored and scoped to your Vercel team
# Use Vercel CLI for automatic OIDC token refresh
vercel dev
# Or use standard Next.js dev (manual token refresh required)
pnpm devOpen http://localhost:3000 to see the tutorial navigation page.
This starter includes code for all course lessons:
Run these lessons using the provided npm scripts:
-
Lesson 1: Extraction - Extract structured data from text
pnpm run extraction
-
Lesson 2: Classification - Classify support requests
pnpm run classification
Access these through the web interface at http://localhost:3000:
- Lesson 3: Summarization - Summarize message conversations
- Lesson 4: Extraction (Advanced) - Extract calendar appointments from emails
- Lesson 5: Chatbot - Build an interactive AI chatbot
├── app/
│ ├── (1-extraction)/ # CLI extraction lesson
│ ├── (2-classification)/ # CLI classification lesson
│ ├── (3-summarization)/ # Web summarization lesson
│ ├── (4-extraction)/ # Web extraction lesson
│ ├── (5-chatbot)/ # Web chatbot lesson
│ └── page.tsx # Navigation homepage
├── components/ui/ # Reusable UI components
└── lib/ # Utility functions
Vercel AI Gateway provides:
- Unified API - Switch between AI providers without code changes
- High Reliability - Automatic request retries and failover
- Monitoring - Track usage and spending across providers
- Security - Securely manage API keys at the team level
- Load Balancing - Distribute requests across multiple providers
- Next.js 15 - React framework
- Vercel AI SDK - AI integration library
- Vercel AI Gateway - AI proxy service
- Tailwind CSS v4 - Styling
- shadcn/ui - UI components
- TypeScript - Type safety
- Full Tutorial - Complete the entire AI SDK course
- AI SDK Documentation - Detailed SDK documentation
- Vercel AI Gateway Docs - Gateway documentation
- Vercel AI Playground - Experiment with AI models
The easiest way to deploy your AI application is using the Vercel Platform.