curl --request POST \
--url https://api.vidgo.ai/api/generate/submit \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"model": "google/gemini-omni-1.2-flash/image-to-video",
"input": {
"prompt": "Gentle seamless cinematic transition inside the sunlit rehearsal room: faded sepia archival tones gradually bloom into rich natural living color as the violinist draws her bow smoothly, the center accordionist gently compresses the bellows, and the conductor lifts her baton to cue the phrase. Natural daylight through the tall window, faithful preservation of all three musicians and instruments. Audio: warm chamber violin and accordion chord.",
"image_urls": [
"https://cdn.vidgo.ai/apis/models/bytedance/seedream-v5.0-flash/edit/v1/02/input-01.jpg",
"https://cdn.vidgo.ai/apis/models/bytedance/seedream-v5.0-flash/edit/v1/02/output.jpg"
],
"duration": 5,
"resolution": "720p",
"aspect_ratio": "16:9"
}
}
'{
"code": 200,
"data": {
"task_id": "P8Z97PVFRCAVP3A3",
"status": "not_started",
"created_time": "2026-11-25T11:17:28"
}
}{
"detail": "image_urls is required for image-to-video"
}{
"detail": "image_urls is required for image-to-video"
}Google
Gemini Omni 1.2 Flash 图生视频
Gemini Omni 1.2 Flash 图生视频 API 以首帧(可加尾帧)生成 3–15 秒的视频,最高 4K。
POST
/
api
/
generate
/
submit
curl --request POST \
--url https://api.vidgo.ai/api/generate/submit \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"model": "google/gemini-omni-1.2-flash/image-to-video",
"input": {
"prompt": "Gentle seamless cinematic transition inside the sunlit rehearsal room: faded sepia archival tones gradually bloom into rich natural living color as the violinist draws her bow smoothly, the center accordionist gently compresses the bellows, and the conductor lifts her baton to cue the phrase. Natural daylight through the tall window, faithful preservation of all three musicians and instruments. Audio: warm chamber violin and accordion chord.",
"image_urls": [
"https://cdn.vidgo.ai/apis/models/bytedance/seedream-v5.0-flash/edit/v1/02/input-01.jpg",
"https://cdn.vidgo.ai/apis/models/bytedance/seedream-v5.0-flash/edit/v1/02/output.jpg"
],
"duration": 5,
"resolution": "720p",
"aspect_ratio": "16:9"
}
}
'{
"code": 200,
"data": {
"task_id": "P8Z97PVFRCAVP3A3",
"status": "not_started",
"created_time": "2026-11-25T11:17:28"
}
}{
"detail": "image_urls is required for image-to-video"
}{
"detail": "image_urls is required for image-to-video"
}- 提交后会返回
task_id。如果提供了callback_url,当任务状态变为finished或failed时,系统会向callback_url发送 POST 请求。 - 无论是否提供
callback_url,都可以通过统一的查询任务状态接口获取结果。
模型
- google/gemini-omni-1.2-flash/image-to-video — Gemini Omni 1.2 Flash 图生视频,支持首帧或首尾帧,360p 至 4K。
功能
- 通过
image_urls提供首帧,或首帧加尾帧。 - 时长可选 3 到 15 秒之间的任意整数秒(有尾帧时 3 到 10 秒)。
- 四档分辨率:
360p、720p、1080p、4k。 - 横屏(
16:9)或竖屏(9:16)。
输入模式
- 首帧:
image_urls中放一个 URL;duration为 3–15 秒。 - 首尾帧:
image_urls中放两个 URL,先首帧后尾帧;duration为 3–10 秒。
必填参数
prompt(string):动作与场景描述,去除首尾空白后 1–20,000 个字符。image_urls(string[]):1–2 个公开的 HTTP(S) 图片 URL。
可选参数
duration(integer):输出时长,3–15秒(有尾帧时3–10)。默认8。resolution(string):360p、720p、1080p或4k。默认720p。aspect_ratio(string):16:9或9:16。默认16:9。
输出
任务完成后,查询任务状态接口和回调内容的files 数组中返回一个 MP4 视频。
示例
注意事项
- 提供两张图片时,
duration超过 10 返回 400。 - 空字符串和空数组视为未提供,使用默认值。
model和callback_url放在请求根级,与input并列。input接收上文列出的字段,其他字段返回 400。- 积分在提交时预扣,等于输出
duration乘以所选resolution的每秒费率。任务失败全额退还。当前费率见定价页。
请求体
application/json