partstring
Character split template: a 6 parts, b 5, c 4 without head, d 4 with head, e 3, f 2.
Par défaut : "a"
Valeurs possibles : "a", "b", "c", "d", "e", "f"
hitem3d/hi3d/splitHi3D Split by Hitem3D splits a 3D model into parts, either by a humanoid character template with optional joints or by granularity for general objects.
Essayer le modèle
Que souhaitez-vous faire ensuite ?
Sélectionnez un exemple pour charger ses entrées et son résultat dans le playground.
{
"model_url": "https://static.sandbase.ai/examples/ab183559-ca86-4f65-8726-fb4f14c115d7/input/a94a552e-b3b8-4893-a2d6-c3fc02919038.glb"
}Hi3D Split by Hitem3D splits a 3D model into parts, either by a humanoid character template with optional joints or by granularity for general objects.
| Field | Type | Default | Notes |
|---|---|---|---|
model_url | string, required | — | URL of the input model. GLB, STL or OBJ, up to 200MB. |
split_mode | character / general | character | character splits humanoid models using a template; general splits any model by granularity. |
part | a / b / c / d / e / f | a | Character split template: a 6 parts, b 5, c 4 without head, d 4 with head, e 3, f 2. |
joint | none / ball / dovetail | ball | Joint type added between character parts. |
level | low / medium / high | medium | Split granularity for general mode. |
export_format | glb / obj / stl / fbx / usdz | glb | File format of the generated model. Character split supports only glb. |
url: Main 3D file (GLB unless another export format is selected).thumbnail: Preview image rendered by the provider.$0.40 per request. Failed runs are not charged.
Other Hitem3D 3D endpoints: hitem3d/hi3d/image-to-3d, hitem3d/hi3d/multi-view-to-3d, hitem3d/hi3d/multicolor, hitem3d/hi3d/texture.
Commencer à construire
Soumettez ce modèle via l'API Unified Run de SandBase.
# 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": "hitem3d/hi3d/split",
"part": "a",
"joint": "ball",
"level": "medium",
"model_url": "https://raw.githubusercontent.com/KhronosGroup/glTF-Sample-Models/master/2.0/DamagedHelmet/glTF-Binary/DamagedHelmet.glb",
"split_mode": "character",
"export_format": "glb"
}
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"Créez une clé API SandBase et définissez-la dans l'environnement de votre serveur. Toutes les requêtes utilisent l'authentification Bearer.
export SANDBASE_API_KEY="YOUR_API_KEY"Conservez la clé sur votre serveur. Ne l'exposez pas dans le code du navigateur et ne la committez pas dans un dépôt.
Faites un POST sur /v1/run avec cet ID de modèle et ses entrées. L'exemple de requête ci-dessus inclut la soumission et le polling.
Utilisez l'ID d'exécution renvoyé pour interroger jusqu'à ce que le statut soit completed, failed ou timeout. Ne lisez la sortie qu'une fois completed.
curl "https://api.sandbase.ai/v1/run/$RUN_ID" \
-H "Authorization: Bearer $SANDBASE_API_KEY"Passez une URL de fichier accessible publiquement dans le champ image, video ou audio du modèle. Les formats pris en charge et les limites sont indiqués à côté de chaque entrée du Playground.
Utilisez le contrôle upload ou replace sur les champs image pris en charge dans le Playground. Les champs URL vidéo acceptent une vidéo de conduite hébergée ; cela n'implique pas la prise en charge de l'importation vidéo.
partstringCharacter split template: a 6 parts, b 5, c 4 without head, d 4 with head, e 3, f 2.
Par défaut : "a"
Valeurs possibles : "a", "b", "c", "d", "e", "f"
jointstringJoint type added between character parts.
Par défaut : "ball"
Valeurs possibles : "none", "ball", "dovetail"
levelstringSplit granularity for general mode.
Par défaut : "medium"
Valeurs possibles : "low", "medium", "high"
model_urlstringobligatoireURL of the input model. GLB, STL or OBJ, up to 200MB.
split_modestringcharacter splits humanoid models using a template; general splits any model by granularity.
Par défaut : "character"
Valeurs possibles : "character", "general"
export_formatstringFile format of the generated model. Character split supports only glb.
Par défaut : "glb"
Valeurs possibles : "glb", "obj", "stl", "fbx", "usdz"
{
"model": "hitem3d/hi3d/split",
"part": "a",
"joint": "ball",
"level": "medium",
"model_url": "https://raw.githubusercontent.com/KhronosGroup/glTF-Sample-Models/master/2.0/DamagedHelmet/glTF-Binary/DamagedHelmet.glb",
"split_mode": "character",
"export_format": "glb"
}Une exécution terminée expose son résultat dans output. Ce qui suit est l'exemple enregistré du modèle, et non une nouvelle génération.
[
{
"poster": "https://static.sandbase.ai/examples/ab183559-ca86-4f65-8726-fb4f14c115d7/output/826cb428-460d-47ef-9f6a-ca4cfe00cf5a.webp",
"thumbnail": "https://static.sandbase.ai/examples/ab183559-ca86-4f65-8726-fb4f14c115d7/output/826cb428-460d-47ef-9f6a-ca4cfe00cf5a.webp",
"url": "https://static.sandbase.ai/examples/ab183559-ca86-4f65-8726-fb4f14c115d7/output/fee9d97c-ae68-4bc9-8410-1874b6b01351.glb"
}
]