Tool dùng API giá rẻ
Tài liệu API

vae-motion-control-8

VAE motion control 8 (Khuyên dùng - Tạo video nét) — Sao chép chuẩn xác chuyển động cơ thể, vũ đạo & biểu cảm từ video mẫu sang nhân vật ảnh bằng VAE motion control 8 — chống nhòe nền, giữ khung hình mượt mà, thời lượng linh hoạt 8s – 40s, chất lượng 576p – 2K (576p, 720p, 1080p, 2K), chạy đồng loạt tới 10 cặp [ảnh nhân vật + video chuyển động mẫu], khung hình 9:16, 16:9, không giới hạn ký tự mô tả. - Thời gian render sẽ lâu hơn 1 chút ae nhé

SV1 (sv1) · healthymodel: vae-motion-control-8type: textoutput: video2.797đ – 9.947đ
Các Server (SV) hiện có của model vae-motion-control-8GET /api/v1/models/vae-motion-control-8/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).

2.797đ – 9.947đ
10 giây · 720p:2.797đ15 giây · 720p:4.097đ20 giây · 720p:4.747đ10 giây · 1080p:3.447đ15 giây · 1080p:5.397đ20 giây · 1080p:6.697đ10 giây · 2K:4.747đ15 giây · 2K:7.347đ20 giây · 2K:9.947đ

Input — tham số đầu vào

POST/v1/generations

Gửi JSON theo cấu trúc chuẩn "model": "vae-motion-control-8", "server": "sv1" 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ả
modelrequiredstringvae-motion-control-8Mã model chuẩn (kết hợp cùng tham số server bên dưới) hoặc mã route trực tiếp
serverstringsv1autoChốt máy chủ chạy đơn (vd sv1) hoặc auto để tự chọn SV healthy giá tốt nhất. Kiểm tra SV sống qua GET /v1/models/vae-motion-control-8/servers.
durationinteger
101520

Mặc định: 10

Thời lượng (giây)

Tổ hợp hợp lệ: 10 giây · 720p; 15 giây · 720p; 20 giây · 720p; 10 giây · 1080p; 15 giây · 1080p; 20 giây · 1080p; 10 giây · 2K; 15 giây · 2K; 20 giây · 2K

resolutionenum
720p1080p2K

Mặc định: 720p

Độ phân giải

Tổ hợp hợp lệ: 10 giây · 720p; 15 giây · 720p; 20 giây · 720p; 10 giây · 1080p; 15 giây · 1080p; 20 giây · 1080p; 10 giây · 2K; 15 giây · 2K; 20 giây · 2K

aspect_ratiorequiredenum
9:1616:9

Mặc định: 9:16

Tỉ lệ khung hình
image_urlrequiredstring (URL image)
Ảnh nhân vật
video_urlrequiredstring (URL video)
Video mẫu — Tải file MP4/MOV hoặc dán link TikTok / Douyin / MP4
promptstring
Mô tả bổ sung (Không bắt buộc)
  • 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.
  • Bỏ trống tham số không bắt buộc thì dùng giá trị mặc định.

Ví dụ request (cURL)

curl -X POST https://aigiare.top/api/v1/generations \
  -H "X-API-Key: $API_KEY" -H "Content-Type: application/json" \
  -d '{
  "model": "vae-motion-control-8",
  "server": "sv1",
  "duration": 10,
  "resolution": "720p",
  "aspect_ratio": "9:16",
  "image_url": "https://example.com/image.jpg",
  "video_url": "https://example.com/video.mp4",
  "prompt": "Một chú mèo phi hành gia"
}'

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://aigiare.top/api"
API_KEY = os.environ["API_KEY"]
HEADERS = {"X-API-Key": API_KEY}

with open("./input.jpg", "rb") as f:
    up = requests.post(f"{BASE}/account/ai/uploads", headers=HEADERS, files={"file": f}, timeout=120).json()

payload = {
    "model": "vae-motion-control-8",
    "server": "sv1",
    "duration": 10,
    "resolution": "720p",
    "aspect_ratio": "9:16",
    "image_url": "https://example.com/image.jpg",
    "video_url": "https://example.com/video.mp4",
    "prompt": "Một chú mèo phi hành gia"
}
payload["image_url"] = up["url"]

gen = requests.post(f"{BASE}/v1/generations", headers=HEADERS, json=payload, timeout=60).json()
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("Kết quả:", [f["url"] for f in gen["output"]["files"]])

Node.js (18+)

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

let gen = await fetch(`${BASE}/v1/generations`, {
  method: "POST",
  headers,
  body: JSON.stringify({
  "model": "vae-motion-control-8",
  "server": "sv1",
  "duration": 10,
  "resolution": "720p",
  "aspect_ratio": "9:16",
  "image_url": "https://example.com/image.jpg",
  "video_url": "https://example.com/video.mp4",
  "prompt": "Một chú mèo phi hành gia"
}),
}).then((r) => r.json());

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("Kết quả:", gen.output);

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": "vae-motion-control-8",
  "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://aigiare.top/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
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.

# => { "object": "estimate", "model": "vae-motion-control-8", "cost": 2400, "currency": "VND" }
Lấy API key
vae-motion-control-8 · Tài liệu API | Tool dùng API giá rẻ