AI models
Add AI functionality to your v0 projects by integrating AI models and platforms.
v0 can build AI functionality into your projects by integrating with AI platforms or by using API keys for specific providers. By default, v0 uses the Vercel AI Gateway to connect to various AI models.
Using the Vercel AI Gateway
To use the Vercel AI Gateway, no additional setup is required. v0 is pre-configured to connect to the gateway and access supported AI models.
Marketplace integrations
v0 integrates with AI platforms like Groq, fal, and Deep Infra. You can also connect directly to Grok by xAI.
From the Connect button your sidebar, you'll see supported providers. Click Install to open the Marketplace and accept click-through terms to activate an integration.

APIs
To integrate with third-party AI models such as OpenAI:
- Go to Project Settings → Environment Variables
- Click Add Variable
- Add your key, e.g.
OPENAI_API_KEY, with its value
v0 will now use this variable when prompted to generate AI functionality.
