promptstringwajib
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).
Coba model ini
Output Anda akan muncul di sini
Lengkapi input, lalu klik Run.
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).
Mulai membangun
Kirim model ini melalui 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"Buat SandBase API key dan atur di environment server Anda. Semua permintaan menggunakan autentikasi Bearer.
export SANDBASE_API_KEY="YOUR_API_KEY"Simpan key di server. Jangan tampilkan di kode browser atau commit ke repository.
POST ke /v1/run dengan ID model ini dan inputnya. Contoh permintaan di atas mencakup pengiriman dan polling.
Gunakan run ID yang dikembalikan untuk polling sampai status completed, failed, atau timeout. Baca output hanya setelah completed.
curl "https://api.sandbase.ai/v1/run/$RUN_ID" \
-H "Authorization: Bearer $SANDBASE_API_KEY"Kirim URL file yang dapat diakses publik di field image, video, atau audio model. Format dan batas yang didukung ditampilkan di samping setiap input Playground.
Gunakan kontrol upload atau replace pada field gambar yang didukung di Playground. Field URL video menerima video driving yang di-host; ini tidak berarti dukungan upload video.
promptstringwajibDescribe the motion, up to 400 characters.
durationnumberClip length in seconds, 2β10 in 0.5 s steps.
Default: 3
Minimum: 2
Maksimum: 10
motion_modestringprime: higher quality FBX clip; swift: faster BVH clip.
Default: "prime"
Nilai yang mungkin: "prime", "swift"
{
"model": "meshy/text-to-motion",
"duration": 3,
"motion_mode": "prime"
}Run yang selesai menampilkan hasilnya di output. Berikut adalah contoh tersimpan model ini, bukan generasi baru.
Belum ada contoh output yang dipublikasikan. Gunakan Playground β Result β JSON setelah run selesai untuk melihat respons Anda.