PopNowAPI Docs
Main content

Gemini Omni 1.2 Flash API reference

Video with sound up to 4K from text, images, references or your own clip

Call Gemini Omni 1.2 Flash from your own code with one PopNow API key. Below are the exact model IDs to send, every input field the model accepts, what each request costs in USD, and a request you can paste into a terminal.

At a glance

Made by
Google
Output
Video
From
$0.027 USD per second of output

Prices are in USD, charged to your PopNow balance. A task reserves the maximum possible charge when accepted and settles actual usage on completion; any remainder is released. Failed tasks are not charged. Call POST /api/v1/jobs/quote for an exact quote before running.

Create Video

google/gemini-omni-1.2-flash/text-to-video

Price

OptionUSD
360p$0.027 per second of output
720p$0.079 per second of output
1080p$0.118 per second of output
4k$0.236 per second of output

Parameters

FieldTypeDefaultAllowedWhat it does
promptRequiredstring—up to 20,000 charactersDescribe the subject, the action, the camera and the sound. Say "in a single continuous shot" if you want no cuts.
aspect_ratioOptionalstring16:916:9, 9:16Output aspect ratio: 16:9 or 9:16.
resolutionOptionalstring720p360p, 720p, 1080p, 4kOutput resolution. 360p and 720p are native; 1080p and 4K are upscaled by Google. Sets the per-second rate.
duration_secondsOptionalinteger83, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15Clip length in whole seconds, from 3 to 15. Billed per second at the rate of the chosen resolution.
seedOptionalinteger—10000 to 99999Optional whole number from 10000 to 99999 for side-by-side comparisons; it does not guarantee identical frames.

Example request

This request runs as it is; any field you leave out uses its default. Put your key in POPNOW_API_KEY first.

POST /api/v1/jobs/createTask
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: $(uuidgen)" \
  -d '{
  "model": "google/gemini-omni-1.2-flash/text-to-video",
  "input": {
    "prompt": "A paper boat drifts down a rain-soaked street at dusk, neon signs reflecting in the water, slow tracking shot at ground level",
    "duration_seconds": 8,
    "resolution": "720p"
  }
}'

The response carries a taskId straight away. Read the result with GET /api/v1/jobs/recordInfo, or add callBackUrl to be notified.

GET /api/v1/jobs/recordInfo
curl "https://api.popnow.ai/api/v1/jobs/recordInfo?taskId=TASK_ID_FROM_CREATE_TASK" \
  -H "Authorization: Bearer $POPNOW_API_KEY"

Image to Video

google/gemini-omni-1.2-flash/image-to-video

Price

OptionUSD
360p$0.027 per second of output
720p$0.079 per second of output
1080p$0.118 per second of output
4k$0.236 per second of output

Parameters

FieldTypeDefaultAllowedWhat it does
promptRequiredstring—up to 20,000 charactersDescribe the motion, the camera and the sound.
image_urlRequiredstring (uri)——Opening frame of the clip.
last_image_urlOptionalstring (uri)——Optional closing frame: the clip moves from the opening frame to this one. With a closing frame the clip can be 3 to 10 seconds long.
aspect_ratioOptionalstring16:916:9, 9:16Output aspect ratio: 16:9 or 9:16.
resolutionOptionalstring720p360p, 720p, 1080p, 4kOutput resolution. 360p and 720p are native; 1080p and 4K are upscaled by Google. Sets the per-second rate.
duration_secondsOptionalinteger83, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15Clip length in whole seconds, from 3 to 15. Billed per second at the rate of the chosen resolution.
seedOptionalinteger—10000 to 99999Optional whole number from 10000 to 99999 for side-by-side comparisons; it does not guarantee identical frames.

Example request

This request runs as it is; any field you leave out uses its default. Put your key in POPNOW_API_KEY first.

The example uses PopNow sample files in image_url. Replace them with your own public HTTPS links, uploads or saved assets.

POST /api/v1/jobs/createTask
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: $(uuidgen)" \
  -d '{
  "model": "google/gemini-omni-1.2-flash/image-to-video",
  "input": {
    "prompt": "He lands softly on the rooftop, laughs and turns toward the camera while the balloons sway in the evening breeze; slow push-in",
    "image_url": "https://media.popnow.ai/influencer/examples/marco.webp",
    "duration_seconds": 8,
    "resolution": "720p"
  }
}'

