CometAPI 封装器
异步视频生成
通过 CometAPI 中的 POST /v1/videos 异步生成 Veo3 视频,返回任务 id,并支持为 8 秒片段提供首帧/尾帧引导。
POST
Create a Veo video job
使用本页通过共享的 CometAPIDocumentation Index
Fetch the complete documentation index at: https://apidoc.cometapi.com/llms.txt
Use this file to discover all available pages before exploring further.
/v1/videos 路由启动一个 Veo 任务。设置 model 时,请从模型页面选择一个当前可用的 Veo 别名。
选择请求模式
- 文本生成视频:不发送
input_reference文件 - 图片生成视频:发送一个
input_reference - 首帧和尾帧引导:按顺序发送两个
input_reference文件
任务流程
轮询共享视频端点
使用 Veo3 Retrieve 跟踪异步任务,直到其进入终态。
别名解析
响应中的model 字段可能显示解析后的后端模型 id,而不是你提交的别名。请使用模型页面查找当前可用的 Veo 别名。授权
Bearer token authentication. Use your CometAPI key.
请求体
multipart/form-data
Text prompt for the video job.
示例:
"A paper kite floats above a field."
CometAPI Veo alias. Use a current Veo alias from the Models page. The response may resolve this alias to a provider model id.
示例:
"veo3-fast"
Orientation hint. Use a landscape-like value such as 16x9 or a portrait-like value such as 9x16.
示例:
"16x9"
Optional image input. Send one file for image-to-video or two ordered files for first-frame and last-frame guidance.