Gemini Omni Flash 1.1 Edit
Changes a video by instruction.
| Model ID | gemini-omni-flash-1.1-edit |
| Task | edit-video |
| Output | video |
| Family | Gemini Omni |
| Status | Active |
Prices are live, so this page does not show them. GET /v1/models/gemini-omni-flash-1.1-edit returns the published price (price), and POST /v1/quotes returns the binding maximum for one request, with the processor that will run it. You are never charged more than the quoted maximum, and failed work is free. See Pricing and quotes.
Parameters
Section titled “Parameters”Send these in input. Omitted parameters take their default; unknown parameters are refused with 422 parameter_unknown. The same schema is input_schema in GET /v1/models/gemini-omni-flash-1.1-edit.
| Name | Type | Default | Allowed | Required | Description |
|---|---|---|---|---|---|
prompt |
string | 1 to 2500 characters | Yes | Describe what to change and what to keep. The edit keeps the source length. | |
resolution |
string | 720p |
360p, 720p, 1080p, 4k |
No | Output resolution. 360p is a quick draft; 1080p and 4K are upscaled by the model. Higher resolutions cost more. |
keep_source_sound |
boolean | true |
No | Copy the source clip’s sound onto the edit, exactly as it was. Off uses the sound Gemini Omni makes for the edit. |
Media inputs
Section titled “Media inputs”Each media input takes an asset ID (asset_…), a generation ID (gen_…, its first output), a public HTTPS URL or a small data: URI. URLs and data URIs are imported into the project first; see Uploading media.
| Name | Accepts | How many | Required | Notes |
|---|---|---|---|---|
source |
video | 1 | Yes |
Restrictions
Section titled “Restrictions”- A video Gemini Omni made for you through Google in the last 54 days is edited from Google’s stored copy. In the United Kingdom only those videos can be edited: Google does not offer Gemini edits of uploaded videos there.
Example
Section titled “Example”Price the request first. A quote is free and starts nothing:
curl https://api.halationlab.ai/v1/quotes \ -H "Authorization: Bearer $HALATIONLAB_API_KEY" \ -H "Idempotency-Key: $(uuidgen)" \ -H "Content-Type: application/json" \ -d @- <<'JSON'{ "model": "gemini-omni-flash-1.1-edit", "input": { "prompt": "Make the background a deep blue night sky", "source": "https://docs.halationlab.ai/media/sample-video.mp4" }}JSONThen start it, paying at most MAX_COST tokens. If the price is higher, nothing starts and the 402 max_cost_exceeded answer carries the quote:
MAX_COST=${MAX_COST:?Set MAX_COST to the most you will pay, in tokens}curl https://api.halationlab.ai/v1/generations \ -H "Authorization: Bearer $HALATIONLAB_API_KEY" \ -H "Idempotency-Key: $(uuidgen)" \ -H "Prefer: wait=60" \ -H "Content-Type: application/json" \ -d @- <<JSON{ "model": "gemini-omni-flash-1.1-edit", "input": { "prompt": "Make the background a deep blue night sky", "source": "https://docs.halationlab.ai/media/sample-video.mp4" }, "max_cost": $MAX_COST}JSONThe media URLs point at small sample files on this site. Replace them with your own asset IDs, generation IDs or URLs.