Video AI Studio

Dành cho nhà phát triển

Tài liệu API

Gọi chính xác từng gói sản phẩm AI & máy chủ SV (ảnh, video, giọng nói, âm nhạc...), tự động đồng bộ sản phẩm mới / vừa tắt / bảo trì / đổi giá. Tiền trừ vào số dư tài khoản (VND) giống hệt khi dùng trên web.

Xác thực

Mọi yêu cầu gửi tới địa chỉ gốc dưới đây. Tạo API key ở trang API cho nhà phát triển (cần đăng nhập), rồi gửi kèm trong header X-API-Key hoặc Authorization: Bearer.

https://video.ai247.cloud/api
# Cách 1: Header X-API-Key
curl https://video.ai247.cloud/api/v1/models -H "X-API-Key: <YOUR_API_KEY>"

# Cách 2: Header Authorization Bearer chuẩn
curl https://video.ai247.cloud/api/v1/models -H "Authorization: Bearer <YOUR_API_KEY>"
  • Key chỉ hiện đầy đủ một lần khi tạo. Mất key thì thu hồi và tạo key mới.
  • Chỉ dùng key ở máy chủ của bạn, không nhúng vào mã chạy trên trình duyệt hay ứng dụng di động.
  • Dữ liệu gửi và nhận ở dạng JSON (trừ API tải file dùng multipart/form-data).

Luồng đấu nối chuẩn: Đồng bộ Gói → Chọn đúng SV → Confirm

  1. Bước 1 — Đồng bộ danh mục gói sản phẩm & SV: GET /v1/models/sync (hoặc GET /v1/models/groups) — nhận đầy đủ mọi gói sản phẩm kèm mã gói duy nhất id, server_id, status (active | maintenance | disabled), bảng giá, tham số và catalog_version.
  2. Bước 2 — Kiểm tra SV sống & tải hàng chờ (tuỳ chọn): GET /v1/models/{model}/servers (vd GET /v1/models/seedream-5.5/servers) — xem server_status, queue, eta_seconds và recommended_server_id.
  3. Bước 3 — Confirm chạy đúng gói & đúng SV: POST /v1/generations với mã gói model + server (hoặc server_id) — hệ thống định tuyến chính xác vào gói & SV đã chọn, không tự nhảy sang gói khác nếu gói đó vừa tắt/bảo trì (trừ khi bạn truyền "server": "auto").
  4. Bước 4 — Nhận kết quả: GET /v1/generations/{id} mỗi 5–10 giây tới khi status là succeeded, lấy link file trong output.files.

Tương thích ngược 100%: tích hợp cũ gọi trực tiếp bằng mã gói lẻ (vd seedance-2.5-1080p, seedream-5-5, kling-2.6) không truyền server vẫn định tuyến chính xác đúng gói & SV đó.

Đồng bộ gói sản phẩm: phát hiện gói mới, gói vừa tắt & đổi giá

GET/v1/models/sync?since=2026-11-27T00:00:00ZKhông cần key · Hỗ trợ ETag / 304 Not Modified

Dành cho web đối tác / hệ thống reseller đồng bộ tự động toàn bộ gói sản phẩm và máy chủ SV. Gọi không có since để lấy bản đầy đủ ban đầu (gồm cả gói đang mở lẫn gói đã tắt); sau đó chạy cron 1–5 phút/lần kèm If-None-Match: "<catalog_version>" và ?since=<synced_at_lần_trước> để nhận ngay gói vừa thêm mới, vừa đổi giá/SV, vừa bảo trì hoặc vừa bị tắt.

# 1) Lần đầu: lấy toàn bộ gói đang mở (active + maintenance) và gói đã tắt (disabled)
curl https://video.ai247.cloud/api/v1/models/sync

# 2) Các lần sau (cron 1-5 phút): gửi ETag + since -> trả 304 nếu không có gì thay đổi
curl -i "https://video.ai247.cloud/api/v1/models/sync?since=2026-11-27T00:00:00.000Z" \
  -H 'If-None-Match: "<catalog_version_lan_truoc>"'

# Kết quả chế độ delta (?since=...):
{
  "object": "catalog_sync",
  "synced_at": "2026-11-27T06:10:00.000Z",
  "catalog_version": "a1b2c3d4e5f67890",
  "since": "2026-11-27T00:00:00.000Z",
  "summary": {
    "total": 215,
    "active": 166,
    "maintenance": 2,
    "disabled": 47,
    "added_count": 2,        // số gói sản phẩm mới tạo từ mốc since
    "updated_count": 4,      // số gói đổi giá / đổi SV / đổi tham số / bật lại
    "maintenance_count": 1,  // số gói vừa chuyển bảo trì
    "disabled_count": 3      // số gói vừa bị tắt / xoá / tắt danh mục / tắt nguồn
  },
  "changes": {
    "added": [ { "id": "...", "server_id": "sv22", "status": "active", "version_hash": "...", "pricing": { ... } } ],
    "updated": [ ... ],
    "maintenance": [ ... ],
    "disabled": [
      {
        "id": "seedance-2.5-1080p",
        "canonical_model": "seedance-2.5",
        "server_id": "sv14",
        "server_name": "SV14",
        "status": "disabled",
        "enabled": false,
        "disabled_reason": "tool_disabled", // tool_disabled | deleted | category_disabled | provider_disabled
        "updated_at": "2026-11-27T05:45:00.000Z",
        "version_hash": "..."
      }
    ]
  },
  "active_ids": ["seedream-5-5", "nano-banana-pro-3", "..."],
  "maintenance_ids": ["..."],
  "disabled_ids": ["seedance-2.5-1080p", "..."]
}
Trường đồng bộÝ nghĩa
catalog_version / ETagMã băm đại diện cho toàn bộ danh mục. Gửi lại trong header If-None-Match — nếu danh mục không đổi, API trả 304 Not Modified (0 byte).
statusTrạng thái vòng đời của từng gói: active (đang bán) · maintenance (tạm bảo trì) · disabled (đã tắt / ngưng bán).
disabled_reasontool_disabled (admin tắt gói) · deleted (đã xoá/ẩn) · category_disabled (tắt nhóm) · provider_disabled (tắt nguồn).
version_hashMã băm 12 ký tự của riêng từng gói (tính trên SV, trạng thái, giá, tham số) — so sánh nhanh để biết gói nào vừa đổi giá hoặc đổi SV.
requires_exact_model_idtrue khi cùng 1 SV có từ 2 gói phân biệt cùng dòng model (vd 720p & 1080p trên cùng SV14) — bắt buộc truyền đúng id gói khi tạo đơn.
include_params=falseTham số query tuỳ chọn của /v1/models/sync để lược mảng params, giúp quét trạng thái bật/tắt & giá cực nhanh.

Cấu trúc Model → Server (SV) & Định tuyến chặt đúng gói

GET/v1/models/groups?include_disabled=trueKhông cần key · Cây Model -> Servers[]

Gộp các gói cùng dòng model về một mã chuẩn (canonical_model), bên trong chứa mảng servers (các máy chủ sv1, sv3, sv14, sv15, sv22...). Mỗi phần tử trong servers là một gói sản phẩm cụ thể có model_id duy nhất và server_id.

GET/v1/models/{model}/serversKhông cần key · Check SV sống & giá

Kiểm tra tức thời máy chủ nào của model đang hoạt động tốt (healthy) hay đang bảo trì (maintenance), kèm máy chủ đề xuất giá tốt nhất (recommended_server_id). Truyền thêm ?include_disabled=true nếu muốn xem cả các SV vừa bị tắt.

# Kiểm tra danh sách SV sống của model seedream-5.5
curl https://video.ai247.cloud/api/v1/models/seedream-5.5/servers

# Kết quả trả về:
{
  "object": "model_servers",
  "model": "seedream-5.5",
  "name": "Seedream 5.5",
  "output": "image",
  "healthy_servers_count": 3,
  "disabled_servers_count": 0,
  "total_servers_count": 3,
  "recommended_server_id": "sv15",
  "recommended_model_id": "seedream-5-5",
  "servers": [
    {
      "server_id": "sv15",
      "server_name": "SV15",
      "status": "active",               // "active" | "maintenance" | "disabled"
      "enabled": true,
      "server_status": "healthy",       // "healthy" | "maintenance" | "disabled"
      "maintenance": false,
      "requires_exact_model_id": false,
      "model_id": "seedream-5-5",
      "version_hash": "9f8e7d6c5b4a",
      "pricing": { "mode": "dynamic", "min_price": 400, "max_price": 800, "currency": "VND" },
      "params": [ ... ],
      "created_at": "2026-11-10T04:00:00.000Z",
      "updated_at": "2026-11-21T00:50:00.000Z",
      "queue": { "processing": 2, "waiting": 5 },   // số đơn đang xử lý / đang xếp hàng chờ ở SV này
      "eta_seconds": 95                              // thời gian hoàn thành dự kiến (giây), null = chưa đủ dữ liệu
    }
  ]
}

