Overview
Two APIs for AI-powered development - choose the one that fits your needs
Model API
OpenAI Compatible
Direct AI model access for generating React components and Next.js apps.
- • Framework-aware code generation
- • Works with existing OpenAI tools
- • Fast streaming responses
- • Text + image inputs
Platform API
Full Stack
Complete development infrastructure for building dev tools and platforms.
- • Chat & conversation management
- • Code parsing & file generation
- • Browser app execution
- • Project & deployment tools
Quick Setup
Both APIs require an API key from v0.dev settings and a Premium or Team plan.
Add your API key to .env
:
Model API: Use with AI SDK → pnpm add ai @ai-sdk/vercel
Platform API: Use v0 SDK → pnpm add v0-sdk