# Google Gemini Omni Flash 1.2 Edit API

> Gemini Omni Flash 1.2 Edit by Google applies natural-language edits to an existing video of up to 15 seconds, such as swapping objects, backgrounds, lighting, or style, at 360p to 4K output.

Source: https://www.sandbase.ai/models/google/gemini-omni-flash/1.2/edit
API reference: https://www.sandbase.ai/models/google/gemini-omni-flash/1.2/edit#api

## Facts

- Provider: Google
- Type: Video model
- Model ID: `google/gemini-omni-flash/1.2/edit`
- Price: From $0.83 per run
- Capabilities: video to video
- Billing: pay per use from one SandBase balance; no provider account or subscription needed

## Call it

- Unified Run API: `POST https://api.sandbase.ai/v1/run`

```bash
curl -X POST https://api.sandbase.ai/v1/run \
  -H "Authorization: Bearer $SANDBASE_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "model": "google/gemini-omni-flash/1.2/edit",
  "video": "https://static.sandbase.ai/examples/google/gemini-omni-flash/edit/input_video_0.mp4",
  "prompt": "Make this video anime. Keep everything else the same.",
  "resolution": "720p"
}'
```

The response returns a run id; poll `GET https://api.sandbase.ai/v1/run/{id}` until the status is `completed` or `failed`.

## FAQ

### How do I call Google Gemini Omni Flash 1.2 Edit through SandBase?

Create a SandBase API key, then send requests with the model ID "google/gemini-omni-flash/1.2/edit" to Unified Run API (/v1/run) at https://api.sandbase.ai. The request examples on this page show the exact payload.

### Do I need a separate Google account?

No. One SandBase API key and balance gives you access to Google Gemini Omni Flash 1.2 Edit and the other models in the catalog; you do not need to sign up with Google separately.

## README

### Gemini Omni Flash 1.2 Edit

Gemini Omni Flash 1.2 edit: change an existing clip of up to 15 seconds with an instruction, such as swapping a product or background, or changing lighting, weather, or style, while the rest of the scene stays consistent.

#### Fields

| Field | Type | Default | Notes |
|---|---|---|---|
| `prompt` | string, required | — | Up to 20,000 characters. |
| `video` | video URL, required | — | Source clip, up to 15 seconds. |
| `resolution` | `360p` / `720p` / `1080p` / `4k` | `720p` | Sets the per-second rate. |

#### Billing

Billing counts the source and the output: $0.02 per source second plus the output rate ($0.028 at 360p, $0.084 at 720p, $0.126 at 1080p, and $0.252 at 4K) for the same length, with a 3-second minimum on the output. Source length is rounded up to the next whole second. The quote before submission assumes an 8-second source.

| Source clip | 360p | 720p | 1080p | 4k |
|---|---|---|---|---|
| 3s source | $0.14 | $0.31 | $0.44 | $0.82 |
| 8s source | $0.38 | $0.83 | $1.17 | $2.18 |
| 10s source | $0.48 | $1.04 | $1.46 | $2.72 |
| 15s source | $0.72 | $1.56 | $2.19 | $4.08 |

Failed runs are not charged.

#### Prompting

- Lead with the change and say what must stay the same.

#### Limits

- Source clips longer than 15 seconds are rejected.

#### Also on SandBase

Other Gemini Omni Flash 1.2 endpoints: `google/gemini-omni-flash/1.2/text-to-video`, `google/gemini-omni-flash/1.2/image-to-video`, `google/gemini-omni-flash/1.2/reference-to-video`, `google/gemini-omni-flash/1.1/edit` (previous version).
