promptstringwymagane
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.
Wypróbuj model
Twój wynik pojawi się tutaj
Uzupełnij dane wejściowe, a następnie kliknij Uruchom.
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.
Zacznij tworzyć
Prześlij ten model przez 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"Utwórz klucz API SandBase i ustaw go w środowisku serwera. Wszystkie żądania używają uwierzytelniania Bearer.
export SANDBASE_API_KEY="YOUR_API_KEY"Przechowuj klucz na serwerze. Nie ujawniaj go w kodzie przeglądarkowym ani nie commituj do repozytorium.
Wyślij POST do /v1/run z tym identyfikatorem modelu i jego danymi wejściowymi. Powyższy przykład żądania obejmuje wysyłanie i odpytywanie statusu.
Użyj zwróconego ID uruchomienia, aby odpytywać status do momentu completion, failed lub timeout. Odczytaj wynik dopiero po completion.
curl "https://api.sandbase.ai/v1/run/$RUN_ID" \
-H "Authorization: Bearer $SANDBASE_API_KEY"Przekaż publicznie dostępny URL pliku w polu image, video lub audio modelu. Obsługiwane formaty i limity są pokazane obok każdego pola wejściowego w Playground.
Użyj kontrolki upload lub replace w obsługiwanych polach image w Playground. Pola URL wideo akceptują hostowany film źródłowy; nie oznacza to obsługi przesyłania wideo.
promptstringwymaganeMotion description, up to 128 characters.
durationintegerLength of the motion in seconds, 1 to 12.
Domyślnie: 5
Minimum: 1
Maksimum: 12
enable_meshbooleanInclude the skinned character mesh in the FBX; false returns the skeleton animation only.
Domyślnie: true
enable_rewritebooleanExpand the prompt before generating.
Domyślnie: false
enable_duration_estbooleanLet the model choose a duration that fits the prompt.
Domyślnie: 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
}Zakończone uruchomienie udostępnia swój wynik w output. Poniżej znajduje się zapisany przykład modelu, a nie nowa generacja.
Nie opublikowano jeszcze przykładowego output. Użyj Playground → Result → JSON po zakończonym uruchomieniu, aby sprawdzić odpowiedź.