在 CometAPI 中通过 POST /v1/videos 异步生成 Veo3 视频,返回任务 id,并支持针对 8 秒片段的首帧/尾帧引导。
curl --request POST \
--url https://api.cometapi.com/v1/videos \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: multipart/form-data' \
--form 'prompt=A paper kite floats above a field.' \
--form input_reference='@example-file'{
"created_at": 1773297229,
"id": "task_pa9CKKtYlTdxO7IIHOKKhXfjxEu4EQoR",
"model": "veo_3_1-4K",
"object": "video",
"progress": 0,
"seconds": "",
"size": "16x9",
"status": "queued"
}/v1/videos 路由启动一个 Veo 任务。设置 model 时,请从模型页面选择当前可用的 Veo 别名。
input_reference 文件input_referenceinput_reference 文件轮询共享视频端点
veo-3.1-generate-preview 之类的模型名称。CometAPI 保留共享的 /v1/videos 路由,并在请求时从模型页面解析当前可用的 Veo 别名。在 2026-03-12 的实际验证中,使用 veo3-fast 的请求被接受并返回了一个异步任务 id,而响应中的 model 被解析为提供方模型 id,而不是回显所提交的别名。Bearer token authentication. Use your CometAPI key.
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 used by the wrapper. 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.
curl --request POST \
--url https://api.cometapi.com/v1/videos \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: multipart/form-data' \
--form 'prompt=A paper kite floats above a field.' \
--form input_reference='@example-file'{
"created_at": 1773297229,
"id": "task_pa9CKKtYlTdxO7IIHOKKhXfjxEu4EQoR",
"model": "veo_3_1-4K",
"object": "video",
"progress": 0,
"seconds": "",
"size": "16x9",
"status": "queued"
}