Skip to content
Dashboard

Build your own AI app builder with the v0 Platform API

, Alli Pope

Learn how to build, extend, and automate AI-generated apps with programmatic access to v0’s app generation pipeline

Copy link to headingWhat is the v0 Platform API?

Copy link to headingHow to use the v0 Platform API

pnpm install v0-sdk

.env
V0_API_KEY=your_api_key_here

import { v0 } from "v0-sdk"
export default async function V0Chat() {
// No initialization needed - uses V0_API_KEY automatically
const chat = await v0.chats.create({
message: "Build a todo app with React and TypeScript"
})
// Access the generated files
chat.files?.forEach((file) => {
console.log(`File: ${file.name}`)
console.log(`Content: ${file.content}`)
})
// Use the Demo URL in an iframe
return (
<iframe
src={chat.demo}
width="100%"
height="600">
</iframe>
)
}

Copy link to headingWhat can you build with the Platform API?

ChatPRD generates product requirements, then uses the v0 API to create a live prototype that teams can preview directly in the app’s canvas.

Copy link to headingGet started

Ready to deploy?