Gemini Omni Flash Video Edit
- The Gemini Omni Flash (gemini-omni-flash-video-edit) model supports video editing mode, producing an edited video from an input video and a text prompt
- Video input: Provided via
video_urls; only 1 video is supported, and the input video must not exceed 10 seconds - Editing instructions: Describe the desired editing effect via
prompt(e.g. adjust lighting, change style, etc.) - Native audio: The model automatically generates synchronized audio for the video, no extra parameters required
- Parameter constraints:
durationandaspect_ratioare not supported in video editing mode; the output follows the input video - Negative description: Write it directly into
prompt(e.g.No dialogue); this model does not provide a separate negative prompt parameter - Asynchronous processing mode; use the returned task ID to query the result
- The generated video link is valid for 24 hours, please save it promptly
Authorizations
##All endpoints require authentication using a Bearer Token##
Get your API Key:
Visit the API Key management page to obtain your API Key
Add it to the request header:
Authorization: Bearer YOUR_API_KEYBody
Model name, fixed to gemini-omni-flash-video-edit
gemini-omni-flash-video-edit "gemini-omni-flash-video-edit"
Text prompt for video editing, describing the desired editing effect, supports both English and Chinese
Usage tips:
- Describe the elements to change and the parts to keep unchanged (e.g. "make the lighting warmer and keep everything else unchanged")
- Write negative requirements directly into the prompt (e.g.
No dialogue,no text on screen); this model does not provide a separate negative prompt parameter
"Make the lighting in the scene warmer and keep everything else unchanged"
Array of videos to edit; only 1 is supported
Input requirements:
- Currently only HTTP/HTTPS video URLs are supported
- Format: mp4
- Duration: no more than
10seconds
1 element["https://example.com/source.mp4"]HTTPS callback URL to notify when the task completes
Callback timing:
- Triggered when the task completes (completed), fails (failed), or is cancelled (cancelled)
- Sent after billing is confirmed
Security restrictions:
- HTTPS protocol only
- Callbacks to internal IP addresses are forbidden (127.0.0.1, 10.x.x.x, 172.16-31.x.x, 192.168.x.x, etc.)
- URL length must not exceed
2048characters
Callback mechanism:
- Timeout:
10seconds - Up to
3retries on failure (retried1s /2s /4s after each failure respectively) - The callback body format matches the response of the task query endpoint
- A 2xx status code from the callback URL is treated as success; other status codes trigger a retry
"https://your-domain.com/webhooks/video-task-completed"
Response
Video task created successfully
Task creation timestamp
1757169743
Task ID
"task-unified-1757169743-7cvnl5zw"
The model name actually used
"gemini-omni-flash-video-edit"
The specific type of the task
video.generation.task Task progress percentage (0-100)
0 <= x <= 1000
Task status
pending, processing, completed, failed "pending"
Detailed video task information
The output type of the task
text, image, audio, video "video"
Usage and billing information