promptstring必須
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.
モデルを試す
出力はここに表示されます
入力を完了してから[実行]をクリックしてください。
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.
開発を始める
このモデルを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"SandBaseのAPIキーを作成し、サーバー環境に設定してください。すべてのリクエストはBearer認証を使用します。
export SANDBASE_API_KEY="YOUR_API_KEY"キーはサーバー側で管理してください。ブラウザコードに公開したり、リポジトリにコミットしたりしないでください。
このモデルIDと入力を使って /v1/run にPOSTしてください。上のリクエスト例には送信とポーリングが含まれています。
返されたrun IDを使って、ステータスがcompleted、failed、timeoutになるまでポーリングしてください。出力はcompleted後にのみ読み取ってください。
curl "https://api.sandbase.ai/v1/run/$RUN_ID" \
-H "Authorization: Bearer $SANDBASE_API_KEY"モデルのimage、video、またはaudioフィールドに、公開アクセス可能なファイルURLを指定してください。対応形式と制限は各Playground入力の横に表示されます。
Playgroundの対応する画像フィールドでアップロードまたは置換を使用してください。video URLフィールドはホストされたドライビング動画を受け付けますが、動画アップロード対応を意味するものではありません。
promptstring必須Motion description, up to 128 characters.
durationintegerLength of the motion in seconds, 1 to 12.
デフォルト: 5
最小: 1
最大: 12
enable_meshbooleanInclude the skinned character mesh in the FBX; false returns the skeleton animation only.
デフォルト: true
enable_rewritebooleanExpand the prompt before generating.
デフォルト: false
enable_duration_estbooleanLet the model choose a duration that fits the prompt.
デフォルト: 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
}完了したrunの結果は出力に表示されます。以下はモデルに保存されたサンプルであり、新規生成ではありません。
まだ例の出力は公開されていません。完了したrunのレスポンスを確認するには、Playground → Result → JSON を使用してください。