The response carries a taskId straight away. Read the result with GET /api/v1/jobs/recordInfo, or add callBackUrl to be notified.

GET /api/v1/jobs/recordInfo
curl "https://api.popnow.ai/api/v1/jobs/recordInfo?taskId=TASK_ID_FROM_CREATE_TASK" \
  -H "Authorization: Bearer $POPNOW_API_KEY"

Reference to Video

google/gemini-omni-1.2-flash/reference-to-video

Price

OptionUSD
360p$0.027 per second of output
720p$0.079 per second of output
1080p$0.118 per second of output
4k$0.236 per second of output

Parameters

FieldTypeDefaultAllowedWhat it does
promptRequiredstring—up to 20,000 charactersSay in plain words what each reference is and how to use it, for example "the man in Image 1" or "move like Video 1".
reference_image_urlsOptionalarray<string (uri)>—up to 6 itemsUp to six images of the people, products or places to keep, with up to three per character for two characters.
reference_video_urlsOptionalarray<string (uri)>—up to 3 itemsUp to three reference clips of no more than 3 seconds each for look and motion; any sound in them is ignored. Google lists one clip for outputs of 11 to 15 seconds.
aspect_ratioOptionalstring16:916:9, 9:16Output aspect ratio: 16:9 or 9:16.
resolutionOptionalstring720p360p, 720p, 1080p, 4kOutput resolution. 360p and 720p are native; 1080p and 4K are upscaled by Google. Sets the per-second rate.
duration_secondsOptionalinteger83, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15Clip length in whole seconds, from 3 to 15. Billed per second at the rate of the chosen resolution.
seedOptionalinteger—10000 to 99999Optional whole number from 10000 to 99999 for side-by-side comparisons; it does not guarantee identical frames.

Example request

This request runs as it is; any field you leave out uses its default. Put your key in POPNOW_API_KEY first.

POST /api/v1/jobs/createTask
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: $(uuidgen)" \
  -d '{
  "model": "google/gemini-omni-1.2-flash/reference-to-video",
  "input": {
    "prompt": "The man from the reference image jogs across a sunlit rooftop at golden hour and smiles at the camera; smooth tracking shot",
    "duration_seconds": 8,
    "resolution": "720p"
  }
}'

The response carries a taskId straight away. Read the result with GET /api/v1/jobs/recordInfo, or add callBackUrl to be notified.

GET /api/v1/jobs/recordInfo
curl "https://api.popnow.ai/api/v1/jobs/recordInfo?taskId=TASK_ID_FROM_CREATE_TASK" \
  -H "Authorization: Bearer $POPNOW_API_KEY"

Edit Video

google/gemini-omni-1.2-flash/video-edit

Price

OptionUSD
360p$0.054 per second of output
720p$0.117 per second of output
1080p$0.164 per second of output
4k$0.305 per second of output

Parameters

FieldTypeDefaultAllowedWhat it does
promptRequiredstring—up to 20,000 charactersSay what to change in plain words and end with "Keep everything else the same."
video_urlRequiredstring (uri)——The clip to edit (MP4). Billed per second of the source clip, rounded up, with a 3 second minimum.
resolutionOptionalstring720p360p, 720p, 1080p, 4kOutput resolution. 360p and 720p are native; 1080p and 4K are upscaled by Google. Sets the per-second rate.

Example request

This request runs as it is; any field you leave out uses its default. Put your key in POPNOW_API_KEY first.

The example uses PopNow sample files in video_url. Replace them with your own public HTTPS links, uploads or saved assets.

POST /api/v1/jobs/createTask
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: $(uuidgen)" \
  -d '{
  "model": "google/gemini-omni-1.2-flash/video-edit",
  "input": {
    "prompt": "Recolor the flowers in soft pastel blue; keep the face and the motion unchanged",
    "video_url": "https://media.popnow.ai/effects/flower-bloom-1abd6efb.mp4",
    "resolution": "720p"
  }
}'

The response carries a taskId straight away. Read the result with GET /api/v1/jobs/recordInfo, or add callBackUrl to be notified.

GET /api/v1/jobs/recordInfo
curl "https://api.popnow.ai/api/v1/jobs/recordInfo?taskId=TASK_ID_FROM_CREATE_TASK" \
  -H "Authorization: Bearer $POPNOW_API_KEY"

Next steps

On this page