promptstringzorunlu
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).
Modeli deneyin
Çıktınız burada görünecek
Girdileri tamamlayın, ardından Çalıştır'a tıklayın.
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).
Geliştirmeye başlayın
Bu modeli SandBase Unified Run API üzerinden gönderin.
# 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"Bir SandBase API anahtarı oluşturun ve sunucu ortamınıza ayarlayın. Tüm istekler Bearer kimlik doğrulaması kullanır.
export SANDBASE_API_KEY="YOUR_API_KEY"Anahtarı sunucuda tutun. Tarayıcı kodunda açığa çıkarmayın veya bir depoya commit etmeyin.
Bu model kimliği ve girdileriyle /v1/run adresine POST gönderin. Yukarıdaki istek örneği gönderme ve yoklamayı içerir.
Durum completed, failed veya timeout olana kadar verilen run ID ile yoklama yapın. Çıktıyı yalnızca completed olduktan sonra okuyun.
curl "https://api.sandbase.ai/v1/run/$RUN_ID" \
-H "Authorization: Bearer $SANDBASE_API_KEY"Modelin image, video veya audio alanına herkese açık erişilebilir bir dosya URL'si verin. Desteklenen formatlar ve sınırlar her Playground girişinin yanında gösterilir.
Playground'daki desteklenen image alanlarında yükleme veya değiştirme kontrolünü kullanın. Video URL alanları barındırılan bir sürüş videosu kabul eder; video yükleme desteği anlamına gelmez.
promptstringzorunluDescribe the motion, up to 400 characters.
durationnumberClip length in seconds, 2–10 in 0.5 s steps.
Varsayılan: 3
Minimum: 2
Maksimum: 10
motion_modestringprime: higher quality FBX clip; swift: faster BVH clip.
Varsayılan: "prime"
Olası değerler: "prime", "swift"
{
"model": "meshy/text-to-motion",
"duration": 3,
"motion_mode": "prime"
}Tamamlanan bir run, sonucunu output içinde gösterir. Aşağıdaki, modelin kaydedilmiş örneğidir; yeni bir üretim değildir.
Henüz örnek çıktı yayınlanmadı. Yanıtınızı incelemek için Playground → Result → JSON'u, tamamlanan bir run sonrasında kullanın.