Mỗi SV kèm tải hiện tại để chọn máy chủ nhanh nhất: queue.processing (số đơn đang xử lý), queue.waiting (số đơn đang xếp hàng chờ) và eta_seconds (thời gian hoàn thành dự kiến, tính theo trung vị các lượt gần đây). Số liệu làm mới mỗi 15 giây; có ở /v1/models/sync, /v1/models/groups, /v1/models/{model}/servers và available_servers của /v1/models/{id}.

Quy tắc chốt đúng gói sản phẩm & SV khi gọi /estimate hoặc /generations:

  • Khuyến nghị cho đối tác bán lại (chính xác 100%): truyền thẳng mã gói id vào trường model (vd seedance-2.5-1080p, seedream-5-5, voice) kèm server_id (hoặc server) và tuỳ chọn strict: true. Nếu gói đó vừa bị tắt → trả 404 (code: model_disabled); nếu đang bảo trì → trả 409 (code: server_maintenance) kèm danh sách healthy_servers — tuyệt đối không tự nhảy nhầm sang gói khác.
  • Lưu ý quan trọng về tham số khác nhau giữa các SV: cùng một canonical_model nhưng các SV khác nhau có thể dùng tên tham số khác nhau (vd SV15 dùng reference_image_urls, SV14 dùng image_urls; hoặc SV7 dùng size thay vì aspect_ratio). Luôn đọc params của đúng gói/SV bạn chọn.
  • Tránh trùng tên tham số server: một số model (vd Google Omni Flash, Wan 3.0 Video, Seedance 2.0 Mini) có tham số nội bộ tên server (vd veo_omni). Hãy luôn dùng server_id để chốt máy chủ SV ( server_id luôn được ưu tiên trên mọi model).
# Cách A (Khuyến nghị): Chốt chính xác 100% gói sản phẩm + máy chủ SV (không bao giờ nhảy nhầm gói)
curl -X POST https://video.ai247.cloud/api/v1/generations \
  -H "X-API-Key: $API_KEY" -H "Content-Type: application/json" \
  -H "Idempotency-Key: order-20261127-001" \
  -d '{"model": "seedance-2.5-1080p", "server_id": "sv14", "strict": true, "prompt": "Một chú mèo phi hành gia", "aspect_ratio": "9:16", "duration": "5"}'

# Cách B: Chốt theo dòng model + SV (chỉ dùng khi SV đó chỉ có 1 gói của dòng model)
curl -X POST https://video.ai247.cloud/api/v1/generations \
  -H "X-API-Key: $API_KEY" -H "Content-Type: application/json" \
  -d '{"model": "seedream-5.5", "server_id": "sv15", "prompt": "Một chú mèo phi hành gia", "aspect_ratio": "1:1"}'

# Cách C: Để hệ thống tự động chọn máy chủ healthy có giá tốt nhất & tương thích tham số ("server": "auto")
curl -X POST https://video.ai247.cloud/api/v1/generations \
  -H "X-API-Key: $API_KEY" -H "Content-Type: application/json" \
  -d '{"model": "seedream-5.5", "server": "auto", "prompt": "Một chú mèo phi hành gia", "aspect_ratio": "1:1"}'

Danh mục model

GET/v1/models?output=image&server=sv15&status=healthy&include_disabled=falseKhông cần key · Hỗ trợ ETag

Danh sách toàn bộ gói sản phẩm (mỗi phần tử kèm sẵn canonical_model, server_id, server_name, status, enabled, requires_exact_model_id, version_hash, created_at, updated_at). Lọc tuỳ chọn theo output (image | video | audio | text), server (sv1..sv22+), status (healthy | maintenance | disabled | all), include_disabled=true, updated_since, created_since, canonical_model hoặc type.

GET/v1/models/{id}?include_disabled=trueKhông cần key

Chi tiết một gói với đầy đủ tham số đầu vào và danh sách các máy chủ cùng dòng (available_servers). Truyền include_disabled=true để tra cứu thông tin trạng thái của gói vừa bị tắt.

{
  "id": "nano-banana2-lowcost",
  "object": "model",
  "canonical_model": "nano-banana-2.1",
  "server_id": "sv4",
  "server_name": "SV4",
  "status": "active",               // active | maintenance | disabled
  "enabled": true,
  "server_status": "healthy",
  "maintenance": false,
  "disabled_reason": null,
  "requires_exact_model_id": false,
  "created_at": "2026-11-01T00:00:00.000Z",
  "updated_at": "2026-11-27T00:00:00.000Z",
  "version_hash": "a1b2c3d4e5f6",
  "name": "Nano Banana 2 Low-Cost (Ảnh AI 4K)",
  "type": "image",
  "output": "image",                // image | video | audio | text
  "pricing": { "mode": "fixed", "base": 1500, "per_unit": 0, "unit": null, "min": 0, "currency": "VND" },
  "params": [
    { "name": "prompt", "type": "string", "required": true, "description": "Mô tả", "max": 20000 },
    { "name": "aspect_ratio", "type": "enum", "required": false, "default": "1:1",
      "options": [{ "value": "1:1", "label": "1:1" }, { "value": "16:9", "label": "16:9" }] },
    { "name": "image_url", "type": "file_url", "file_type": "image", "required": false, "description": "Ảnh mẫu" }
  ]
}

Ý nghĩa các trường của params:

TrườngÝ nghĩa
typestring · integer · number · boolean · enum · file_url (URL file, xem phần tải file)
required / defaultBắt buộc hay không, giá trị dùng khi bỏ trống.
optionsGiá trị hợp lệ của enum (value gửi lên API, label là nhãn hiển thị).
min / maxGiới hạn số; với string là độ dài tối đa.
multiple / max_filesTham số file nhận mảng nhiều URL.
only_ifTham số chỉ có hiệu lực khi tham số khác có giá trị nằm trong danh sách.
options_byLựa chọn thay đổi theo giá trị tham số khác (xem chi tiết từng cặp giá trị trong options_by.map).
combinationsduration và resolution chỉ nhận các tổ hợp liệt kê ở đây.

Input: tạo tác vụ

POST/v1/generationsHỗ trợ Idempotency-Key / X-Request-Id chống trùng đơn

Body là JSON phẳng: model (+ tuỳ chọn server_id / server, strict, idempotency_key) + các tham số của gói đó ở cùng cấp. Tham số sai tên hoặc không có trong params bị từ chối (400) để bạn phát hiện lỗi sớm.

curl -X POST https://video.ai247.cloud/api/v1/generations \
  -H "X-API-Key: $API_KEY" -H "Content-Type: application/json" \
  -H "Idempotency-Key: unique-order-id-123" \
  -d '{
  "model": "nano-banana-2.1",
  "server": "sv4",
  "prompt": "Một chú mèo phi hành gia",
  "aspect_ratio": "16:9",
  "resolution": "1k"
}'

Kết quả trả ngay đối tượng generation (status queued / processing). Tiền được trừ lúc tạo, lỗi thì tự hoàn lại. Gửi kèm header Idempotency-Key (hoặc X-Request-Id / trường body idempotency_key): gọi lặp cùng khoá trong 10 phút sẽ trả lại đúng đơn cũ, không trừ tiền 2 lần.

Lưu ý tỉ lệ khung hình & thời lượng: với model tạo video từ ảnh, hãy truyền aspect_ratio khớp chiều ảnh (ảnh dọc → 9:16, ảnh ngang → 16:9, ảnh vuông → 1:1). API không tự đổi theo ảnh và không đọc tỉ lệ ghi trong prompt; bỏ trống thì dùng giá trị default của model (thường là 16:9). Tương tự, duration (hoặc seconds tùy model theo GET /v1/models/{id}) quyết định thời lượng thật, không phải số giây ghi trong prompt.

Output: kết quả

GET/v1/generations/{id}

Nhận id (uuid) hoặc mã tác vụ (code). Hỏi lại mỗi 5–10 giây cho tới khi status là succeeded, failed hoặc cancelled.

{
  "id": "3f1c...-uuid",
  "object": "generation",
  "code": "T8KQ2M4X",
  "model": "nano-banana2-lowcost",
  "canonical_model": "nano-banana-2.1",
  "server_id": "sv4",
  "server_name": "SV4",
  "status": "succeeded",
  "progress": 100,
  "cost": 1500,                 // số tiền VND đã trừ
  "currency": "VND",
  "refunded": false,
  "output": {
    "type": "image",
    "files": [{ "url": "https://video.ai247.cloud/uploads/ai/outputs/....png", "type": "image", "name": "image.png" }],
    "text": null                // chỉ có với model trả văn bản
  },
  "error": null,
  "created_at": "2026-10-30T08:00:00.000Z",
  "completed_at": "2026-10-30T08:00:41.000Z"
}
statusÝ nghĩa
queuedĐã nhận, đang gửi sang máy chủ AI
processingĐang xử lý; progress là phần trăm hoàn thành (nếu có)
succeededXong; kết quả nằm trong output.files (mỗi file có thể kèm badge như '4K' / 'Bản gốc') và output.text
failedLỗi; lý do ở error, tiền tự hoàn lại vào số dư (refunded = true)
cancelledĐã huỷ, tiền được hoàn lại vào số dư

