Google Gemini Omni 1.1 Flash Video Edit API Documentation
Playground
Try it on WaveSpeedAI!Gemini Omni 1.1 Flash Video Edit applies natural-language edits to existing videos, supporting output resolutions from 360P to 4K for prompt-guided video modification, scene refinements, creative edits, marketing content, and production workflows. Ready-to-use REST inference API, best performance, no coldstarts, affordable pricing.
Features
Gemini Omni 1.1 Flash Video Edit applies natural-language changes to an existing video while preserving its visual context. Use it to edit subjects, style, scene details, motion, lighting, or camera treatment, then choose a fast preview tier or a higher-resolution delivery tier.
Why Choose This?
-
Prompt-guided video editing
Describe the desired change in natural language instead of building a manual editing workflow. -
Context-aware transformation
Use the source clip as visual context for subject, scene, motion, and composition. -
Fast preview workflow
Generate360ppreviews when comparing edit directions or testing prompts. -
Flexible resolution options
Choose360p,720p,1080p, or4kdepending on speed, cost, and output quality needs. -
High-resolution delivery
Use1080por4kwhen final output quality matters.
Parameters
| Parameter | Required | Description |
|---|---|---|
| video | Yes | Source video URL. Input video is limited to 10 seconds. |
| prompt | Yes | Natural-language edit instructions describing the desired change. |
| resolution | No | Output resolution: 360p, 720p, 1080p, or 4k. Default: 720p. |
How to Use
- Upload the source video — Provide the video you want to edit. The input is limited to
10seconds. - Write your edit prompt — Describe what should change and what should remain consistent.
- Choose resolution — Use
360pfor fast previews,720pfor standard output, or1080p/4kfor higher-quality delivery. - Submit — Generate the edited video.
Pricing
Pricing is based on source video duration and selected resolution.
Source duration is rounded up to the next whole second, with a minimum billed duration of 3 seconds and a maximum billed duration of 10 seconds.
| Resolution | Price per source-video second |
|---|---|
| 360p | $0.03 |
| 720p | $0.10 |
| 1080p | $0.15 |
| 4k | $0.30 |
Example Costs
| Resolution | 3s | 5s | 10s |
|---|---|---|---|
| 360p | $0.09 | $0.15 | $0.30 |
| 720p | $0.30 | $0.50 | $1.00 |
| 1080p | $0.45 | $0.75 | $1.50 |
| 4k | $0.90 | $1.50 | $3.00 |
Best Use Cases
- Video restyling — Change the visual style, mood, lighting, or atmosphere of an existing clip.
- Subject edits — Modify subject appearance, outfit, details, or presentation while keeping scene context.
- Scene refinement — Adjust backgrounds, props, environmental details, or visual tone.
- Creative prototyping — Test different edit directions at
360pbefore generating higher-resolution outputs. - Marketing and social content — Adapt short clips for ads, reels, product visuals, and campaign assets.
- High-resolution finishing — Use
1080por4kfor final delivery when quality matters.
Pro Tips
- Write prompts that clearly describe both what should change and what should remain unchanged.
- Use
360pfor fast iteration before moving to higher resolutions. - Keep edit instructions focused on a specific visual change.
- Mention subject, background, lighting, camera treatment, and style when relevant.
- Use short, clean source clips for more stable edits.
- Avoid asking for too many unrelated changes in one request.
Related Models
- Gemini Omni 1.1 Flash Text-to-Video — Generate videos directly from text prompts with synchronized audio.
- Gemini Omni 1.1 Flash Image-to-Video — Animate a start image into a video with optional last-frame guidance.
- Gemini Omni 1.1 Flash Reference-to-Video — Generate videos using reference media for stronger visual guidance.
Authentication
For authentication details, please refer to the Authentication Guide.
API Endpoints
Submit Task & Query Result
set -euo pipefail
export WAVESPEED_API_KEY="your-api-key"
REQUEST_BODY=$(cat <<'JSON'
{
"video": "https://interactive-examples.mdn.mozilla.net/media/cc0-videos/flower.mp4",
"prompt": "A cinematic ocean wave at sunrise, highly detailed",
"resolution": "720p"
}
JSON
)
# 1. Submit the prediction.
SUBMIT_RESPONSE=$(curl --silent --show-error --fail-with-body \
-X POST "https://api.wavespeed.ai/api/v3/google/gemini-omni-1.1-flash/video-edit" \
-H "Authorization: Bearer ${WAVESPEED_API_KEY}" \
-H "Content-Type: application/json" \
-d "${REQUEST_BODY}")
TASK=$(printf '%s' "${SUBMIT_RESPONSE}" | jq 'if type == "object" and has("data") then .data else . end')
PREDICTION_ID=$(printf '%s' "${TASK}" | jq -r '.id // empty')
if [ -z "${PREDICTION_ID}" ]; then
printf 'Submission response did not contain a prediction id
' >&2
exit 1
fi
RESULT_URL="https://api.wavespeed.ai/api/v3/predictions/${PREDICTION_ID}/result"
# 2. Poll until the prediction finishes.
while true; do
RESPONSE=$(curl --silent --show-error --fail-with-body \
"${RESULT_URL}" \
-H "Authorization: Bearer ${WAVESPEED_API_KEY}")
RESULT=$(printf '%s' "${RESPONSE}" | jq 'if type == "object" and has("data") then .data else . end')
STATUS=$(printf '%s' "${RESULT}" | jq -r '.status // empty')
case "${STATUS}" in
completed) printf '%s\n' "${RESULT}" | jq '.outputs'; break ;;
failed|cancelled|timeout|deleted) printf '%s\n' "${RESULT}" | jq . >&2; exit 1 ;;
*) sleep 2 ;;
esac
doneParameters
Task Submission Parameters
Request Parameters
| Parameter | Type | Required | Default | Range | Description |
|---|---|---|---|---|---|
| video | string | Yes | - | Source video URL to edit. | |
| prompt | string | Yes | - | Instruction describing how to edit the source video. | |
| resolution | string | No | 720p | 360p, 720p, 1080p, 4k | Resolution of the edited video. |
Response Parameters
| Parameter | Type | Description |
|---|---|---|
| code | integer | HTTP status code (e.g., 200 for success) |
| message | string | Status message (e.g., “success”) |
| data.id | string | Unique identifier for the prediction, Task Id |
| data.model | string | Model ID used for the prediction |
| data.outputs | array | Output values, usually URL strings; some models return text strings or structured result objects (empty when status is not completed) |
| data.urls | object | Object containing related API endpoints |
| data.status | string | Task status. completed is successful; failed, cancelled, timeout, and deleted are failure terminal statuses. |
| data.created_at | string | ISO timestamp of when the request was created (e.g., “2023-04-01T12:34:56.789Z”) |
| data.error | string | Error message (empty if no error occurred) |
| data.timings | object | Object containing timing details |
| data.timings.inference | integer | Inference time in milliseconds |
Result Request Parameters
| Parameter | Type | Required | Default | Description |
|---|---|---|---|---|
| id | string | Yes | - | Task ID |
Result Response Parameters
| Parameter | Type | Description |
|---|---|---|
| code | integer | HTTP status code (e.g., 200 for success) |
| message | string | Status message (e.g., “success”) |
| data | object | The prediction data object containing all details |
| data.id | string | Unique identifier for the prediction |
| data.model | string | Model ID used for the prediction |
| data.outputs | array<string | object> | Array of generated outputs (empty when status is not completed). Items are usually URL strings, but may be text strings or structured result objects, depending on the model. |
| data.urls | object | Object containing related API endpoints |
| data.status | string | Status: completed is successful; failed, cancelled, timeout, and deleted are failure terminal statuses |
| data.created_at | string | ISO timestamp of when the request was created |
| data.error | string | Error message (empty if no error occurred) |
| data.timings | object | Object containing timing details |
| data.timings.inference | integer | Inference time in milliseconds |