提交 Gemini Omni 1.2 Flash 视频编辑 任务
curl --request POST \
--url https://api.vidgo.ai/api/generate/submit \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data @- <<EOF
{
"model": "google/gemini-omni-1.2-flash/video-edit",
"input": {
"prompt": "Relight the bright midday turquoise cove into a glowing rose-gold sunset with warm amber and violet reflections shimmering across the gentle water ripples and soft golden rim light catching the sea otter's wet fur. Preserve the floating sea otter's exact motion, shell tapping, kelp movement, and camera framing. No text, no logos, no watermarks.",
"video_url": "https://cdn.vidgo.ai/apis/models/google/gemini-omni-1.2-flash/text-to-video/v1/01/output.mp4",
"resolution": "720p"
}
}
EOFimport requests
url = "https://api.vidgo.ai/api/generate/submit"
payload = {
"model": "google/gemini-omni-1.2-flash/video-edit",
"input": {
"prompt": "Relight the bright midday turquoise cove into a glowing rose-gold sunset with warm amber and violet reflections shimmering across the gentle water ripples and soft golden rim light catching the sea otter's wet fur. Preserve the floating sea otter's exact motion, shell tapping, kelp movement, and camera framing. No text, no logos, no watermarks.",
"video_url": "https://cdn.vidgo.ai/apis/models/google/gemini-omni-1.2-flash/text-to-video/v1/01/output.mp4",
"resolution": "720p"
}
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
model: 'google/gemini-omni-1.2-flash/video-edit',
input: {
prompt: 'Relight the bright midday turquoise cove into a glowing rose-gold sunset with warm amber and violet reflections shimmering across the gentle water ripples and soft golden rim light catching the sea otter\'s wet fur. Preserve the floating sea otter\'s exact motion, shell tapping, kelp movement, and camera framing. No text, no logos, no watermarks.',
video_url: 'https://cdn.vidgo.ai/apis/models/google/gemini-omni-1.2-flash/text-to-video/v1/01/output.mp4',
resolution: '720p'
}
})
};
fetch('https://api.vidgo.ai/api/generate/submit', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.vidgo.ai/api/generate/submit",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'model' => 'google/gemini-omni-1.2-flash/video-edit',
'input' => [
'prompt' => 'Relight the bright midday turquoise cove into a glowing rose-gold sunset with warm amber and violet reflections shimmering across the gentle water ripples and soft golden rim light catching the sea otter\'s wet fur. Preserve the floating sea otter\'s exact motion, shell tapping, kelp movement, and camera framing. No text, no logos, no watermarks.',
'video_url' => 'https://cdn.vidgo.ai/apis/models/google/gemini-omni-1.2-flash/text-to-video/v1/01/output.mp4',
'resolution' => '720p'
]
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.vidgo.ai/api/generate/submit"
payload := strings.NewReader("{\n \"model\": \"google/gemini-omni-1.2-flash/video-edit\",\n \"input\": {\n \"prompt\": \"Relight the bright midday turquoise cove into a glowing rose-gold sunset with warm amber and violet reflections shimmering across the gentle water ripples and soft golden rim light catching the sea otter's wet fur. Preserve the floating sea otter's exact motion, shell tapping, kelp movement, and camera framing. No text, no logos, no watermarks.\",\n \"video_url\": \"https://cdn.vidgo.ai/apis/models/google/gemini-omni-1.2-flash/text-to-video/v1/01/output.mp4\",\n \"resolution\": \"720p\"\n }\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://api.vidgo.ai/api/generate/submit")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"model\": \"google/gemini-omni-1.2-flash/video-edit\",\n \"input\": {\n \"prompt\": \"Relight the bright midday turquoise cove into a glowing rose-gold sunset with warm amber and violet reflections shimmering across the gentle water ripples and soft golden rim light catching the sea otter's wet fur. Preserve the floating sea otter's exact motion, shell tapping, kelp movement, and camera framing. No text, no logos, no watermarks.\",\n \"video_url\": \"https://cdn.vidgo.ai/apis/models/google/gemini-omni-1.2-flash/text-to-video/v1/01/output.mp4\",\n \"resolution\": \"720p\"\n }\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.vidgo.ai/api/generate/submit")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"model\": \"google/gemini-omni-1.2-flash/video-edit\",\n \"input\": {\n \"prompt\": \"Relight the bright midday turquoise cove into a glowing rose-gold sunset with warm amber and violet reflections shimmering across the gentle water ripples and soft golden rim light catching the sea otter's wet fur. Preserve the floating sea otter's exact motion, shell tapping, kelp movement, and camera framing. No text, no logos, no watermarks.\",\n \"video_url\": \"https://cdn.vidgo.ai/apis/models/google/gemini-omni-1.2-flash/text-to-video/v1/01/output.mp4\",\n \"resolution\": \"720p\"\n }\n}"
response = http.request(request)
puts response.read_body{
"code": 200,
"data": {
"task_id": "WLWLZZOY6LLZ5ZC4",
"status": "not_started",
"created_time": "2026-11-25T11:19:12"
}
}{
"detail": "video_url is required for video-edit"
}{
"detail": "video_url is required for video-edit"
}Google
Gemini Omni 1.2 Flash 视频编辑
Gemini Omni 1.2 Flash 视频编辑 API 按文字指令编辑最长 15 秒的源视频,输出 360p 至 4K。
POST
/
api
/
generate
/
submit
提交 Gemini Omni 1.2 Flash 视频编辑 任务
curl --request POST \
--url https://api.vidgo.ai/api/generate/submit \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data @- <<EOF
{
"model": "google/gemini-omni-1.2-flash/video-edit",
"input": {
"prompt": "Relight the bright midday turquoise cove into a glowing rose-gold sunset with warm amber and violet reflections shimmering across the gentle water ripples and soft golden rim light catching the sea otter's wet fur. Preserve the floating sea otter's exact motion, shell tapping, kelp movement, and camera framing. No text, no logos, no watermarks.",
"video_url": "https://cdn.vidgo.ai/apis/models/google/gemini-omni-1.2-flash/text-to-video/v1/01/output.mp4",
"resolution": "720p"
}
}
EOFimport requests
url = "https://api.vidgo.ai/api/generate/submit"
payload = {
"model": "google/gemini-omni-1.2-flash/video-edit",
"input": {
"prompt": "Relight the bright midday turquoise cove into a glowing rose-gold sunset with warm amber and violet reflections shimmering across the gentle water ripples and soft golden rim light catching the sea otter's wet fur. Preserve the floating sea otter's exact motion, shell tapping, kelp movement, and camera framing. No text, no logos, no watermarks.",
"video_url": "https://cdn.vidgo.ai/apis/models/google/gemini-omni-1.2-flash/text-to-video/v1/01/output.mp4",
"resolution": "720p"
}
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
model: 'google/gemini-omni-1.2-flash/video-edit',
input: {
prompt: 'Relight the bright midday turquoise cove into a glowing rose-gold sunset with warm amber and violet reflections shimmering across the gentle water ripples and soft golden rim light catching the sea otter\'s wet fur. Preserve the floating sea otter\'s exact motion, shell tapping, kelp movement, and camera framing. No text, no logos, no watermarks.',
video_url: 'https://cdn.vidgo.ai/apis/models/google/gemini-omni-1.2-flash/text-to-video/v1/01/output.mp4',
resolution: '720p'
}
})
};
fetch('https://api.vidgo.ai/api/generate/submit', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.vidgo.ai/api/generate/submit",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'model' => 'google/gemini-omni-1.2-flash/video-edit',
'input' => [
'prompt' => 'Relight the bright midday turquoise cove into a glowing rose-gold sunset with warm amber and violet reflections shimmering across the gentle water ripples and soft golden rim light catching the sea otter\'s wet fur. Preserve the floating sea otter\'s exact motion, shell tapping, kelp movement, and camera framing. No text, no logos, no watermarks.',
'video_url' => 'https://cdn.vidgo.ai/apis/models/google/gemini-omni-1.2-flash/text-to-video/v1/01/output.mp4',
'resolution' => '720p'
]
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.vidgo.ai/api/generate/submit"
payload := strings.NewReader("{\n \"model\": \"google/gemini-omni-1.2-flash/video-edit\",\n \"input\": {\n \"prompt\": \"Relight the bright midday turquoise cove into a glowing rose-gold sunset with warm amber and violet reflections shimmering across the gentle water ripples and soft golden rim light catching the sea otter's wet fur. Preserve the floating sea otter's exact motion, shell tapping, kelp movement, and camera framing. No text, no logos, no watermarks.\",\n \"video_url\": \"https://cdn.vidgo.ai/apis/models/google/gemini-omni-1.2-flash/text-to-video/v1/01/output.mp4\",\n \"resolution\": \"720p\"\n }\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://api.vidgo.ai/api/generate/submit")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"model\": \"google/gemini-omni-1.2-flash/video-edit\",\n \"input\": {\n \"prompt\": \"Relight the bright midday turquoise cove into a glowing rose-gold sunset with warm amber and violet reflections shimmering across the gentle water ripples and soft golden rim light catching the sea otter's wet fur. Preserve the floating sea otter's exact motion, shell tapping, kelp movement, and camera framing. No text, no logos, no watermarks.\",\n \"video_url\": \"https://cdn.vidgo.ai/apis/models/google/gemini-omni-1.2-flash/text-to-video/v1/01/output.mp4\",\n \"resolution\": \"720p\"\n }\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.vidgo.ai/api/generate/submit")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"model\": \"google/gemini-omni-1.2-flash/video-edit\",\n \"input\": {\n \"prompt\": \"Relight the bright midday turquoise cove into a glowing rose-gold sunset with warm amber and violet reflections shimmering across the gentle water ripples and soft golden rim light catching the sea otter's wet fur. Preserve the floating sea otter's exact motion, shell tapping, kelp movement, and camera framing. No text, no logos, no watermarks.\",\n \"video_url\": \"https://cdn.vidgo.ai/apis/models/google/gemini-omni-1.2-flash/text-to-video/v1/01/output.mp4\",\n \"resolution\": \"720p\"\n }\n}"
response = http.request(request)
puts response.read_body{
"code": 200,
"data": {
"task_id": "WLWLZZOY6LLZ5ZC4",
"status": "not_started",
"created_time": "2026-11-25T11:19:12"
}
}{
"detail": "video_url is required for video-edit"
}{
"detail": "video_url is required for video-edit"
}- 提交后会返回
task_id。如果提供了callback_url,当任务状态变为finished或failed时,系统会向callback_url发送 POST 请求。 - 无论是否提供
callback_url,都可以通过统一的查询任务状态接口获取结果。
360p 到 4k。
Gemini Omni 1.2 Flash 属于 Google 的 Gemini Omni 视频模型系列。Vidgo 提供四个模型 ID:文生视频、图生视频、参考生视频和视频编辑。
模型
- google/gemini-omni-1.2-flash/video-edit — Gemini Omni 1.2 Flash 视频编辑,源视频最长 15 秒,360p 至 4K。
功能
- 三个字段:
prompt、video_url和resolution。 - 输出时长和构图跟随源视频。
- 四档分辨率:
360p、720p、1080p、4k。
必填参数
prompt(string):编辑指令,去除首尾空白后 1–20,000 个字符。video_url(string):源视频的公开 HTTP(S) URL,最长 15 秒、最大 100 MB。
可选参数
resolution(string):360p、720p、1080p或4k。默认720p。
时长
编辑后的视频与源视频时长相同。输出
任务完成后,查询任务状态接口和回调内容的files 数组中返回一个 MP4 视频。
示例
- 重新布光:把正午明亮的海湾改为玫瑰金色的日落,海獭的动作和构图保持不变,
720p(结果)。
注意事项
- 源视频在提交时下载并测量时长;最长 15 秒,须包含视频轨。
- 该模型 ID 的
input接收prompt、video_url和resolution,其他字段返回 400。model和callback_url放在请求根级。 - 积分在提交时预扣,等于源视频时长(向上取整到秒)乘以所选
resolution的每秒费率。任务失败全额退还。当前费率见定价页。
请求体
application/json