Hệ thống tạo Video, Ảnh, Giọng nói AI tự động 24/7
Tài liệu API

google-omni-1.2-flash

Google Omni 1.2 Flash · 10 ảnh + Video ref (tới 4K) — Tạo video AI sắc nét theo sát kịch bản chi tiết bằng Google Omni 1.2 Flash · 10 ảnh + Video ref — chuyển động vật lý và ánh sáng điện ảnh tự nhiên, thời lượng linh hoạt 2s – 30s, chất lượng 360p – 4K (360p, 480p, 720p, 1080p, 2K, 4K), hỗ trợ tới 10 ảnh tham chiếu giữ đồng nhất nhân vật/bối cảnh, nhận video tham chiếu góc máy/chuyển động, đa tỉ lệ khung hình (16:9, 9:16, 1:1, 4:3, 3:4...), không giới hạn ký tự mô tả.

SV3 (sv3) · healthyid: google-omni-1.2-flashtype: videooutput: video778đ – 34.020đ / giây
Các gói & Server (SV) hiện có của model google-omni-1.2-flashGET /api/v1/models/google-omni-1.2-flash/servers

Bảng giá API chi tiết theo từng cấu hình tham số

Đơn giá thực tế (VNĐ) trừ vào ví khi gọi POST /v1/generations (hoặc kiểm tra trước qua POST /v1/generations/estimate).

778đ – 34.020đ / giây
Chất lượng3s5s8s10s12s15s
360p778đ1.296đ2.074đ2.592đ3.111đ3.889đ
720p1.556đ2.592đ4.148đ5.184đ6.221đ7.777đ
1080p2.333đ3.889đ6.221đ7.777đ9.332đ11.664đ
4K5.444đ9.072đ14.516đ18.144đ21.773đ27.216đ

Hỗ trợ chọn tự do từng giây từ 3s đến 15s

Input — tham số đầu vào

POST/v1/generations

Gửi JSON theo cấu trúc chuẩn "model": "google-omni-1.2-flash", "server_id": "sv3" và các tham số dưới đây ở cùng cấp. Tham số không có trong bảng sẽ bị từ chối (400).

Tham sốKiểuGiá trị hỗ trợMô tả
modelrequiredstringgoogle-omni-1.2-flashMã gói sản phẩm trực tiếp hoặc mã dòng model chuẩn (kết hợp cùng tham số chọn SV bên dưới).
server_idstringsv3autoChốt máy chủ SV chạy đơn (dùng server_id vì model này có tham số nội bộ trùng tên server). Truyền auto để tự chọn SV healthy rẻ nhất. GET /v1/models/google-omni-1.2-flash/servers.
serverrequiredenum
veo_omni12_vip1veo_omni12
Máy chủ — Mặc định đã chọn sẵn máy chủ tối ưu & giá tốt nhất; có thể chuyển máy chủ VIP khác nếu cần thêm ảnh/video tham chiếu
promptrequiredstring
Mô tả (prompt)
image_urlsstring[] (URL image)

Tối đa 10 file

Ảnh khung đầu / tham chiếu (tuỳ chọn) — Tải lên ảnh khung đầu hoặc ảnh nhân vật / bối cảnh tham chiếu (PNG, JPG, WEBP)
video_urlsstring[] (URL video)

Tối đa 1 file

Video tham chiếu (tuỳ chọn, tối đa 1)

Chỉ có hiệu lực khi server ∈ veo_omni, veo_omniv3, veo_omni12_vip1, veo_omni12, auto:minimax_h3, wan_3_0_vip2, wan_3_0

qualityrequiredenum

Lựa chọn thay đổi theo server:

veo_omni:360p720p1080p4K
veo_omniv2:720p1080p4K
veo_omniv3:720p1080p4K
veo_omni12_vip1:360p720p1080p4K
veo_omni12:720p1080p4K
auto:veo_3_1:720p1080p4K
auto:grok_video_15:480p720p1080p
auto:grok_videov3:480p720p
auto:minimax_h3:720p2K
wan_3_0_vip2:480p720p1080p
wan_3_0:480p720p1080p

Mặc định: 720p

Chất lượng
durationrequiredenum

Lựa chọn thay đổi theo server:

veo_omni:46810
veo_omniv2:3456789101112131415
veo_omniv3:3456789101112131415
veo_omni12_vip1:3456789101112131415
veo_omni12:3456789101112131415
auto:veo_3_1:8
auto:grok_video_15:23456789101112131415
auto:grok_videov3:61015
auto:minimax_h3:56789101112131415
wan_3_0_vip2:5101530
wan_3_0:234568101215202530
Thời lượng
aspect_ratiorequiredenum

