Docs / video / Gemini Omni 1.1 Flash
Gemini Omni 1.1 Flash online
The faster tier of Google's Omni video family — start and end frames, reference images, and an optional video clip, from 360p up to 4K.
Rp Mulai Rp5.020 / video
Rp5.580 −10%
google/gemini-omni-flash-1-1 model id
1 · Create a task
Kirim permintaan untuk membuat tugas generasi video. Wajib header Idempotency-Key. Saldo direservasi sebesar estimasi; task gagal tidak ditagih.
curl -X POST https://getrun.id/v1/tasks \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Idempotency-Key: my-task-001" \
-H "Content-Type: application/json" \
-d '{
"model": "google/gemini-omni-flash-1-1",
"input": {
"prompt": "A dog enters the scene and she pets it",
"duration": "8",
"resolution": "720p",
"aspect_ratio": "16:9"
}
}'const res = await fetch('https://getrun.id/v1/tasks', {
method: 'POST',
headers: {
Authorization: 'Bearer YOUR_API_KEY',
'Idempotency-Key': 'my-task-001',
'Content-Type': 'application/json',
},
body: JSON.stringify({
"model": "google/gemini-omni-flash-1-1",
"input": {
"prompt": "A dog enters the scene and she pets it",
"duration": "8",
"resolution": "720p",
"aspect_ratio": "16:9"
}
}),
});
const task = await res.json();import requests
res = requests.post(
"https://getrun.id/v1/tasks",
headers={
"Authorization": "Bearer YOUR_API_KEY",
"Idempotency-Key": "my-task-001",
},
json={
"model": "google/gemini-omni-flash-1-1",
"input": {
"prompt": "A dog enters the scene and she pets it",
"duration": "8",
"resolution": "720p",
"aspect_ratio": "16:9"
}
},
)
task = res.json()Input parameters
| Name | Type | Required | Description | Example |
|---|---|---|---|---|
seed |
integer | No | Random seed. Range: [0, 2147483647]. If not specified, the system generates a seed automatically. Fixing the seed can improve reproducibility, but results may still vary due to the model’s stochasticity. | 0 |
prompt |
string | Yes | Describe the image you want to generate. (max 20000 chars) | A dog enters the scene and she pets it |
duration |
string | No | Note: when video input is provided, the output duration is determined by the model automatically. This duration parameter will not take effect. Opsi: 4 6 8 10 |
8 |
image_urls |
array | No | Upload an image file to use as input for the API (array of file URLs) | — |
resolution |
string | No | Output video resolution. Valid values: 720P(default), 1080P, 4k. Opsi: 360p 720p 1080p 4k |
720p |
video_list |
array | No | Klip video referensi (maks 1). Tiap item {url, start, ends}; potongan maksimum 10 detik. Dengan video, harga menjadi flat per generation. | — |
aspect_ratio |
string | No | Video ratio Opsi: 16:9 9:16 |
16:9 |
last_frame_url |
string | No | End frame image (file URL) | — |
first_frame_url |
string | No | Start frame image (file URL) | — |
2 · Poll the result
Ambil status tugas hingga selesai — poll tiap 2–5 detik.
Respons saat sukses:
{
"id": "task_9f2c…",
"status": "succeeded",
"model": "google/gemini-omni-flash-1-1",
"price": {
"currency": "IDR",
"estimated": 5020,
"reserved": 5020,
"final": 5020
},
"output": {
"urls": [
"https://storage.getcore.id/outputs/task_9f2c…/0.mp4"
],
"expires_at": "(7 hari setelah selesai)"
}
}
Status values
| Status | Keterangan |
|---|---|
queued | Tugas sedang diantrikan. |
processing | Sedang diproses. |
succeeded | Berhasil. |
failed | Gagal — lihat error detail, tidak ditagih. |
video/mp4, dilayani dari CDN kami dan berlaku 7 hari — salin ke penyimpananmu sendiri untuk jangka panjang.Best practices
Bila generation gagal, task berstatus failed dengan error.code ternormalisasi (mis. moderation_blocked, upstream_error) dan price.final = 0 — saldo dikembalikan otomatis. Daftar lengkap kode error ada di Error handling. Selalu kirim Idempotency-Key unik per tugas agar retry aman.
Coba tanpa kode: jalankan model ini langsung dari Playground atau lihat di API Market.
