promptstringbắt buộc
Motion description, up to 128 characters.
tencent/hunyuan-3d/motionHunyuan 3D Motion by Tencent generates a 3D human animation from a text prompt and returns it as an FBX on a built-in humanoid rig, 1 to 12 seconds long.
Thử model
Đầu ra của bạn sẽ xuất hiện ở đây
Hoàn tất đầu vào, rồi nhấp Run.
Hunyuan 3D Motion by Tencent generates a 3D human animation from a text prompt and returns it as an FBX on a built-in humanoid rig, 1 to 12 seconds long.
| Field | Type | Default | Notes |
|---|---|---|---|
prompt | string, required | — | Motion description, up to 128 characters. |
duration | integer 1-12 | 5 | Length of the motion in seconds, 1 to 12. |
enable_duration_est | boolean | false | Let the model choose a duration that fits the prompt. |
enable_rewrite | boolean | false | Expand the prompt before generating. |
enable_mesh | boolean | true | Include the skinned character mesh in the FBX; false returns the skeleton animation only. |
url: Animated FBX.$0.20 per run (10 Tencent Hy3D credits). Failed runs are not charged.
Bắt đầu xây dựng
Gửi model này qua SandBase Unified Run API.
# The quoted heredoc keeps Unicode and shell metacharacters unchanged.
result=$(curl --fail-with-body --silent \
-X POST "https://api.sandbase.ai/v1/run" \
-H "Authorization: Bearer $SANDBASE_API_KEY" \
-H "Content-Type: application/json" \
--data-binary @- <<'SANDBASE_JSON'
{
"model": "tencent/hunyuan-3d/motion",
"prompt": "A person walks forward, then waves with the right hand",
"duration": 5,
"enable_mesh": true,
"enable_rewrite": false,
"enable_duration_est": false
}
SANDBASE_JSON
)
run_id=$(printf '%s' "$result" | jq -r .id)
for attempt in $(seq 1 120); do
status=$(printf '%s' "$result" | jq -r .status)
case "$status" in completed|failed|timeout) break ;; esac
sleep 2
result=$(curl --fail-with-body --silent \
-H "Authorization: Bearer $SANDBASE_API_KEY" \
"https://api.sandbase.ai/v1/run/$run_id")
done
status=$(printf '%s' "$result" | jq -r .status)
[ "$status" = completed ] || { echo "Generation ended: $status" >&2; exit 1; }
printf '%s\n' "$result"Tạo một SandBase API key và đặt nó trong môi trường máy chủ của bạn. Tất cả request sử dụng xác thực Bearer.
export SANDBASE_API_KEY="YOUR_API_KEY"Giữ key trên máy chủ. Không hiển thị trong mã trình duyệt hoặc commit vào repository.
POST tới /v1/run với model ID này và các đầu vào của nó. Ví dụ request ở trên bao gồm cả bước gửi và polling.
Dùng run ID được trả về để poll cho đến khi trạng thái là completed, failed hoặc timeout. Chỉ đọc đầu ra sau khi completed.
curl "https://api.sandbase.ai/v1/run/$RUN_ID" \
-H "Authorization: Bearer $SANDBASE_API_KEY"Cung cấp một URL tệp có thể truy cập công khai trong trường image, video hoặc audio của model. Các định dạng và giới hạn được hỗ trợ hiển thị bên cạnh từng input trong Playground.
Dùng điều khiển upload hoặc replace trên các trường image được hỗ trợ trong Playground. Trường URL video chấp nhận một video driving được host; điều này không đồng nghĩa hỗ trợ tải lên video.
promptstringbắt buộcMotion description, up to 128 characters.
durationintegerLength of the motion in seconds, 1 to 12.
Mặc định: 5
Tối thiểu: 1
Tối đa: 12
enable_meshbooleanInclude the skinned character mesh in the FBX; false returns the skeleton animation only.
Mặc định: true
enable_rewritebooleanExpand the prompt before generating.
Mặc định: false
enable_duration_estbooleanLet the model choose a duration that fits the prompt.
Mặc định: false
{
"model": "tencent/hunyuan-3d/motion",
"prompt": "A person walks forward, then waves with the right hand",
"duration": 5,
"enable_mesh": true,
"enable_rewrite": false,
"enable_duration_est": false
}Một run đã hoàn tất sẽ hiển thị kết quả trong output. Phần sau là ví dụ đã lưu của model, không phải một lần tạo mới.
Chưa có đầu ra ví dụ nào được công bố. Dùng Playground → Result → JSON sau khi run hoàn tất để xem phản hồi của bạn.