Lựa chọn thay đổi theo server:

veo_omni:16:99:16
veo_omniv2:16:99:16
veo_omniv3:16:99:16
veo_omni12_vip1:16:99:16
veo_omni12:16:99:16
auto:veo_3_1:16:99:16
auto:grok_video_15:16:99:161:14:33:43:22:321:9
auto:grok_videov3:9:1616:91:1
auto:minimax_h3:16:99:161:14:33:421:9
wan_3_0_vip2:16:99:161:14:33:4
wan_3_0:16:99:161:14:33:4
Tỉ lệ khung hình
nenum
1234

Mặc định: 1

Số lượng video — Tạo 1–4 video cùng lúc, giá nhân theo số video
  • Tham số file (string URL) nhận link công khai http(s) — máy chủ tự tải về — hoặc URL trả về từ API tải file POST /account/ai/uploads.
  • Thứ tự phần tử trong mảng image_urls ([url_1, url_2, url_3]) được hệ thống khoá cố định 1–1 theo đúng thứ tự: Ảnh 1 / Image 1 / FIRST image, Ảnh 2 / Image 2 / SECOND image, Ảnh 3 / Image 3 / THIRD image. Khi tải file từ máy qua POST /account/ai/uploads, hãy upload tuần tự theo đúng thứ tự [1, 2, 3] để mảng URL không bị đảo.
  • Bỏ trống tham số không bắt buộc thì dùng giá trị mặc định. Có thể gửi thêm header Idempotency-Key để thử lại an toàn không trừ tiền 2 lần.

Ví dụ request (cURL)

curl -X POST https://gen-ai.evids.app/api/v1/generations \
  -H "X-API-Key: $API_KEY" -H "Content-Type: application/json" \
  -d '{
  "model": "google-omni-1.2-flash",
  "server_id": "sv3",
  "server": "veo_omni12_vip1",
  "prompt": "Giữ nguyên tư thế và bố cục của Ảnh 1, thay sang bộ trang phục ở Ảnh 2 và lấy khuôn mặt từ Ảnh 3.",
  "n": "1",
  "quality": "720p",
  "duration": "3",
  "aspect_ratio": "16:9"
}'

Code mẫu tích hợp đầy đủ (Upload file → Tạo tác vụ → Nhận kết quả)

Python 3

import os, time, requests

BASE = "https://gen-ai.evids.app/api"
API_KEY = os.environ["API_KEY"]  # lấy tại trang /api-keys
HEADERS = {"X-API-Key": API_KEY}

def upload_file(local_path: str) -> str:
    """Tải 1 file từ máy lên server và trả về URL đầu vào"""
    with open(local_path, "rb") as f:
        r = requests.post(f"{BASE}/account/ai/uploads", headers=HEADERS, files={"file": f}, timeout=120)
    data = r.json()
    if not r.ok:
        raise RuntimeError(data.get("message") or r.text)
    return data["url"]

# Bước 1: Upload tuần tự đúng thứ tự Ảnh 1 -> Ảnh 2 -> Ảnh 3 (hoặc dùng thẳng link https công khai)
image_urls = [
    upload_file("./1.jpg"),  # Ảnh 1 (Image 1 / FIRST image)
    upload_file("./2.jpg"),  # Ảnh 2 (Image 2 / SECOND image)
    upload_file("./3.jpg"),  # Ảnh 3 (Image 3 / THIRD image)
]

# Bước 2: Gửi yêu cầu với đúng thứ tự mảng image_urls [1, 2, 3]
payload = {
    "model": "google-omni-1.2-flash",
    "server_id": "sv3",
    "server": "veo_omni12_vip1",
    "prompt": "Giữ nguyên tư thế và bố cục của Ảnh 1, thay sang bộ trang phục ở Ảnh 2 và lấy khuôn mặt từ Ảnh 3.",
    "n": "1",
    "quality": "720p",
    "duration": "3",
    "aspect_ratio": "16:9"
}
payload["image_urls"] = image_urls

r = requests.post(f"{BASE}/v1/generations", headers=HEADERS, json=payload, timeout=60)
gen = r.json()
if not r.ok:
    raise RuntimeError(gen.get("message") or r.text)

# Bước 3: Hỏi trạng thái mỗi 5 giây tới khi hoàn tất
while gen["status"] in ("queued", "processing"):
    time.sleep(5)
    poll = requests.get(f"{BASE}/v1/generations/{gen['id']}", headers=HEADERS, timeout=60)
    gen = poll.json()