Nên tải file kết quả 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.

Báo giá & Ma trận bảng giá từng lựa chọn

POST/v1/generations/estimate

Cùng body với tạo tác vụ, chỉ tính số tiền (VND) thực tế sẽ trừ cho đúng gói & SV đã chọn (đã tự động áp % chiết khấu riêng của tài khoản API nếu có), không chạy và không trừ tiền.

# => {
#   "object": "estimate",
#   "model": "nano-banana2-lowcost",
#   "canonical_model": "nano-banana-2.1",
#   "server_id": "sv4",
#   "server_name": "SV4",
#   "cost": 1425,
#   "original_cost": 1500,
#   "discount_percent": 5,
#   "currency": "VND"
# }
GET/v1/modelsTrả sẵn pricing.tables & pricing.items cho toàn bộ model

Trong kết quả của GET /v1/models, GET /v1/models/sync và GET /v1/models/{id}, trường pricing chứa đầy đủ bảng giá chi tiết từng cấu hình theo thời gian thực: min_price, max_price, default_price, items (từng mức cấu hình) và tables (ma trận Độ phân giải × Thời lượng cho các model Video) để đối tác đồng bộ bảng giá tự động sang web riêng.

Tải file đầu vào

Tham số kiểu file_url (vd image_url, video_url, reference_image_urls) nhận một trong hai:

  • Link công khai http(s) tới file (ảnh PNG/JPG/WEBP, video MP4/MOV/WEBM, âm thanh MP3/WAV/M4A/OGG, phụ đề SRT/VTT) — máy chủ tự tải về, tối đa 10 file và tối đa 100MB/file mỗi lần gọi.
  • URL trả về từ API tải file trực tiếp bên dưới (ảnh/tệp thường tối đa 50MB mặc định, video/âm thanh upload multipart hỗ trợ tới 1GB). Ảnh WEBP tự động chuẩn hoá sang JPG/PNG nét cao.
POST/account/ai/uploads
curl -X POST https://video.ai247.cloud/api/account/ai/uploads \
  -H "X-API-Key: $API_KEY" \
  -F "file=@./anh-mau.jpg"

# => { "url": "https://video.ai247.cloud/uploads/ai/inputs/...", "name": "anh-mau.jpg", "mimeType": "image/jpeg", "size": 183204 }

Lịch sử tác vụ

GET/v1/generations?page=1&limit=20&status=succeeded&model={id}

Mới nhất trước, có phân trang: { "object": "list", "data": [...], "meta": { "total", "page", "limit", "totalPages" } }.

Số dư tài khoản

GET/account/credits
{
  "credits": 54000,           // số dư ví hiện có (VND)
  "concurrency": 15,          // số tác vụ được chạy song song qua API (tối thiểu 15 luồng)
  "totalUsed": 126000,        // tổng tiền đã dùng (VND)
  "pricing": { "spent": 126000, "customDiscount": 5 }
}

Lỗi & giới hạn

Lỗi trả mã HTTP 4xx/5xx kèm thông báo đọc được (kèm mã máy đọc code và danh sách SV thay thế healthy_servers khi gói tắt/bảo trì): { "statusCode": 409, "code": "server_maintenance", "message": "...", "healthy_servers": [...] }

MãÝ nghĩa
400Thiếu / sai tham số, tổ hợp không hợp lệ, tệp đầu vào quá hạn, số dư không đủ
401Key sai, hết hạn hoặc đã thu hồi
403Key không được gọi route này hoặc tài khoản đang bị tạm khoá tạo đơn
404Gói sản phẩm hoặc tác vụ không tồn tại; hoặc gói vừa bị tắt (code: model_disabled / server_not_found)
409Đang chạy quá số luồng song song (mặc định 15 luồng qua API); hoặc gói/SV đang bảo trì (code: server_maintenance), sai SV (server_mismatch), nhiều gói trên cùng SV khi bật strict (ambiguous_package)
429Gọi quá nhanh, chờ rồi thử lại

Giới hạn tốc độ: tạo tác vụ 600 lần/phút (/v1/generations; API cũ 120 lần/phút), báo giá 600 lần/phút, hỏi trạng thái 3.000 lần/phút, tải file 360 lần/phút. Số luồng chạy song song qua API: tối thiểu 15 luồng (hoặc cao hơn theo gói cước).

Riêng các gói máy chủ SV15: mỗi khách gọi qua API được chạy song song tối đa 100 tác vụ, tính riêng, không chiếm 15 luồng chung.

Ví dụ hoàn chỉnh (Đồng bộ gói + Tạo đơn chính xác)

Node.js (18+) — Tự động đồng bộ gói mới / vừa tắt & tạo tác vụ

const BASE = "https://video.ai247.cloud/api";
const headers = { "X-API-Key": process.env.API_KEY, "Content-Type": "application/json" };

async function call(path, init = {}) {
  const res = await fetch(BASE + path, { ...init, headers: { ...headers, ...(init.headers || {}) } });
  const body = await res.json();
  if (!res.ok) throw new Error(`[${res.status} ${body.code ?? ""}] ${body.message}`);
  return body;
}

// 1) Đồng bộ danh mục gói sản phẩm + SV (cron mỗi 2-5 phút dùng ETag + ?since=)
const sync = await call("/v1/models/sync");
console.log("Tổng gói:", sync.summary, "catalog_version:", sync.catalog_version);
// Lưu lại sync.synced_at & sync.catalog_version để lần sau chỉ lấy phần thay đổi:
// const delta = await call(`/v1/models/sync?since=${encodeURIComponent(sync.synced_at)}`);
// -> delta.changes.added (gói mới), delta.changes.disabled (gói vừa tắt), delta.changes.maintenance (vừa bảo trì)

// 2) Tạo tác vụ chốt đúng gói & đúng SV (kèm Idempotency-Key chống trùng đơn)
let gen = await call("/v1/generations", {
  method: "POST",
  headers: { "Idempotency-Key": "order-demo-001" },
  body: JSON.stringify({"model":"nano-banana-2.1","server":"sv4","prompt":"Một chú mèo phi hành gia","aspect_ratio":"16:9","resolution":"1k"}),
});

// 3) Hỏi trạng thái tới khi xong
while (["queued", "processing"].includes(gen.status)) {
  await new Promise((r) => setTimeout(r, 5000));
  gen = await call("/v1/generations/" + gen.id);
}
if (gen.status !== "succeeded") throw new Error(gen.error ?? gen.status);
console.log(gen.output.files.map((f) => f.url));

Python 3

import os, time, requests

BASE = "https://video.ai247.cloud/api"
H = {"X-API-Key": os.environ["API_KEY"]}

def call(method, path, **kw):
    extra_h = kw.pop("headers", {})
    r = requests.request(method, BASE + path, headers={**H, **extra_h}, timeout=60, **kw)
    body = r.json()
    if not r.ok:
        raise RuntimeError(f"[{r.status_code} {body.get('code', '')}] {body.get('message')}")
    return body

# 1) Đồng bộ gói mới / vừa tắt (có thể truyền ?since=<ISO_TIME> cho các lần chạy tiếp theo)
sync = call("GET", "/v1/models/sync")
print("Danh mục:", sync["summary"], "version:", sync["catalog_version"])

# 2) Gửi tạo tác vụ kèm Idempotency-Key chống trùng đơn
gen = call(
    "POST",
    "/v1/generations",
    headers={"Idempotency-Key": "order-demo-001"},
    json={"model":"nano-banana-2.1","server":"sv4","prompt":"Một chú mèo phi hành gia","aspect_ratio":"16:9","resolution":"1k"},
)

while gen["status"] in ("queued", "processing"):
    time.sleep(5)
    gen = call("GET", f"/v1/generations/{gen['id']}")

if gen["status"] != "succeeded":
    raise RuntimeError(gen.get("error") or gen["status"])
print([f["url"] for f in gen["output"]["files"]])

Model hiện có & Bảng giá chi tiết từng lựa chọn

Bảng giá dưới đây đồng bộ trực tiếp 100% theo thời gian thực với hệ thống (nếu tài khoản của bạn có % chiết khấu riêng sẽ tự động hiện sẵn mức giá sau giảm). Bấm vào mã model để mở tài liệu chi tiết và code mẫu tích hợp của model đó.

