Vercel 发布 v0 API,实现无头应用构建
原标题:Vercel Launches v0 API for Headless App Building
AI 摘要
Vercel 正式发布了 v0 API 的通用版本,提供对其 AI 驱动的应用构建代理的程序化访问。开发者可以通过 API 发送提示,让 v0 生成和修改应用文件,在 Vercel Sandbox 中运行应用,并获得可嵌入的预览 URL。该 API 支持同步、异步和流式请求,并支持从 GitHub 仓库、ZIP 归档或文件集创建应用,还可连接 MCP 服务器或加载技能。这一定位使 v0 区别于 Lovable 和 Bolt 等交互式工具,将应用构建代理作为基础设施暴露给开发者,社区反应积极。
正文节选
Vercel has made the v0 API generally available, providing programmatic access to its AI-powered application-building agent. Developers can send prompts through the API, have v0 generate and modify application files, run the resulting app in a Vercel Sandbox, and receive a preview URL that can be embedded into their own interfaces. The API organizes each application around a chat that maintains the app's current state. Developers can send follow-up messages using the same chat ID, allowing v0 to