// api reference
Tools, parameters, and response shapes.
Prompt → UI. Returns chatId, webUrl, files (path + content). Optional chatId to iterate.
promptstringrequiredWhat to generate (e.g. "A pricing table with 3 tiers")
chatIdstringoptionalContinue an existing chat instead of starting new
projectIdstringoptionalAssociate with a project
{
"prompt": "Create a modern pricing table with 3 tiers: Basic, Pro, and Enterprise. Include feature lists and CTA buttons."
}{
"chatId": "chat_abc123",
"webUrl": "https://v0.dev/chat/chat_abc123",
"files": [
{ "path": "pricing-table.tsx", "content": "..." }
]
}Generic {resource, action, params} dispatcher. Deploy, list/get/delete chats, versions, projects, env vars, reports.
On-demand manifest of every resource, action, and parameter. Ask it before invoking an unfamiliar request.
v0.dev/chat/settings/keys# Set your API key export V0_API_KEY="your-key" # Run the MCP server npx v0-mcp-server
Create a component
generateRefine with chatId
generateGet the files
request {chats.get}Go live
request {deployments.create}