Docs / video / Gemini Omni 1.2 Flash
Gemini Omni 1.2 Flash online
Video dengan audio native selama 3–15 detik dari teks, hingga 6 gambar referensi, atau frame awal/akhir. Mode dua frame maksimum 10 detik. 1080p dan 4K melalui upscale.
Rp Mulai Rp323,406 / detik (360p; 3 detik = Rp970)
Rp1.078 −10%
⏱ ±60–1200 detik perkiraan waktu
google/gemini-omni-flash-1-2 model id
Audio native3–15 detikHingga 6 gambar referensiFrame awal/akhir maksimum 10 detik1080p/4K via upscale
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-2",
"input": {
"prompt": "A blue ball rolling across a clean studio floor, soft light and natural sound.",
"duration": 3,
"resolution": "360p",
"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-2",
"input": {
"prompt": "A blue ball rolling across a clean studio floor, soft light and natural sound.",
"duration": 3,
"resolution": "360p",
"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-2",
"input": {
"prompt": "A blue ball rolling across a clean studio floor, soft light and natural sound.",
"duration": 3,
"resolution": "360p",
"aspect_ratio": "16:9"
}
},
)
task = res.json()Input parameters
| Name | Type | Required | Description | Example |
|---|---|---|---|---|
seed |
integer | No | (min 10000, max 99999) | — |
prompt |
string | Yes | (max 20000 chars) | A blue ball rolling across a clean studio floo |
duration |
integer | No | 3–15 seconds; up to 10 seconds with both start and end frames. (min 3, max 15) | 3 |
image_urls |
array | No | — | |
resolution |
string | No | Opsi: 360p 720p 1080p 4k |
360p |
aspect_ratio |
string | No | Opsi: 16:9 9:16 |
16:9 |
last_frame_url |
string | No | — | |
first_frame_url |
string | No | — |
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-2",
"price": {
"currency": "IDR",
"estimated": 970,
"reserved": 970,
"final": 970
},
"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.
