Quickstart Guide
Get started with the v0 Platform API in minutes
v0 SDK
The v0 SDK is a TypeScript library that makes it simple to interact with the v0 Platform API.
Installation
Authentication
Get your API key from your v0 account settings and set it as an environment variable:
The SDK automatically uses the V0_API_KEY
environment variable:
Use Case 1: Get a Chat URL for Iframe Embedding
Create a chat and embed it directly in your application:
Use Case 2: Get Generated Files
Create a chat and access the generated code files:
Continue the Conversation
Add follow-up messages to refine the output:
That's it! You now have everything you need to integrate v0's AI-powered code generation into your application.