google-omni-1.2-flash
Omni Flash 1.2 · Video 720p / 1080p (3–15 seconds) — Generate sharp AI videos closely following detailed prompts with Omni Flash 1.2 · Video 720p / 1080p — natural physics and cinematic lighting, flexible duration 3s – 15s, 720p – 1080p quality (720p, 1080p), supports up to 3 reference images to maintain character/scene consistency, accepts reference videos for camera angles/motion, integrated natural sound & effects, 16:9, 9:16 aspect ratios, no prompt character limit.
google-omni-1.2-flashGET /api/v1/models/google-omni-1.2-flash/serversDetailed API pricing by parameter configuration
Actual unit price (credits) deducted from your wallet when calling POST /v1/generations (or check it in advance with POST /v1/generations/estimate).
| Resolution | 3s | 5s | 8s | 10s | 12s | 15s |
|---|---|---|---|---|---|---|
| 720p | 0.0657 credits | 0.0657 credits | 0.0657 credits | 0.0657 credits | 0.0657 credits | 0.0657 credits |
| 1080p | 0.0833 credits | 0.0833 credits | 0.0833 credits | 0.0833 credits | 0.0833 credits | 0.0833 credits |
| 4K | 0.0657 credits | 0.0657 credits | 0.0657 credits | 0.0657 credits | 0.0657 credits | 0.0657 credits |
Supports free selection per second from 3s to 15s
Input — request parameters
/v1/generationsSend JSON in the standard structure "model": "google-omni-1.2-flash", "server": "sv25" and the parameters below at the same level. Parameters not listed in the table are rejected (400).
| Parameter | Type | Supported values | Description |
|---|---|---|---|
modelrequired | string | omni-flash-1-2or google-omni-1.2-flash | The package ID itself or the canonical model line ID (combined with the server selection parameter below). |
server | string | sv25auto | Pins the server (SV) that runs the order (the alias server_id is also accepted), or auto to pick the best-priced healthy server automatically. Check live servers via GET /v1/models/google-omni-1.2-flash/servers. |
promptrequired | string | Video description (prompt) | |
moderequired | enum | t2vi2vrefv2v Default: | Generation mode |
image_urlrequired | string (URL image) | Ảnh khung đầu — JPG, PNG, WEBP · video bắt đầu từ đúng khung hình này; dùng mô tả để nói chuyển động / góc máy. Only applies when | |
image_urlsrequired | string[] (URL image) | Up to 3 files | Ảnh tham chiếu (1–3 ảnh) — JPG, PNG, WEBP · tối đa 3 ảnh; mỗi ảnh một vai trò (nhân vật, sản phẩm, bối cảnh…) — ghi rõ "ảnh 1", "ảnh 2" trong mô tả. Only applies when |
video_urlrequired | string (URL video) | Video mẫu (MP4) — MP4 ngắn, tối đa 50MB · video mới bắt chước chuyển động và bố cục của video này, dài 10 giây. Only applies when | |
ref_image_url | string (URL image) | Ảnh tham chiếu (tuỳ chọn) — 1 ảnh làm mẫu hình cho video mới (vd sản phẩm / nhân vật thay vào video mẫu) · có thể bỏ trống. Only applies when | |
aspect_ratiorequired | enum | 16:99:16 Default: | Aspect Ratio |
resolutionrequired | enum | 720p1080p4k-upscale Default: | Resolution |
durationrequired | enum | 3456789101112131415 Default: | Duration Only applies when |
- File parameters (string URL) accept a public http(s) link — the server downloads it — or a URL returned by the file upload API POST /account/ai/uploads.
- Optional parameters left blank use their default values. You can also send an Idempotency-Key header to retry safely without being charged twice.
Sample request (cURL)
curl -X POST https://promptflow.web.id/api/v1/generations \
-H "X-API-Key: $API_KEY" -H "Content-Type: application/json" \
-d '{
"model": "google-omni-1.2-flash",
"server": "sv25",
"prompt": "An astronaut cat",
"mode": "t2v",
"aspect_ratio": "16:9",
"resolution": "720p"
}'Complete integration code sample (Upload file → Create job → Poll result)
Python 3
import os, time, requests
BASE = "https://promptflow.web.id/api"
HEADERS = {"X-API-Key": os.environ["API_KEY"]}
r = requests.post(f"{BASE}/v1/generations", headers=HEADERS, json={
"model": "google-omni-1.2-flash",
"server": "sv25",
"prompt": "An astronaut cat",
"mode": "t2v",
"aspect_ratio": "16:9",
"resolution": "720p"
}, timeout=60)
gen = r.json()
if not r.ok:
raise RuntimeError(gen.get("message") or r.text)
while gen.get("status") in ("queued", "processing"):
time.sleep(5)
gen = requests.get(f"{BASE}/v1/generations/{gen['id']}", headers=HEADERS, timeout=60).json()
if gen.get("status") != "succeeded":
raise RuntimeError(gen.get("error") or gen.get("status"))
print("Result:", gen["output"])Node.js (18+)
const BASE = "https://promptflow.web.id/api";
const headers = { "X-API-Key": process.env.API_KEY, "Content-Type": "application/json" };
const createRes = await fetch(`${BASE}/v1/generations`, {
method: "POST",
headers,
body: JSON.stringify({
"model": "google-omni-1.2-flash",
"server": "sv25",
"prompt": "An astronaut cat",
"mode": "t2v",
"aspect_ratio": "16:9",
"resolution": "720p"
}),
});
let gen = await createRes.json();
if (!createRes.ok) throw new Error(gen.message || createRes.statusText);
while (["queued", "processing"].includes(gen.status)) {
await new Promise((r) => setTimeout(r, 5000));
gen = await fetch(`${BASE}/v1/generations/${gen.id}`, { headers }).then((r) => r.json());
}
if (gen.status !== "succeeded") throw new Error(gen.error ?? gen.status);
console.log("Result:", gen.output);Output — response
Jobs run asynchronously. POST /v1/generations immediately returns a generation object with status queued or processing; poll GET /v1/generations/{id} every 5–10 seconds until status is succeeded, failed or cancelled.
/v1/generations/{id}{
"id": "3f1c...-uuid",
"object": "generation",
"code": "T8KQ2M4X",
"model": "omni-flash-1-2",
"canonical_model": "google-omni-1.2-flash",
"server_id": "sv25",
"server_name": "SV25",
"status": "succeeded", // queued | processing | succeeded | failed | cancelled
"progress": 100,
"cost": 2400, // amount charged
"currency": "CREDITS",
"refunded": false,
"output": {
"type": "video",
"files": [{ "url": "https://promptflow.web.id/uploads/ai/outputs/....mp4", "type": "video", "name": "video.mp4" }],
"text": null
},
"error": null,
"created_at": "2026-10-30T08:00:00.000Z",
"completed_at": "2026-10-30T08:01:12.000Z"
}| Field | Meaning |
|---|---|
| model / server_id | The exact package ID and server (SV) that executed the task. |
| output.files[].url | Result file links — download them to your own system; files on our server may be cleaned up after some time. |
| output.text | Text content (only for models that return text). |
| cost | Amount in credits charged to your balance; refunded automatically on failure or cancellation (refunded = true). |
| error | Error reason when status = failed. |
Get a quote before running
/v1/generations/estimateSame body as POST /v1/generations, without running or charging (your account's personal discount %, if any, is applied automatically).
# => {
# "object": "estimate",
# "model": "omni-flash-1-2",
# "canonical_model": "google-omni-1.2-flash",
# "server_id": "sv25",
# "server_name": "SV25",
# "cost": 2400,
# "currency": "CREDITS"
# }