DeerAPI veo3 逆向异步视频生成接口文档:通过 POST /v1/videos 创建 veo3 系列任务并返回 video_id,适合第一次接 DeerAPI 时使用明确的异步创建与轮询工作流。
curl --request POST \
--url https://api.deerapi.com/v1/videos \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: multipart/form-data' \
--form 'prompt=A whimsical flying elephant soaring over a vibrant candy-colored cityscape at sunset, with rainbow trails behind its wings, playful monkeys riding on its back throwing confetti, in a whimsical animated style like a Pixar movie, camera panning smoothly from ground level to aerial view,' \
--form input_reference='@example-file'{
"id": "<string>",
"object": "<string>",
"created_at": 123,
"status": "<string>",
"completed_at": null,
"error": null,
"expires_at": null,
"model": "<string>",
"progress": 123,
"remixed_from_video_id": null,
"seconds": "<string>",
"size": "<string>"
}POST /v1/videos 会立即返回 video_id。veo3-async 和 veo3-chat 的区别| 维度 | veo3-async | veo3-chat |
|---|---|---|
| 创建入口 | POST /v1/videos | POST /v1/chat/completions |
| 查询方式 | GET /v1/videos/\{video_id\} 轮询 | 流输出或最终 assistant 消息 |
| 入参结构 | multipart/form-data | OpenAI Chat Completions 兼容 JSON |
| 默认推荐对象 | 新接入、服务端任务流 | 已有 OpenAI SDK/chat 客户端 |
| 与官方差异 | 兼容异步任务流,不是 Google 原生 operation | 兼容聊天流,不是 Google 原生 operation |
generate_videos 和长时运行 operation 对象为核心,重点参数包括 aspect_ratio、resolution、reference_images、last_frame,并通过 operations.get 轮询结果。
当前页不是那套原生协议,而是 DeerAPI 的统一异步任务格式,主要差异是:
input_reference,并以重复上传的方式兼容首帧、尾帧等场景。video_id,不是 Google 官方的 operation.name。multipart/form-data 传递图片,统一使用 input_reference:
reference_images 的对象语义,请先在小流量下验证。当前页文档明确保证的是“单参考图”和“首尾帧”这两类最常见兼容路径。
video_id。size 在当前页主要承担横屏、竖屏方向选择的作用,不应把它理解为 Google 官方的精确分辨率契约。Bearer token authentication. Use your DeerAPI key.
用于生成视频的文本提示,描述直接传参横屏、竖屏
"A whimsical flying elephant soaring over a vibrant candy-colored cityscape at sunset, with rainbow trails behind its wings, playful monkeys riding on its back throwing confetti, in a whimsical animated style like a Pixar movie, camera panning smoothly from ground level to aerial view,"
要使用的视频生成模型, 默认为veo3.1
veo3, veo3-fast, veo3-pro, veo3.1, veo3.1-pro "veo3.1"
宽x高,会忽略具体数据 宽>高 为横屏,宽<高为竖屏
"16x9"
参考图文件
Successful Response
curl --request POST \
--url https://api.deerapi.com/v1/videos \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: multipart/form-data' \
--form 'prompt=A whimsical flying elephant soaring over a vibrant candy-colored cityscape at sunset, with rainbow trails behind its wings, playful monkeys riding on its back throwing confetti, in a whimsical animated style like a Pixar movie, camera panning smoothly from ground level to aerial view,' \
--form input_reference='@example-file'{
"id": "<string>",
"object": "<string>",
"created_at": 123,
"status": "<string>",
"completed_at": null,
"error": null,
"expires_at": null,
"model": "<string>",
"progress": 123,
"remixed_from_video_id": null,
"seconds": "<string>",
"size": "<string>"
}