batch-outfit Thay trang phục hàng loạtimage1/1 SV sống
Chọn Server:
API payload: {"model": "batch-outfit", "server": "sv1"}
params (SV1): image_url, garment_url, note
Theo tham số
Chi tiết API (SV1)
digital-art Digital Artimage1/1 SV sống
Chọn Server:
API payload: {"model": "digital-art", "server": "sv3"}
params (SV3): image_url, resolution
Theo tham số
Chi tiết API (SV3)
fast Fastimage1/1 SV sống
Chọn Server:
API payload: {"model": "fast", "server": "sv3"}
params (SV3): image_url, resolution
Theo tham số
Chi tiết API (SV3)
fidelity Fidelityimage1/1 SV sống
Chọn Server:
API payload: {"model": "fidelity", "server": "sv3"}
params (SV3): image_url, resolution
Theo tham số
Chi tiết API (SV3)
flux-2-pro FLUX.2 Proimage1/1 SV sống
Chọn Server:
API payload: {"model": "flux-2-pro", "server": "sv20"}
params (SV20): prompt, aspect, quality
Theo tham số
Chi tiết API (SV20)
nano-banana-pro/edit Gemini 3 Pro Imageimage1/1 SV sống
Chọn Server:
API payload: {"model": "nano-banana-pro/edit", "server": "sv7"}route_id: gemini-3-pro-image/edit-2
params (SV7): image_urls, prompt, size
Theo tham số
Chi tiết API (SV7)
nano-banana-pro Gemini 3 Pro Imageimage3/3 SV sống
Chọn Server:
API payload: {"model": "nano-banana-pro", "server": "sv7"}route_id: gemini-3-pro-image/image
params (SV7): prompt, size, n
Theo tham số
Chi tiết API (SV7)
nano-banana-2/edit Gemini 3.1 Flash Imageimage1/1 SV sống
Chọn Server:
API payload: {"model": "nano-banana-2/edit", "server": "sv7"}route_id: gemini-3.1-flash-image/edit-2
params (SV7): image_urls, prompt, size
Theo tham số
Chi tiết API (SV7)
nano-banana-2 Gemini 3.1 Flash Imageimage3/3 SV sống
Chọn Server:
API payload: {"model": "nano-banana-2", "server": "sv7"}route_id: gemini-3.1-flash-image/image
params (SV7): prompt, size, n
Theo tham số
Chi tiết API (SV7)
nano-banana-2-lite Gemini 3.1 Flash Lite Imageimage2/2 SV sống
Chọn Server:
API payload: {"model": "nano-banana-2-lite", "server": "sv7"}route_id: gemini-3.1-flash-lite-image
params (SV7): prompt, size, n
Theo tham số
Chi tiết API (SV7)
nano-banana-2-lite/edit Gemini 3.1 Flash Lite Imageimage1/1 SV sống
Chọn Server:
API payload: {"model": "nano-banana-2-lite/edit", "server": "sv7"}route_id: gemini-3.1-flash-lite-image/edit
params (SV7): image_urls, prompt, size
Theo tham số
Chi tiết API (SV7)
gemini-image Gemini Imageimage1/1 SV sống
Chọn Server:
API payload: {"model": "gemini-image", "server": "sv7"}
params (SV7): prompt, size, n
Theo tham số
Chi tiết API (SV7)
gemini-image/edit Gemini Imageimage1/1 SV sống
Chọn Server:
API payload: {"model": "gemini-image/edit", "server": "sv7"}
params (SV7): image_urls, prompt, size
Theo tham số
Chi tiết API (SV7)
nano-banana-2.1 Nano Banana 2 Low-Costimage3/3 SV sống
Chọn Server:
API payload: {"model": "nano-banana-2.1", "server": "sv4"}route_id: nano-banana2-lowcost
params (SV4): prompt, aspect_ratio, resolution, image_url, image2_urls
Theo tham số
Chi tiết API (SV4)
nano-banana-2.1/edit Gemini Nano Banana 2.1image1/1 SV sống
Chọn Server:
API payload: {"model": "nano-banana-2.1/edit", "server": "sv7"}route_id: gemini-nano-banana-2.1/edit
params (SV7): image_urls, prompt, size
Theo tham số
Chi tiết API (SV7)
gpt-image-2.0 GPT Image 2.0image1/1 SV sống
Chọn Server:
API payload: {"model": "gpt-image-2.0", "server": "sv15"}route_id: gpt-image-2-0
params (SV15): prompt, reference_image_urls, aspect_ratio, detail_level
Theo tham số
Chi tiết API (SV15)
gpt-image-2.5-flare GPT Image 2.5 Flareimage2/2 SV sống
Chọn Server:
API payload: {"model": "gpt-image-2.5-flare", "server": "sv7"}route_id: gpt-image-2.5-flare/image-2
params (SV7): prompt, size, n
Theo tham số
Chi tiết API (SV7)
gpt-image-2.5-sunburst GPT Image 2.5 Sunburstimage2/2 SV sống
Chọn Server:
API payload: {"model": "gpt-image-2.5-sunburst", "server": "sv7"}route_id: gpt-image-2.5-sunburst/image-2
params (SV7): prompt, size, n
Theo tham số
Chi tiết API (SV7)
gpt-image-2.6-flare GPT Image 2.6 Flareimage2/2 SV sống
Chọn Server:
API payload: {"model": "gpt-image-2.6-flare", "server": "sv7"}
params (SV7): prompt, size, n
Theo tham số
Chi tiết API (SV7)
gpt-image-2.6-sunburst GPT Image 2.6 Sunburstimage2/2 SV sống
Chọn Server:
API payload: {"model": "gpt-image-2.6-sunburst", "server": "sv7"}
params (SV7): prompt, size, n
Theo tham số
Chi tiết API (SV7)
gpt-image-2 GPT Image 2.0 -Ảnh AI Studio 4Kimage2/2 SV sống
Chọn Server:
API payload: {"model": "gpt-image-2", "server": "sv4"}route_id: gpt-image-2-lowcost
params (SV4): prompt, aspect_ratio, resolution, image_url, image2_urls
Theo tham số
Chi tiết API (SV4)
gpt-image-2.5-flare/edit GPT 2.5 Flareimage1/1 SV sống
Chọn Server:
API payload: {"model": "gpt-image-2.5-flare/edit", "server": "sv7"}route_id: gpt-image-2.5-flare/edit-3
params (SV7): image_urls, prompt, size
Theo tham số
Chi tiết API (SV7)
gpt-image-2.5-sunburst/edit GPT 2.5 Sunburstimage1/1 SV sống
Chọn Server:
API payload: {"model": "gpt-image-2.5-sunburst/edit", "server": "sv7"}route_id: gpt-image-2.5-sunburst/edit-3
params (SV7): image_urls, prompt, size
Theo tham số
Chi tiết API (SV7)
gpt-image-2.6-flare/edit GPT 2.6 Flareimage1/1 SV sống
Chọn Server:
API payload: {"model": "gpt-image-2.6-flare/edit", "server": "sv7"}
params (SV7): image_urls, prompt, size
Theo tham số
Chi tiết API (SV7)
gpt-image-2.6-sunburst/edit GPT 2.6 Sunburstimage1/1 SV sống
Chọn Server:
API payload: {"model": "gpt-image-2.6-sunburst/edit", "server": "sv7"}
params (SV7): image_urls, prompt, size
Theo tham số
Chi tiết API (SV7)
gpt-image-2/edit GPT 2image1/1 SV sống
Chọn Server:
API payload: {"model": "gpt-image-2/edit", "server": "sv7"}route_id: gpt-image-2/edit-3
params (SV7): image_urls, prompt, size
Theo tham số
Chi tiết API (SV7)
grok-imagine-2.0 Grok Imagine 2.0image3/3 SV sống
Chọn Server:
API payload: {"model": "grok-imagine-2.0", "server": "sv9"}route_id: grok-imagine-2.0/grok-image
params (SV9): prompt, aspect_ratio, resolution, n
grok-imagine-1.0 Grok Imagine 1.0image1/1 SV sống
Chọn Server:
API payload: {"model": "grok-imagine-1.0", "server": "sv9"}
params (SV9): prompt, aspect_ratio, n
grok-imagine-1.0/edit Grok Imagine 1.0image1/1 SV sống
Chọn Server:
API payload: {"model": "grok-imagine-1.0/edit", "server": "sv9"}route_id: grok-imagine-1.0/grok-edit
params (SV9): image_urls, prompt, aspect_ratio
grok-imagine-2.0/edit Grok Imagine 2.0image1/1 SV sống
Chọn Server:
API payload: {"model": "grok-imagine-2.0/edit", "server": "sv9"}route_id: grok-imagine-2.0/grok-edit
params (SV9): image_urls, prompt, aspect_ratio, resolution
mirror-kol Tạo KOL trước gươngimage1/1 SV sống
Chọn Server:
API payload: {"model": "mirror-kol", "server": "sv1"}
params (SV1): mk_gender, mk_gender_text, mk_age, mk_age_text, mk_hair, mk_hair_text, mk_outfit, mk_outfit_text, mk_scene, mk_scene_text, mk_phone, mk_phone_text, mk_face, image_url, prompt
Theo tham số
Chi tiết API (SV1)
muse-image/edit Muse Imageimage1/1 SV sống
Chọn Server:
API payload: {"model": "muse-image/edit", "server": "sv7"}route_id: muse-image/edit-2
params (SV7): image_urls, prompt, size
Theo tham số
Chi tiết API (SV7)
muse-image Muse Imageimage1/1 SV sống
Chọn Server:
API payload: {"model": "muse-image", "server": "sv7"}route_id: muse-image/image
params (SV7): prompt, size, n
Theo tham số
Chi tiết API (SV7)
nano-2/edit Nano 2image1/1 SV sống
Chọn Server:
API payload: {"model": "nano-2/edit", "server": "sv1"}route_id: nano-2/image-outfit
params (SV1): image_url, garment_url, outfit_part, background, prompt, aspect_ratio, resolution
Theo tham số
Chi tiết API (SV1)
nano-pro/edit Nano Proimage1/1 SV sống
Chọn Server:
API payload: {"model": "nano-pro/edit", "server": "sv1"}route_id: nano-pro/image-outfit
params (SV1): image_url, garment_url, outfit_part, background, prompt, aspect_ratio, resolution
Theo tham số
Chi tiết API (SV1)
nano-pro/upscale Nano Proimage1/1 SV sống
Chọn Server:
API payload: {"model": "nano-pro/upscale", "server": "sv1"}route_id: nano-pro/image-upscale
params (SV1): image_url, prompt, resolution
Theo tham số
Chi tiết API (SV1)
s102-flux-2-pro FLUX.2 PROimage1/1 SV sống
Chọn Server:
API payload: {"model": "s102-flux-2-pro", "server": "sv21"}
params (SV21): prompt, p_aspect_ratio, p_image_reference_urls, p_resolution
Theo tham số
Chi tiết API (SV21)
s106-kling-o1-image Kling O1 Imageimage1/1 SV sống
Chọn Server:
API payload: {"model": "s106-kling-o1-image", "server": "sv21"}
params (SV21): prompt, p_aspect_ratio, p_image_reference_urls, p_resolution
Theo tham số
Chi tiết API (SV21)
s145-higgsfield-soul-2.0 Higgsfield Soul 2.0image1/1 SV sống
Chọn Server:
API payload: {"model": "s145-higgsfield-soul-2.0", "server": "sv21"}route_id: s145-higgsfield-soul-2-0
params (SV21): prompt, p_aspect_ratio, p_image_references_url, p_quality, p_enhance_prompt
Theo tham số
Chi tiết API (SV21)
s146-higgsfield-soul-cinematic Higgsfield Soul Cinematicimage1/1 SV sống
Chọn Server:
API payload: {"model": "s146-higgsfield-soul-cinematic", "server": "sv21"}
params (SV21): prompt, p_aspect_ratio, p_image_references_url, p_quality, p_enhance_prompt
Theo tham số
Chi tiết API (SV21)
s167-topaz-nang-cap-anh-ai Topaz Nâng cấp ảnh AIimage1/1 SV sống
Chọn Server:
API payload: {"model": "s167-topaz-nang-cap-anh-ai", "server": "sv21"}
params (SV21): prompt, p_input_image_url, p_scale, p_upscale_model, p_face_enhance
Theo tham số
Chi tiết API (SV21)
s171-topaz-wonder-3.5-image-upscaler Topaz Wonder 3.5image1/1 SV sống
Chọn Server:
API payload: {"model": "s171-topaz-wonder-3.5-image-upscaler", "server": "sv21"}route_id: s171-topaz-wonder-3-5-image-upscaler
params (SV21): prompt, p_input_image_url, p_scale
Theo tham số
Chi tiết API (SV21)
s172-topaz-bloom-2-image-upscaler Topaz Bloom 2image1/1 SV sống
Chọn Server:
API payload: {"model": "s172-topaz-bloom-2-image-upscaler", "server": "sv21"}
params (SV21): prompt, p_input_image_url, p_scale, p_color_preservation, p_creativity_strength, p_face_preservation
Theo tham số
Chi tiết API (SV21)
s211-higgsfield-face-swap Higgsfield Face Swapimage1/1 SV sống
Chọn Server:
API payload: {"model": "s211-higgsfield-face-swap", "server": "sv21"}
params (SV21): prompt, p_character_input_image_url, p_scene_input_image_url
Theo tham số
Chi tiết API (SV21)
s239-topaz-wonder-4-image-upscaler Topaz Wonder 4image1/1 SV sống
Chọn Server:
API payload: {"model": "s239-topaz-wonder-4-image-upscaler", "server": "sv21"}
params (SV21): prompt, p_input_image_url, p_scale, p_select_model
Theo tham số
Chi tiết API (SV21)
s250-product-upscaler-lam-ro-tang-kich-thuoc Product Upscalerimage1/1 SV sống
Chọn Server:
API payload: {"model": "s250-product-upscaler-lam-ro-tang-kich-thuoc", "server": "sv21"}
params (SV21): prompt, p_input_image_url, p_recover_faces, p_scale, p_enhancement_strength
Theo tham số
Chi tiết API (SV21)
s50-z-image Z Imageimage1/1 SV sống
Chọn Server:
API payload: {"model": "s50-z-image", "server": "sv21"}
params (SV21): prompt, p_aspect_ratio
Theo tham số
Chi tiết API (SV21)
s53-seedream-4.5 Seedream 4.5image1/1 SV sống
Chọn Server:
API payload: {"model": "s53-seedream-4.5", "server": "sv21"}route_id: s53-seedream-4-5
params (SV21): prompt, p_aspect_ratio, p_image_reference_urls, p_quality
Theo tham số
Chi tiết API (SV21)
seedream-4.0s Tạo & Sửa ảnh Seedream 4.0Simage1/1 SV sống
Chọn Server:
API payload: {"model": "seedream-4.0s", "server": "sv18"}
params (SV18): prompt, image_urls, aspect_ratio, n
Theo tham số
Chi tiết API (SV18)
seedream-5.5 Seedream 5.5image1/1 SV sống
Chọn Server:
API payload: {"model": "seedream-5.5", "server": "sv15"}route_id: seedream-5-5
params (SV15): prompt, reference_image_urls, aspect_ratio, background
Theo tham số
Chi tiết API (SV15)
seedream-5.0 Seedream 5.0image3/3 SV sống
Chọn Server:
API payload: {"model": "seedream-5.0", "server": "sv1"}Chốt đúng mã gói
params (SV1): prompt, reference_image_urls, aspect_ratio
Theo tham số
Chi tiết API (SV1)
seedream-5.0/edit Seedream 5.0image1/1 SV sống
Chọn Server:
API payload: {"model": "seedream-5.0/edit", "server": "sv1"}route_id: seedream-5.0/image-outfit
params (SV1): image_url, garment_url, outfit_part, background, prompt, aspect_ratio
Theo tham số
Chi tiết API (SV1)
seedream-5.0/upscale Seedream 5.0image1/1 SV sống
Chọn Server:
API payload: {"model": "seedream-5.0/upscale", "server": "sv1"}route_id: seedream-5.0/image-upscale
params (SV1): image_url, prompt
Theo tham số
Chi tiết API (SV1)
standard Standardimage1/1 SV sống
Chọn Server:
API payload: {"model": "standard", "server": "sv3"}
params (SV3): image_url, resolution
Theo tham số
Chi tiết API (SV3)
studio-image-ai Tạo ảnh đa model & ghép ảnh tối đa 10 ảnh tham chiếuimage1/1 SV sống
Chọn Server:
API payload: {"model": "studio-image-ai", "server": "sv4"}
params (SV4): prompt, aspect_ratio, image_url, additional_image_urls
Theo tham số
Chi tiết API (SV4)
ultra-sharp Ultra Sharpimage1/1 SV sống
Chọn Server:
API payload: {"model": "ultra-sharp", "server": "sv3"}
params (SV3): image_url, resolution
Theo tham số
Chi tiết API (SV3)
image-upscale-4k Ultra Fast Upscale 4Kimage1/1 SV sống
Chọn Server:
API payload: {"model": "image-upscale-4k", "server": "sv1"}route_id: wf-upscale-ultra
params (SV1): image_url
Theo tham số
Chi tiết API (SV1)
z-image Z-Imageimage1/1 SV sống
Chọn Server:
API payload: {"model": "z-image", "server": "sv3"}
params (SV3): prompt, aspect_ratio, resolution, n
Theo tham số
Chi tiết API (SV3)
google-omni-1.1-flash Google Omni 1.1 Flashvideo1/1 SV sống
Chọn Server:
API payload: {"model": "google-omni-1.1-flash", "server_id": "sv3"}
params (SV3): server, prompt, image_urls, video_urls, quality, duration, aspect_ratio, n
Theo tham số
Chi tiết API (SV3)
google-omni-1.2-flash Google Omni 1.2 Flashvideo1/1 SV sống
Chọn Server:
API payload: {"model": "google-omni-1.2-flash", "server_id": "sv3"}
params (SV3): server, prompt, image_urls, video_urls, quality, duration, aspect_ratio, n
Theo tham số
Chi tiết API (SV3)
google-veo-3.1 Google VEO 3.1video2/2 SV sống
Chọn Server:
API payload: {"model": "google-veo-3.1", "server": "sv3"}
params (SV3): prompt, image_urls, quality, aspect_ratio, n, mode
Theo tham số
Chi tiết API (SV3)
grok-imagine-video-1.0 Grok Imagine Video 1.0video1/1 SV sống
Chọn Server:
API payload: {"model": "grok-imagine-video-1.0", "server": "sv9"}
params (SV9): mode, image_urls, image_url, last_frame_url, prompt, aspect_ratio, duration, resolution
grok-video-1.5 Grok Imagine Video 1.5video1/1 SV sống
Chọn Server:
API payload: {"model": "grok-video-1.5", "server": "sv9"}route_id: grok-imagine-video-1.5
params (SV9): mode, image_urls, image_url, last_frame_url, prompt, aspect_ratio, duration, resolution
grok-imagine-video-1.5-lite Grok Imagine Video 1.5 Litevideo1/1 SV sống
Chọn Server:
API payload: {"model": "grok-imagine-video-1.5-lite", "server": "sv9"}
params (SV9): mode, image_url, last_frame_url, prompt, aspect_ratio, duration, resolution
grok-video-10 Grok Imagine Video 1.0video1/1 SV sống
Chọn Server:
API payload: {"model": "grok-video-10", "server": "sv22"}
params (SV22): mode, image_url, prompt, seconds, resolution, aspect_ratio
Theo tham số
Chi tiết API (SV22)
grok-video-15 Grok Imagine Video 1.5video1/1 SV sống
Chọn Server:
API payload: {"model": "grok-video-15", "server": "sv22"}
params (SV22): mode, image_url, last_image_url, image_urls, prompt, seconds, resolution, aspect_ratio
Theo tham số
Chi tiết API (SV22)
grok-video-15-lite Grok Imagine Video 1.5 Litevideo1/1 SV sống
Chọn Server:
API payload: {"model": "grok-video-15-lite", "server": "sv22"}
params (SV22): mode, image_url, prompt, seconds, resolution, aspect_ratio
Theo tham số
Chi tiết API (SV22)
kling-2.6 Kling 2.6 Provideo1/1 SV sống
Chọn Server:
API payload: {"model": "kling-2.6", "server": "sv1"}
params (SV1): image_url, end_image_url, prompt, option
Theo tham số
Chi tiết API (SV1)
kling-3.0 Kling 3.0 Mastervideo3/3 SV sống
Chọn Server:
API payload: {"model": "kling-3.0", "server": "sv1"}Chốt đúng mã gói
params (SV1): image_url, end_image_url, prompt, option
Theo tham số
Chi tiết API (SV1)
kling-3.0-master Kling 3.0 Mastervideo1/1 SV sống
Chọn Server:
API payload: {"model": "kling-3.0-master", "server": "sv1"}
params (SV1): image_url, end_image_url, prompt, option
Theo tham số
Chi tiết API (SV1)
kling-4.0 Kling 4.0video3/3 SV sống
Chọn Server:
API payload: {"model": "kling-4.0", "server": "sv1"}Chốt đúng mã gói
params (SV1): image_url, end_image_url, prompt
Theo tham số
Chi tiết API (SV1)
kling-4.0/first-last-frame Kling 4.0video1/1 SV sống
Chọn Server:
API payload: {"model": "kling-4.0/first-last-frame", "server": "sv1"}
params (SV1): image_url, end_image_url, prompt
Theo tham số
Chi tiết API (SV1)
minimax-h3 MiniMax H3video4/4 SV sống
Chọn Server:
API payload: {"model": "minimax-h3", "server": "sv23"}
params (SV23): prompt, image_url, resolution, duration
minimax-h3-super Minimax H3 Supervideo0/1 SV sống
Chọn Server:
API payload: {"model": "minimax-h3-super", "server": "sv4"}
params (SV4): prompt, duration, aspect_ratio, image_urls, upscale4k
Theo tham số
Chi tiết API (SV4)
motion-2.6 Kling Motion 2.6video2/2 SV sống
Chọn Server:
API payload: {"model": "motion-2.6", "server": "sv1"}Chốt đúng mã gói
params (SV1): image_url, video_url, prompt, upscale4k
Theo tham số
Chi tiết API (SV1)
motion-3.0 Motion 3.0video2/2 SV sống
Chọn Server:
API payload: {"model": "motion-3.0", "server": "sv1"}Chốt đúng mã gói
params (SV1): image_url, video_url, prompt, upscale4k
Theo tham số
Chi tiết API (SV1)
motion-v2-photo-bg-10s Motion Control Nền Ảnh V2video0/1 SV sống
Chọn Server:
API payload: {"model": "motion-v2-photo-bg-10s", "server": "sv4"}
params (SV4): image_url, video_url, upscale4k
Theo tham số
Chi tiết API (SV4)
motion-v2-photo-bg-20s Motion Control Nền Ảnh V2 —Tối đa 20svideo0/1 SV sống
Chọn Server:
API payload: {"model": "motion-v2-photo-bg-20s", "server": "sv4"}
params (SV4): image_url, video_url, upscale4k
Theo tham số
Chi tiết API (SV4)
motion-v2-video-bg-10s Motion Control Nền Video V2video0/1 SV sống
Chọn Server:
API payload: {"model": "motion-v2-video-bg-10s", "server": "sv4"}
params (SV4): image_url, video_url, upscale4k
Theo tham số
Chi tiết API (SV4)
motion-v2-video-bg-20s Motion Control Nền Video V2 —Tối đa 20svideo0/1 SV sống
Chọn Server:
API payload: {"model": "motion-v2-video-bg-20s", "server": "sv4"}
params (SV4): image_url, video_url, upscale4k
Theo tham số
Chi tiết API (SV4)
motion-v3-photo-bg-10s Motion Control Nền Ảnh V3 Plusvideo0/1 SV sống
Chọn Server:
API payload: {"model": "motion-v3-photo-bg-10s", "server": "sv4"}
params (SV4): image_url, video_url, upscale4k
Theo tham số
Chi tiết API (SV4)
motion-v3-photo-bg-20s Motion Control Nền Ảnh V3 Plusvideo0/1 SV sống
Chọn Server:
API payload: {"model": "motion-v3-photo-bg-20s", "server": "sv4"}
params (SV4): image_url, video_url, upscale4k
Theo tham số
Chi tiết API (SV4)
motion-v3-video-bg-10s Motion Control Nền Video V3 Plusvideo0/1 SV sống
Chọn Server:
API payload: {"model": "motion-v3-video-bg-10s", "server": "sv4"}
params (SV4): image_url, video_url, upscale4k
Theo tham số
Chi tiết API (SV4)
motion-v3-video-bg-20s Motion Control Nền Video V3 Plusvideo0/1 SV sống
Chọn Server:
API payload: {"model": "motion-v3-video-bg-20s", "server": "sv4"}
params (SV4): image_url, video_url, upscale4k
Theo tham số
Chi tiết API (SV4)
s109-runway-gen-4.5 Runway Gen-4.5video1/1 SV sống
Chọn Server:
API payload: {"model": "s109-runway-gen-4.5", "server": "sv21"}route_id: s109-runway-gen-4-5
params (SV21): prompt, p_size, p_duration, p_input_image_url, upscale4k
Theo tham số
Chi tiết API (SV21)
s110-ray-3-14-5s Ray 3.14 5svideo1/1 SV sống
Chọn Server:
API payload: {"model": "s110-ray-3-14-5s", "server": "sv21"}
params (SV21): prompt, p_size, p_start_image_url, p_end_image_url, upscale4k
Theo tham số
Chi tiết API (SV21)
s151-higgsfield-genjutsu-lite-thay-the-vat-th Higgsfield Genjutsu Litevideo1/1 SV sống
Chọn Server:
API payload: {"model": "s151-higgsfield-genjutsu-lite-thay-the-vat-th", "server": "sv21"}
params (SV21): prompt, p_aspect_ratio, p_resolution, p_image_reference_urls, p_video_references_url
Theo tham số
Chi tiết API (SV21)
s209-kling-2.5-turbo-hd Kling 2.5 Turbo HDvideo1/1 SV sống
Chọn Server:
API payload: {"model": "s209-kling-2.5-turbo-hd", "server": "sv21"}route_id: s209-kling-2-5-turbo-hd
params (SV21): prompt, p_input_image_url, p_enhance_prompt, upscale4k
Theo tham số
Chi tiết API (SV21)
s214-kling-2.6-motion-control Kling 2.6 Motion Controlvideo1/1 SV sống
Chọn Server:
API payload: {"model": "s214-kling-2.6-motion-control", "server": "sv21"}route_id: s214-kling-2-6-motion-control
params (SV21): prompt, p_mode, p_character_orientation, p_image_references_url, p_input_video_url, p_background_source, upscale4k
Theo tham số
Chi tiết API (SV21)
s261-veo-3.1-lite VEO 3.1 LITEvideo1/1 SV sống
Chọn Server:
API payload: {"model": "s261-veo-3.1-lite", "server": "sv21"}route_id: s261-veo-3-1-lite
params (SV21): prompt, p_aspect_ratio, p_duration, p_reference_image_urls, upscale4k
Theo tham số
Chi tiết API (SV21)
s90-minimax-hailuo-2.3-6s Minimax Hailuo 2.3 6svideo1/1 SV sống
Chọn Server:
API payload: {"model": "s90-minimax-hailuo-2.3-6s", "server": "sv21"}route_id: s90-minimax-hailuo-2-3-6s
params (SV21): prompt, p_input_image_url, p_enhance_prompt, upscale4k
Theo tham số
Chi tiết API (SV21)
seedance-2.0 Seedance 2.0video2/3 SV sống
Chọn Server:
API payload: {"model": "seedance-2.0", "server": "sv14"}route_id: seedance-2.0-4
params (SV14): engine, image_urls, prompt, aspect_ratio, duration, resolution, speed
Theo tham số
Chi tiết API (SV14)
seedance-2.0-fast Seedance 2.0 Fastvideo3/3 SV sống
Chọn Server:
API payload: {"model": "seedance-2.0-fast", "server": "sv15"}route_id: seedance-2-0-fast
params (SV15): prompt, reference_image_urls, duration, aspect_ratio, audio, upscale4k
Theo tham số
Chi tiết API (SV15)
seedance-2.0-lite Seedance 2.0 Litevideo0/1 SV sống
Chọn Server:
API payload: {"model": "seedance-2.0-lite", "server": "sv20"}route_id: seedance-2-0-lite
params (SV20): prompt, mode, image_urls, aspect_ratio, resolution, duration, audio
Theo tham số
Chi tiết API (SV20)
seedance-2.5 Seedance 2.5video5/5 SV sống
Chọn Server:
API payload: {"model": "seedance-2.5", "server": "sv3"}
params (SV3): prompt, image_urls, video_urls, audio_urls, quality, duration, aspect_ratio, n, audio
Theo tham số
Chi tiết API (SV3)
seedance-2.5-12s Seedance 2.5 12svideo1/1 SV sống
Chọn Server:
API payload: {"model": "seedance-2.5-12s", "server": "sv20"}route_id: seedance-2-5-12s
params (SV20): prompt, mode, image_urls, aspect_ratio, resolution, audio
Theo tham số
Chi tiết API (SV20)
seedance-2.5-flash Seedance 2.5 Flash 480pvideo3/3 SV sống
Chọn Server:
API payload: {"model": "seedance-2.5-flash", "server": "sv14"}route_id: seedance-2.5-flash-2
params (SV14): image_urls, video_urls, audio_urls, prompt, aspect_ratio, duration, upscale4k
Theo tham số
Chi tiết API (SV14)
seedance-2.0-fast-speed Seedance 2.0 Fast Speedvideo1/1 SV sống
Chọn Server:
API payload: {"model": "seedance-2.0-fast-speed", "server": "sv14"}
params (SV14): image_urls, video_urls, audio_urls, prompt, aspect_ratio, duration, resolution
Theo tham số
Chi tiết API (SV14)
seedance-2.0-fast-ultra Seedance 2.0 Fast Ultra HDvideo1/1 SV sống
Chọn Server:
API payload: {"model": "seedance-2.0-fast-ultra", "server": "sv18"}
params (SV18): prompt, image_urls, image_mode, video_urls, audio_file_urls, resolution, duration, aspect_ratio, audio
Theo tham số
Chi tiết API (SV18)
seedance-2.0-mini Seedance 2.0 Minivideo2/2 SV sống
Chọn Server:
API payload: {"model": "seedance-2.0-mini", "server_id": "sv3"}
params (SV3): server, prompt, image_urls, audio_urls, quality, duration, aspect_ratio, n, audio
Theo tham số
Chi tiết API (SV3)
seedance-2.0-mini-speed Seedance 2.0 Mini Speedvideo1/1 SV sống
Chọn Server:
API payload: {"model": "seedance-2.0-mini-speed", "server": "sv14"}
params (SV14): image_urls, video_urls, audio_urls, prompt, aspect_ratio, duration, resolution
Theo tham số
Chi tiết API (SV14)
seedance-2.0-ultra Seedance 2.0 Ultra HDvideo1/1 SV sống
Chọn Server:
API payload: {"model": "seedance-2.0-ultra", "server": "sv18"}
params (SV18): prompt, image_urls, image_mode, video_urls, audio_file_urls, resolution, duration, aspect_ratio, audio
Theo tham số
Chi tiết API (SV18)
seedance-2.5-flash-ultra Seedance 2.5 Flash Ultra HDvideo1/1 SV sống
Chọn Server:
API payload: {"model": "seedance-2.5-flash-ultra", "server": "sv18"}
params (SV18): prompt, image_urls, image_mode, video_urls, audio_file_urls, resolution, duration, aspect_ratio, audio
Theo tham số
Chi tiết API (SV18)
seedance-2.5-ultra Seedance 2.5 Ultra HDvideo1/1 SV sống
Chọn Server:
API payload: {"model": "seedance-2.5-ultra", "server": "sv18"}
params (SV18): prompt, image_urls, image_mode, video_urls, audio_file_urls, resolution, duration, aspect_ratio, audio
Theo tham số
Chi tiết API (SV18)
start-end-3.0 Start & End 3.0video1/1 SV sống
Chọn Server:
API payload: {"model": "start-end-3.0", "server": "sv1"}
params (SV1): option, image_url, end_image_url, prompt
Theo tham số
Chi tiết API (SV1)
start-end-4.0 Start & End 4.0video2/2 SV sống
Chọn Server:
API payload: {"model": "start-end-4.0", "server": "sv1"}Chốt đúng mã gói
params (SV1): option, image_url, end_image_url, prompt
Theo tham số
Chi tiết API (SV1)
studio-video-ai Minimax H3video2/2 SV sống
Chọn Server:
API payload: {"model": "studio-video-ai", "server": "sv4"}Chốt đúng mã gói
params (SV4): prompt, duration, aspect_ratio, resolution, enable_audio, audio_url, image_url, additional_image_urls, first_image_url, last_image_url
Theo tham số
Chi tiết API (SV4)
thang-long-det-video-beta Tạo video AIvideo1/1 SV sống
Chọn Server:
API payload: {"model": "thang-long-det-video-beta", "server": "sv19"}
params (SV19): prompt, input_mode, image_urls, aspect_ratio, resolution
Theo tham số
Chi tiết API (SV19)
thuoc-lao-seedance-2.0 Tạo video AIvideo1/1 SV sống
Chọn Server:
API payload: {"model": "thuoc-lao-seedance-2.0", "server": "sv19"}route_id: thuoc-lao-seedance-2-0
params (SV19): prompt, input_mode, image_urls, aspect_ratio, duration, resolution
Theo tham số
Chi tiết API (SV19)
thuoc-lao-seedance-2.0-mini Tạo video AIvideo1/1 SV sống
Chọn Server:
API payload: {"model": "thuoc-lao-seedance-2.0-mini", "server": "sv19"}route_id: thuoc-lao-seedance-2-0-mini
params (SV19): prompt, input_mode, image_urls, aspect_ratio, duration, resolution
Theo tham số
Chi tiết API (SV19)
thuoc-lao-seedance-2.5 Tạo video AIvideo1/1 SV sống
Chọn Server:
API payload: {"model": "thuoc-lao-seedance-2.5", "server": "sv19"}route_id: thuoc-lao-seedance-2-5
params (SV19): prompt, input_mode, image_urls, aspect_ratio, duration, resolution
Theo tham số
Chi tiết API (SV19)
thuoc-lao-seedance-2.5-flash Tạo video AIvideo1/1 SV sống
Chọn Server:
API payload: {"model": "thuoc-lao-seedance-2.5-flash", "server": "sv19"}route_id: thuoc-lao-seedance-2-5-flash
params (SV19): prompt, input_mode, image_urls, aspect_ratio, duration, resolution
Theo tham số
Chi tiết API (SV19)
tool-ban-hang Video review sản phẩmvideo1/1 SV sống
Chọn Server:
API payload: {"model": "tool-ban-hang", "server": "sv1"}
params (SV1): image_url, character_image_url, tbh_product_name, tbh_gender, tbh_age, tbh_context, tbh_context_text, tbh_style, tbh_accent, tbh_shot_type, tbh_product_desc, tbh_custom_dialogue, upscale4k
Theo tham số
Chi tiết API (SV1)
vae-motion-control-1080p VAE Motion Control 1080pvideo1/1 SV sống
Chọn Server:
API payload: {"model": "vae-motion-control-1080p", "server": "sv1"}
params (SV1): option, image_url, video_url, prompt
Theo tham số
Chi tiết API (SV1)
vae-motion-control-7 VAE motion control 7video1/1 SV sống
Chọn Server:
API payload: {"model": "vae-motion-control-7", "server": "sv1"}
params (SV1): option, aspect_ratio, image_url, video_url, prompt
Theo tham số
Chi tiết API (SV1)
vae-motion-control-8 VAE motion control 8video0/1 SV sống
Chọn Server:
API payload: {"model": "vae-motion-control-8", "server": "sv1"}
params (SV1): option, aspect_ratio, image_url, video_url, prompt
Theo tham số
Chi tiết API (SV1)
veo-31-lite Veo 3.1 Litevideo1/1 SV sống
Chọn Server:
API payload: {"model": "veo-31-lite", "server": "sv22"}
params (SV22): mode, image_url, image_urls, prompt, aspect_ratio, upscale4k
Theo tham số
Chi tiết API (SV22)
muse-video Muse Videovideo2/2 SV sống
Chọn Server:
API payload: {"model": "video-2", "server": "sv7"}Chốt đúng mã góiroute_id: video-2
params (SV7): prompt, image_urls, duration, size, upscale4k
video-2.2 Nov Videovideo1/1 SV sống
Chọn Server:
API payload: {"model": "video-2.2", "server": "sv7"}route_id: video-2-2
params (SV7): prompt, image_urls, duration, size, upscale4k
video-stitch Ghép Video AI Liền Mạchvideo1/1 SV sống
Chọn Server:
API payload: {"model": "video-stitch", "server": "sv9"}
params (SV9): aspect_ratio, resolution, result_url
video-upscale-4k Làm nét video 4Kvideo1/1 SV sống
Chọn Server:
API payload: {"model": "video-upscale-4k", "server": "sv10"}
params (SV10): video_url
40,5đ / giây
Chi tiết API (SV10)
wan-3.0 Wan 3.0video2/2 SV sống
Chọn Server:
API payload: {"model": "wan-3.0", "server_id": "sv3"}route_id: wan-3.0/video
params (SV3): server, prompt, image_urls, video_urls, audio_urls, quality, duration, aspect_ratio, n
Theo tham số
Chi tiết API (SV3)
convert-subtitles Chuyển phụ đề thành giọng nóiaudio1/1 SV sống
Chọn Server:
API payload: {"model": "convert-subtitles", "server": "sv6"}
params (SV6): voice, subtitle_file_url, srt, language, speed, format
Theo tham số
Chi tiết API (SV6)
google-lyria-2 Google Lyria 2audio1/1 SV sống
Chọn Server:
API payload: {"model": "google-lyria-2", "server": "sv1"}
params (SV1): prompt, instrumental
Theo tham số
Chi tiết API (SV1)
minimax-music-2.6 MiniMax Music 2.6audio1/1 SV sống
Chọn Server:
API payload: {"model": "minimax-music-2.6", "server": "sv1"}
params (SV1): prompt, instrumental
Theo tham số
Chi tiết API (SV1)
s184-elevenlabs-v4-van-ban-thanh-giong-noi ElevenLabs v4audio1/1 SV sống
Chọn Server:
API payload: {"model": "s184-elevenlabs-v4-van-ban-thanh-giong-noi", "server": "sv21"}
params (SV21): prompt, p_voice_id, p_language_code, p_stability, p_similarity_boost, p_speed, p_export_transcript
Theo tham số
Chi tiết API (SV21)
s185-minimax-2.8-turbo-van-ban-thanh-giong-no MiniMax 2.8 Turboaudio1/1 SV sống
Chọn Server:
API payload: {"model": "s185-minimax-2.8-turbo-van-ban-thanh-giong-no", "server": "sv21"}route_id: s185-minimax-2-8-turbo-van-ban-thanh-giong-no
params (SV21): prompt, p_voice_id, p_language_code, p_speed, p_pitch, p_vol, p_export_transcript
Theo tham số
Chi tiết API (SV21)
s186-capcut-voice-van-ban-thanh-giong-noi CapCut Voiceaudio1/1 SV sống
Chọn Server:
API payload: {"model": "s186-capcut-voice-van-ban-thanh-giong-noi", "server": "sv21"}
params (SV21): prompt, p_voice_id, p_language_code, p_speed, p_pitch, p_export_transcript
Theo tham số
Chi tiết API (SV21)
s187-elevenlabs-v4-turbo-van-ban-thanh-giong ElevenLabs v4 Turboaudio1/1 SV sống
Chọn Server:
API payload: {"model": "s187-elevenlabs-v4-turbo-van-ban-thanh-giong", "server": "sv21"}
params (SV21): prompt, p_voice_id, p_language_code, p_stability, p_similarity_boost, p_speed, p_export_transcript
Theo tham số
Chi tiết API (SV21)
s188-minimax-2.8-hd-van-ban-thanh-giong-noi MiniMax 2.8 HDaudio1/1 SV sống
Chọn Server:
API payload: {"model": "s188-minimax-2.8-hd-van-ban-thanh-giong-noi", "server": "sv21"}route_id: s188-minimax-2-8-hd-van-ban-thanh-giong-noi
params (SV21): prompt, p_voice_id, p_language_code, p_speed, p_pitch, p_vol, p_export_transcript
Theo tham số
Chi tiết API (SV21)
s289-tach-giong-khoi-audio Tách giọng khỏi audioaudio1/1 SV sống
Chọn Server:
API payload: {"model": "s289-tach-giong-khoi-audio", "server": "sv21"}
params (SV21): prompt, p_input_audio_url
Theo tham số
Chi tiết API (SV21)
s290-elevenlabs-sound-effects-sfx ElevenLabs Sound Effectsaudio1/1 SV sống
Chọn Server:
API payload: {"model": "s290-elevenlabs-sound-effects-sfx", "server": "sv21"}
params (SV21): prompt, p_duration_seconds, p_prompt_influence
Theo tham số
Chi tiết API (SV21)
Chọn Server:
API payload: {"model": "s98-elevenlabs-van-ban-thanh-giong-noi-tts", "server": "sv21"}
params (SV21): prompt, p_voice_id, p_model_id, p_stability, p_similarity_boost, p_style, p_speed, p_language_code
Theo tham số
Chi tiết API (SV21)
studio-voice-ai AI Lồng Tiếngaudio1/1 SV sống
Chọn Server:
API payload: {"model": "studio-voice-ai", "server": "sv4"}
params (SV4): prompt, voice, instructions
Theo tham số
Chi tiết API (SV4)
suno-music-v1 Suno Music V1audio1/1 SV sống
Chọn Server:
API payload: {"model": "suno-music-v1", "server": "sv1"}
params (SV1): prompt, instrumental
Theo tham số
Chi tiết API (SV1)
tts Giọng đọc CapCut Đa Ngôn Ngữaudio4/4 SV sống
Chọn Server:
API payload: {"model": "tts", "server": "sv3"}Chốt đúng mã gói
params (SV3): voice, text, voice_2, speed
150đ / 1.000 ký tự
Chi tiết API (SV3)
voice-clone Nhân bản giọng nói AIaudio1/1 SV sống
Chọn Server:
API payload: {"model": "voice-clone", "server": "sv6"}
params (SV6): ref_audio_url, ref_text, text, language, gender, speed, pause_preset, format

