by Google

4K Video

google/gemini-omni-1.2-flash/video-edit
  • Up to 4K
  • Create Video
  • Image to Video
  • Reference to Video
  • Edit Video

About Gemini Omni 1.2 Flash

Gemini Omni 1.2 Flash is Google's video model with sound. It makes 3 to 15 second clips from text, a first frame with an optional last frame, or up to six reference images and three reference videos, and it can edit a clip you already have. Sizes run from 360p to 4K.

Call it with the model name google/gemini-omni-1.2-flash/video-edit on POST /jobs/createTask, from $0.0576.

Introduction

Gemini Omni 1.2 Flash video-edit begins with footage you already have. Supply video_url, a required prompt and an output resolution. In our tests, changing a gray studio into a moonlit lakeside stage preserved the dancer and movements while replacing the setting.

The edit follows source timing, with footage beyond 10 seconds cut away. In our tests, a 12-second source produced a 10.03-second result. There is no duration or aspect-ratio field for editing.

Key features

  • Apply a written visual change to an existing video rather than generating from a still.
  • Follow source duration, with a 10-second cut for longer footage.
  • Select 360p or 720p direct output, or higher-rate 1080p/4K upscaling by Google.
  • Receive an MP4 result at 24 fps with an AAC audio track.
  • Keep the request focused using Google’s recommendation to preserve everything outside the change.

Request parameters

ParameterRequiredDescription
promptYesDescribe what you want to make.
resolutionNoChoose an available output size. 360p · 720p · 1080p · 4k · Default: 720p
video_urlYesThe clip to work on.

Pricing

Prices are in USD. The API uses a separate USD balance. Website credits cannot be used or transferred to it, and API funds cannot be transferred to website credits. When a task is accepted, we reserve the maximum quoted amount from your API balance. On completion, we charge for actual usage, never more than the hold, and release the remainder. If the task fails, the hold is released.

OptionUSD per second
resolution 360p$0.0576
resolution 720p$0.1248
resolution 1080p$0.1752
resolution 4K$0.3264

Send the same request body to POST /jobs/quote to see the estimated and maximum USD charge before running. A quote does not run the task or charge your balance.

Use cases

  • Replace a gray rehearsal studio with a moonlit stage beside a lake.
  • Review a misty setting variation while asking to preserve the recorded dance movement.
  • Try a different visual environment for an existing short performance before choosing a version.

Prompt guide & pro tips

  • Begin with a single change, such as “turn the studio into a lakeside stage,” following Google’s guidance on simple edit prompts.
  • Describe a specific visual quality, such as “thin mist on the water,” so the new setting has a clear direction.
  • Use Google’s suggested ending “Keep everything else the same.” to limit the requested revision.
  • Name an element to preserve, such as “retain the original movement,” when reviewing whether the performance carries through.
  • Prepare the intended segment before uploading; for a direction such as “change this scene to moonlight,” content after the first 10 seconds will be cut.

API quick start

Call the Gemini Omni 1.2 Flash API in three steps

  1. Create an API key. Sign in to PopNow and create a key in the API console. Keys start with sk-popnow-. API calls use your separate USD balance.
  2. Send the request. POST /jobs/createTask with model google/gemini-omni-1.2-flash/video-edit and an input object that follows the parameter table. The response returns a task ID straight away.
  3. Get the result. Poll GET /jobs/recordInfo with the task ID, or pass a callBackUrl and we post the result to it. Download the output links when the task succeeds.
# 1. Create the task. Keep the Idempotency-Key if you retry after a network error.
export IDEMPOTENCY_KEY="$(uuidgen)"
curl -X POST https://api.popnow.ai/api/v1/jobs/createTask \
  -H "Authorization: Bearer $POPNOW_API_KEY" \
  -H "Content-Type: application/json" \
  -H "Idempotency-Key: $IDEMPOTENCY_KEY" \
  -d '{
  "model": "google/gemini-omni-1.2-flash/video-edit",
  "input": {
    "prompt": "A slow aerial shot drifting over a misty pine forest at sunrise",
    "video_url": "https://media.popnow.ai/effects/flower-bloom-1abd6efb.mp4",
    "resolution": "720p"
  }
}'

# 2. Copy data.taskId from the response, then poll until state is succeeded, failed, canceled or expired.
TASK_ID="TASK_ID_FROM_RESPONSE"
curl "https://api.popnow.ai/api/v1/jobs/recordInfo?taskId=$TASK_ID" \
  -H "Authorization: Bearer $POPNOW_API_KEY"

Replace the prompt and any links with your own. The API tab has the response, polling and callback reference.

Gemini Omni 1.2 Flash API questions

How much does the Gemini Omni 1.2 Flash API cost?

Gemini Omni 1.2 Flash starts at $0.0576 per second with Edit Video, its cheapest task. Prices by option: 360p $0.0576 per second, 720p $0.1248 per second, 1080p $0.1752 per second, 4K $0.3264 per second. The API uses a separate USD balance. When a task is accepted, we reserve the maximum quoted amount from your API balance. On completion, we charge for actual usage, never more than the hold, and release the remainder. If the task fails, the hold is released.

What are the limits of the Gemini Omni 1.2 Flash · Edit Video API?

Resolutions: 360p · 720p · 1080p · 4K; Prompt length (characters): 20,000; Largest upload: 90 MB. Requests outside these limits are rejected before anything is charged.

More about Gemini Omni 1.2 Flash