animate-motion-transfer API

Animate Motion Transfer chuyển chuyển động từ một video tham chiếu sang một ảnh nhân vật để tạo video. Đây không phải mô hình tạo video từ văn bản và không cần prompt.

Dùng thử trực tuyến · Lấy API key · Đọc tài liệu

Khả năng

Mô hình
Video
Mô hình API
animate-motion-transfer
Điểm cuối
POST /v1/videos, GET /v1/videos/{id}
Tham số
images[1], metadata.video_url[1], metadata.resolution: 480p / 720p / 1080p, metadata.pose_method: vitpose / sdpose / wuwupose, metadata.max_frames, metadata.frame_rate

Giá hiện tại

¥0.20–0.40 mỗi giây

Ví dụ trong thư viện

Chưa có ví dụ được xuất bản cho mô hình này.

Khám phá thư viện prompt

Bắt đầu nhanh

Ví dụ: chuẩn bị ảnh toàn thân nhân vật và video có chuyển động rõ ràng, rồi thay URL mẫu bằng nội dung công khai mà bạn có quyền sử dụng. Bắt buộc đúng một ảnh và một video; không nhận âm thanh. Có thể chọn 480p, 720p hoặc 1080p. 1080p giới hạn 10 giây; max_frames giới hạn số khung hình, không bảo đảm thời lượng thành phẩm.

cURL

curl --fail-with-body https://www.zzai.app/v1/videos \
  -H "Authorization: Bearer $SEEDANCE_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"images":["https://your-cdn.example/character.png"],"metadata":{"frame_rate":30,"pose_method":"vitpose","ratio":"adaptive","resolution":"720p","video_url":["https://your-cdn.example/motion.mp4"]},"model":"animate-motion-transfer"}'

Python

import json, os, requests

payload = json.loads(r'''{"images":["https://your-cdn.example/character.png"],"metadata":{"frame_rate":30,"pose_method":"vitpose","ratio":"adaptive","resolution":"720p","video_url":["https://your-cdn.example/motion.mp4"]},"model":"animate-motion-transfer"}''')
response = requests.post(
    "https://www.zzai.app/v1/videos",
    headers={"Authorization": "Bearer " + os.environ["SEEDANCE_API_KEY"]},
    json=payload, timeout=120,
)
response.raise_for_status()
print(response.json()["id"])

JavaScript

const response = await fetch("https://www.zzai.app/v1/videos", {
  method: 'POST',
  headers: { Authorization: 'Bearer ' + process.env.SEEDANCE_API_KEY, 'Content-Type': 'application/json' },
  body: JSON.stringify({"images":["https://your-cdn.example/character.png"],"metadata":{"frame_rate":30,"pose_method":"vitpose","ratio":"adaptive","resolution":"720p","video_url":["https://your-cdn.example/motion.mp4"]},"model":"animate-motion-transfer"}),
});
if (!response.ok) throw new Error(await response.text());
console.log((await response.json()).id);

Lưu id được trả về và thay TASK_ID trong ví dụ truy vấn. Kiểm tra mỗi 3–5 giây đến khi thành công hoặc thất bại; gửi thành công không có nghĩa đã tạo xong. Hãy sớm lưu tệp kết quả. status: completed / failed; metadata.url.

curl --fail-with-body https://www.zzai.app/v1/videos/$TASK_ID \
  -H "Authorization: Bearer $SEEDANCE_API_KEY"

Câu hỏi thường gặp

Gọi mô hình này như thế nào?

Tạo API key, dùng tên mô hình bên dưới và gửi yêu cầu tới endpoint tương thích OpenAI trong tài liệu.