PromptFlow AI
API docs

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.

SV25 (sv25) · healthyid: omni-flash-1-2canonical_model: google-omni-1.2-flashtype: videooutput: video0.0657 credits – 0.0833 credits
Available packages & servers (SV) for model google-omni-1.2-flashGET /api/v1/models/google-omni-1.2-flash/servers

Detailed 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).

0.0657 credits – 0.0833 credits
Detailed pricing by resolution & duration
Resolution3s5s8s10s12s15s
720p0.0657 credits0.0657 credits0.0657 credits0.0657 credits0.0657 credits0.0657 credits
1080p0.0833 credits0.0833 credits0.0833 credits0.0833 credits0.0833 credits0.0833 credits
4K0.0657 credits0.0657 credits0.0657 credits0.0657 credits0.0657 credits0.0657 credits

Supports free selection per second from 3s to 15s

Input — request parameters

POST/v1/generations

Send 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).

ParameterTypeSupported valuesDescription
modelrequiredstringomni-flash-1-2or google-omni-1.2-flashThe package ID itself or the canonical model line ID (combined with the server selection parameter below).
serverstringsv25autoPins 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.
promptrequiredstring
Video description (prompt)
moderequiredenum
t2vi2vrefv2v

Default: t2v

Generation mode
image_urlrequiredstring (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 mode ∈ i2v

image_urlsrequiredstring[] (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 mode ∈ ref

video_urlrequiredstring (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 mode ∈ v2v

ref_image_urlstring (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 mode ∈ v2v

aspect_ratiorequiredenum
16:99:16

Default: 16:9

Aspect Ratio
resolutionrequiredenum
720p1080p4k-upscale

Default: 720p

Resolution
durationrequiredenum
3456789101112131415

Default: 3

Duration

Only applies when mode ∈ t2v, i2v, ref

  • 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.

GET/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"
}
FieldMeaning
model / server_idThe exact package ID and server (SV) that executed the task.
output.files[].urlResult file links — download them to your own system; files on our server may be cleaned up after some time.
output.textText content (only for models that return text).
costAmount in credits charged to your balance; refunded automatically on failure or cancellation (refunded = true).
errorError reason when status = failed.

Get a quote before running

POST/v1/generations/estimate

Same 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"
# }
Get an API key
omni-flash-1-2 · API docs | PromptFlow AI