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

s214-kling-2.6-motion-control

Kling 2.6 Motion Control — 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 Kling 2.6 Motion Control — chống nhòe nền, giữ khung hình mượt mà, chuyển đổi trực tiếp từ ảnh gốc, nhận video tham chiếu góc máy/chuyển động.

SV21 (sv21) · healthyid: s214-kling-2-6-motion-controlcanonical_model: s214-kling-2.6-motion-controltype: voiceoutput: video1.215đ
Các gói & Server (SV) hiện có của model s214-kling-2.6-motion-controlGET /api/v1/models/s214-kling-2.6-motion-control/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).

1.215đ
1 video:1.215đ / video

Input — tham số đầu vào

POST/v1/generations

Gửi JSON theo cấu trúc chuẩn "model": "s214-kling-2.6-motion-control", "server": "sv21" 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ả
modelrequiredstrings214-kling-2-6-motion-controlhoặc s214-kling-2.6-motion-controlMã 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).
serverstringsv21autoChốt máy chủ SV chạy đơn (cũng nhận alias server_id) hoặc auto để tự chọn SV healthy giá tốt nhất. Kiểm tra SV sống qua GET /v1/models/s214-kling-2.6-motion-control/servers.
promptstring

Tối đa 5.000 ký tự

Mô tả (prompt)
p_moderequiredenum
stdpro

Mặc định: std

Chế độ — Thiết lập “Chế độ” cho yêu cầu tạo nội dung.
p_character_orientationrequiredenum
imagevideo

Mặc định: image

Character orientation — Thiết lập “Character orientation” cho yêu cầu tạo nội dung.
p_image_references_urlrequiredstring (URL image)
Ảnh của bạn — Thiết lập “Ảnh tham chiếu” cho yêu cầu tạo nội dung.
p_input_video_urlrequiredstring (URL video)
Video muốn sao chép hành động (≤ 30 giây) — Thiết lập “Video tham chiếu” cho yêu cầu tạo nội dung. Giá nhân theo số giây của tệp tải lên.
p_background_sourcerequiredenum
input_imageinput_video

Mặc định: input_image

Nền video — Thiết lập “Nền video” cho yêu cầu tạo nội dung.
upscale4kenum
goc4k

Mặc định: goc

Độ phân giải — Chọn 4K: model chạy ở độ phân giải cao nhất, video xong tự làm nét lên 4K (thêm vài phút); giá = giá model ở mức cao nhất + giá Làm nét video 4K. Nếu bước nâng 4K lỗi sẽ hoàn lại phần tiền 4K và vẫn giao video gố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. 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": "s214-kling-2.6-motion-control",
  "server": "sv21",
  "prompt": "Một chú mèo phi hành gia",
  "p_mode": "std",
  "p_character_orientation": "image",
  "p_image_references_url": "https://example.com/image.jpg",
  "p_input_video_url": "https://example.com/video.mp4",
  "p_background_source": "input_image",
  "upscale4k": "goc"
}'

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"]
HEADERS = {"X-API-Key": API_KEY}

with open("./input.jpg", "rb") as f:
    up_res = requests.post(f"{BASE}/account/ai/uploads", headers=HEADERS, files={"file": f}, timeout=120)
up = up_res.json()
if not up_res.ok:
    raise RuntimeError(up.get("message") or up_res.text)

payload = {
    "model": "s214-kling-2.6-motion-control",
    "server": "sv21",
    "prompt": "Một chú mèo phi hành gia",
    "p_mode": "std",
    "p_character_orientation": "image",
    "p_input_video_url": "https://example.com/video.mp4",
    "p_background_source": "input_image",
    "upscale4k": "goc"
}
payload["p_image_references_url"] = up["url"]

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)

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+)

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

// Bước 1: Upload file đầu vào từ máy lên server (hoặc dùng thẳng link https công khai)
const form = new FormData();
form.append("file", new Blob([fs.readFileSync("./input.jpg")]), path.basename("./input.jpg"));
const upRes = await fetch(`${BASE}/account/ai/uploads`, {
  method: "POST",
  headers: { "X-API-Key": API_KEY },
  body: form,
});
const up = await upRes.json();
if (!upRes.ok) throw new Error(up.message || upRes.statusText);

// Bước 2: Gửi tạo tác vụ kèm URL file vừa tải lên
const createRes = await fetch(`${BASE}/v1/generations`, {
  method: "POST",
  headers: { "X-API-Key": API_KEY, "Content-Type": "application/json" },
  body: JSON.stringify({
    ...{
  "model": "s214-kling-2.6-motion-control",
  "server": "sv21",
  "prompt": "Một chú mèo phi hành gia",
  "p_mode": "std",
  "p_character_orientation": "image",
  "p_input_video_url": "https://example.com/video.mp4",
  "p_background_source": "input_image",
  "upscale4k": "goc"
},
    p_image_references_url: up.url,
  }),
});
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));
  gen = await fetch(`${BASE}/v1/generations/${gen.id}`, { headers: { "X-API-Key": API_KEY } }).then((r) => r.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": "s214-kling-2-6-motion-control",
  "canonical_model": "s214-kling-2.6-motion-control",
  "server_id": "sv21",
  "server_name": "SV21",
  "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": "s214-kling-2-6-motion-control",
#   "canonical_model": "s214-kling-2.6-motion-control",
#   "server_id": "sv21",
#   "server_name": "SV21",
#   "cost": 2400,
#   "currency": "VND"
# }
Lấy API key
s214-kling-2-6-motion-control · Tài liệu API | EVids AI