partstring
Character split template: a 6 parts, b 5, c 4 without head, d 4 with head, e 3, f 2.
डिफ़ॉल्ट: "a"
संभावित मान: "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.
model को आज़माएँ
आप आगे क्या करना चाहेंगे?
प्लेग्राउंड में इसके इनपुट और परिणाम लोड करने के लिए कोई उदाहरण चुनें।
{
"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.
बिल्डिंग शुरू करें
इस model को 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": "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"एक SandBase API key बनाएँ और इसे अपने server environment में सेट करें। सभी requests Bearer authentication का उपयोग करती हैं।
export SANDBASE_API_KEY="YOUR_API_KEY"Key को सर्वर पर रखें। इसे browser code में expose न करें या repository में commit न करें।
इस model ID और इसके inputs के साथ /v1/run पर POST करें। ऊपर दिया गया request example submission और polling दोनों शामिल करता है।
Completed, failed या timeout होने तक poll करने के लिए लौटाए गए run ID का उपयोग करें। Output केवल completed होने के बाद पढ़ें।
curl "https://api.sandbase.ai/v1/run/$RUN_ID" \
-H "Authorization: Bearer $SANDBASE_API_KEY"Model के image, video या audio field में सार्वजनिक रूप से उपलब्ध फ़ाइल URL पास करें। समर्थित formats और limits प्रत्येक Playground input के पास दिखाए गए हैं।
Playground में समर्थित image fields पर upload या replace control का उपयोग करें। Video URL fields hosted driving video स्वीकार करते हैं; इससे video-upload support का संकेत नहीं मिलता।
partstringCharacter split template: a 6 parts, b 5, c 4 without head, d 4 with head, e 3, f 2.
डिफ़ॉल्ट: "a"
संभावित मान: "a", "b", "c", "d", "e", "f"
jointstringJoint type added between character parts.
डिफ़ॉल्ट: "ball"
संभावित मान: "none", "ball", "dovetail"
levelstringSplit granularity for general mode.
डिफ़ॉल्ट: "medium"
संभावित मान: "low", "medium", "high"
model_urlstringआवश्यकURL 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.
डिफ़ॉल्ट: "character"
संभावित मान: "character", "general"
export_formatstringFile format of the generated model. Character split supports only glb.
डिफ़ॉल्ट: "glb"
संभावित मान: "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"
}पूरा हुआ run अपना परिणाम output में दिखाता है। नीचे दिया गया model का सेव किया हुआ example है, नई generation नहीं।
[
{
"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"
}
]