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/text-to-video",
"input": {
"prompt": "Sunlit marine documentary shot off a calm turquoise rocky cove: a wild sea otter floats leisurely on its back amid gently swaying golden kelp ribbons, tapping a small clam shell against a flat stone on its chest while clear ripples scatter bright afternoon sunlight across its wet fur. Smooth floating camera at water level, natural fluid physics, crisp 1080p detail. Audio: gentle lapping coastal water and soft shell taps. No text, no logos, no watermarks.",
"duration": 5,
"resolution": "1080p",
"aspect_ratio": "16:9"
}
}
'{
"code": 200,
"data": {
"task_id": "WQP14VSIQH4BAZCP",
"status": "not_started",
"created_time": "2026-11-25T11:17:26"
}
}{
"detail": "prompt is required"
}{
"detail": "prompt is required"
}Google
Gemini Omni 1.2 Flash 文生视频
Gemini Omni 1.2 Flash 文生视频 API 将提示词生成为 3–15 秒的视频,分辨率可选 360p、720p、1080p 或 4K,宽高比 16:9 或 9:16。
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/text-to-video",
"input": {
"prompt": "Sunlit marine documentary shot off a calm turquoise rocky cove: a wild sea otter floats leisurely on its back amid gently swaying golden kelp ribbons, tapping a small clam shell against a flat stone on its chest while clear ripples scatter bright afternoon sunlight across its wet fur. Smooth floating camera at water level, natural fluid physics, crisp 1080p detail. Audio: gentle lapping coastal water and soft shell taps. No text, no logos, no watermarks.",
"duration": 5,
"resolution": "1080p",
"aspect_ratio": "16:9"
}
}
'{
"code": 200,
"data": {
"task_id": "WQP14VSIQH4BAZCP",
"status": "not_started",
"created_time": "2026-11-25T11:17:26"
}
}{
"detail": "prompt is required"
}{
"detail": "prompt is required"
}- 提交后会返回
task_id。如果提供了callback_url,当任务状态变为finished或failed时,系统会向callback_url发送 POST 请求。 - 无论是否提供
callback_url,都可以通过统一的查询任务状态接口获取结果。
360p 适合快速、低成本的草稿,720p、1080p 和 4k 适合成片,支持横屏和竖屏。
Gemini Omni 1.2 Flash 属于 Google 的 Gemini Omni 视频模型系列。Vidgo 提供四个模型 ID:文生视频、图生视频、参考生视频和视频编辑。
模型
- google/gemini-omni-1.2-flash/text-to-video — Gemini Omni 1.2 Flash 文生视频,3–15 秒,360p 至 4K。
功能
- 提示词最多 20,000 个字符。
- 时长可选 3 到 15 秒之间的任意整数秒。
- 四档分辨率:
360p、720p、1080p、4k。 - 横屏(
16:9)或竖屏(9:16)。
必填参数
prompt(string):场景描述,去除首尾空白后 1–20,000 个字符。
可选参数
duration(integer):输出时长,3–15秒。默认8。resolution(string):360p、720p、1080p或4k。默认720p。aspect_ratio(string):16:9或9:16。默认16:9。
分辨率
resolution | 典型用途 |
|---|---|
360p | 快速、低成本测试提示词 |
720p | 默认;社媒短片和草稿 |
1080p | 全高清交付 |
4k | 最高细节,用于最终成片 |
输出
任务完成后,查询任务状态接口和回调内容的files 数组中返回一个 MP4 视频。
示例
注意事项
- 空字符串和空数组视为未提供,使用默认值。
model和callback_url放在请求根级,与input并列。input接收上文列出的字段,其他字段返回 400。- 积分在提交时预扣,等于输出
duration乘以所选resolution的每秒费率。任务失败全额退还。当前费率见定价页。
请求体
application/json