if gen["status"] != "succeeded":
    raise RuntimeError(gen.get("error") or gen["status"])

print("Kết quả:", [f["url"] for f in gen["output"]["files"]])

Node.js (18+)

import fs from "node:fs";
import path from "node:path";

const BASE = "https://gen-ai.evids.app/api";
const API_KEY = process.env.API_KEY; // lấy tại trang /api-keys

async function uploadFile(filePath) {
  const form = new FormData();
  const buf = fs.readFileSync(filePath);
  form.append("file", new Blob([buf]), path.basename(filePath));
  const res = await fetch(`${BASE}/account/ai/uploads`, {
    method: "POST",
    headers: { "X-API-Key": API_KEY },
    body: form,
  });
  const data = await res.json();
  if (!res.ok) throw new Error(data.message || res.statusText);
  return data.url;
}

// Bước 1: Upload tuần tự từng ảnh 1 -> 2 -> 3 để giữ đúng thứ tự mảng
const imageUrls = [];
for (const file of ["./1.jpg", "./2.jpg", "./3.jpg"]) {
  imageUrls.push(await uploadFile(file));
}

// Bước 2: Gửi tạo tác vụ
const createRes = await fetch(`${BASE}/v1/generations`, {
  method: "POST",
  headers: { "X-API-Key": API_KEY, "Content-Type": "application/json" },
  body: JSON.stringify({
    ...{
  "model": "google-omni-1.2-flash",
  "server_id": "sv3",
  "server": "veo_omni12_vip1",
  "prompt": "Giữ nguyên tư thế và bố cục của Ảnh 1, thay sang bộ trang phục ở Ảnh 2 và lấy khuôn mặt từ Ảnh 3.",
  "n": "1",
  "quality": "720p",
  "duration": "3",
  "aspect_ratio": "16:9"
},
    image_urls: imageUrls,
  }),
});
let gen = await createRes.json();
if (!createRes.ok) throw new Error(gen.message || createRes.statusText);

// Bước 3: Chờ kết quả
while (["queued", "processing"].includes(gen.status)) {
  await new Promise((r) => setTimeout(r, 5000));
  const pollRes = await fetch(`${BASE}/v1/generations/${gen.id}`, {
    headers: { "X-API-Key": API_KEY },
  });
  gen = await pollRes.json();
}
if (gen.status !== "succeeded") throw new Error(gen.error ?? gen.status);
console.log("Kết quả:", gen.output.files.map((f) => f.url));

Output — kết quả trả về

Tác vụ chạy bất đồng bộ. POST /v1/generations trả ngay đối tượng generation với status queued hoặc processing; hỏi lại GET /v1/generations/{id} mỗi 5–10 giây tới khi status là succeeded, failed hoặc cancelled.

GET/v1/generations/{id}
{
  "id": "3f1c...-uuid",
  "object": "generation",
  "code": "T8KQ2M4X",
  "model": "google-omni-1.2-flash",
  "canonical_model": "google-omni-1.2-flash",
  "server_id": "sv3",
  "server_name": "SV3",
  "status": "succeeded",       // queued | processing | succeeded | failed | cancelled
  "progress": 100,
  "cost": 2400,                // số tiền đã trừ
  "currency": "VND",
  "refunded": false,
  "output": {
    "type": "video",
    "files": [{ "url": "https://gen-ai.evids.app/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"
}
TrườngÝ nghĩa
model / server_idĐúng mã gói sản phẩm và máy chủ SV đã thực thi tác vụ.
output.files[].urlLink file kết quả — nên tải về hệ thống của bạn, file trên máy chủ có thể được dọn sau một thời gian.
output.textNội dung văn bản (chỉ có với model trả văn bản).
costSố tiền VND đã trừ vào số dư; lỗi hoặc huỷ thì tự hoàn lại (refunded = true).
errorLý do lỗi khi status = failed.

Báo giá trước khi chạy

POST/v1/generations/estimate

Cùng body với POST /v1/generations, không chạy và không trừ tiền (tự áp % chiết khấu riêng nếu tài khoản có).

# => {
#   "object": "estimate",
#   "model": "google-omni-1.2-flash",
#   "canonical_model": "google-omni-1.2-flash",
#   "server_id": "sv3",
#   "server_name": "SV3",
#   "cost": 2400,
#   "currency": "VND"
# }
Lấy API key
google-omni-1.2-flash · Tài liệu API | EVids AI