promptstring必須
Describe the motion, up to 400 characters.
meshy/text-to-motionMeshy Text to Motion generates a standalone character motion clip from a text prompt, as FBX (prime) or BVH (swift).
モデルを試す
出力はここに表示されます
入力を完了してから[実行]をクリックしてください。
Meshy Text to Motion generates a standalone character motion clip from a text prompt, as FBX (prime) or BVH (swift).
| Field | Type | Default | Notes |
|---|---|---|---|
prompt | string, required | — | Describe the motion, up to 400 characters. |
duration | number 2–10 | 3 | Clip length in seconds, 2–10 in 0.5 s steps. |
motion_mode | prime / swift | "prime" | prime: higher quality FBX clip; swift: faster BVH clip. |
url: Motion clip. prime returns an FBX file; swift returns BVH text content, stored with a .bin file name, so save it as .bvh before importing.format: fbx or bvh.$0.40 per clip (prime), $0.12 (swift).
開発を始める
このモデルを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": "meshy/text-to-motion",
"duration": 3,
"motion_mode": "prime"
}
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必須Describe the motion, up to 400 characters.
durationnumberClip length in seconds, 2–10 in 0.5 s steps.
デフォルト: 3
最小: 2
最大: 10
motion_modestringprime: higher quality FBX clip; swift: faster BVH clip.
デフォルト: "prime"
指定可能な値: "prime", "swift"
{
"model": "meshy/text-to-motion",
"duration": 3,
"motion_mode": "prime"
}完了したrunの結果は出力に表示されます。以下はモデルに保存されたサンプルであり、新規生成ではありません。
まだ例の出力は公開されていません。完了したrunのレスポンスを確認するには、Playground → Result → JSON を使用してください。