v0 API guide
v0.app
Use v0 to generate web apps from prompts, refine them with follow-up messages, inspect source files, and track credit usage.
Actions and inputs
chats streamStart a chat and watch the app generate live.
Inputs prompt, model, privacy
messages send-asyncSend a follow-up prompt to refine an app without waiting for generation to finish.
Inputs chat ID, message
chats filesInspect the generated app's file structure.
Inputs chat ID
spendSummarize credits and tokens from synced messages by chat, day, or model.
Inputs time window, grouping
App chats
- Create
Start a chat in your workspace to generate an app.
Inputs Workspace, initial prompt, optional attachments
- Read
Open a chat to review its messages and generated files.
Inputs Chat ID or URL
- Update
Refine the app in a chat you own or manage with a follow-up prompt.
Inputs Chat ID, requested changes
- Delete
Delete a chat you own or manage without assuming any deployment is removed.
Inputs Chat ID, deletion confirmation