Nhật ký cập nhật

NgàyThay đổi
27/11/2026Thêm endpoint đồng bộ GET /v1/models/sync (snapshot + delta ?since= gồm added / updated / maintenance / disabled), ETag/304, status & disabled_reason, version_hash, requires_exact_model_id; khoá định tuyến chặt đúng gói + đúng SV (không tự nhảy gói khi gói cụ thể vừa tắt/bảo trì); thêm header Idempotency-Key và đồng bộ concurrency thực tế (15 luồng).
25/11/2026Thêm queue.processing, queue.waiting và eta_seconds cho từng SV ở /v1/models/groups, /v1/models/{model}/servers và available_servers của /v1/models/{id}.
25/11/2026Web: tạo video từ ảnh tự chọn tỉ lệ khung hình theo chiều ảnh. API giữ nguyên: cần truyền aspect_ratio (xem phần Input).
25/11/2026Grok Imagine Video (SV22): bỏ giá sàn 299đ / 399đ, giá tính đúng theo giây × độ phân giải. Xem bảng giá mới ở /v1/models hoặc /estimate.
25/11/2026Làm nét video 4K (SV10): tải video lên máy chủ xử lý ổn định hơn (tự thử lại khi lỗi mạng, hàng đợi upload). Giá giữ nguyên 40,5đ / giây.

Mọi thay đổi đều tương thích ngược: chỉ thêm trường mới, không đổi hay bỏ trường cũ.

API cũ (vẫn hoạt động)

Tích hợp trước đây theo mã công cụ vẫn chạy bình thường: POST /account/ai/tools/{key}/run với { "input": {...} }, POST /account/ai/tools/{key}/quote, GET /account/ai/tasks/{id}. Danh mục mã công cụ: GET /public/ai/tools. Tích hợp mới nên dùng API /v1 ở trên.