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.
ลองใช้โมเดล
ต้องการทำอะไรต่อ
เลือกตัวอย่างเพื่อโหลดอินพุตและผลลัพธ์ลงใน 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.
เริ่มสร้าง
ส่งโมเดลนี้ผ่าน 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 และตั้งค่าไว้ในสภาพแวดล้อมฝั่งเซิร์ฟเวอร์ คำขอทั้งหมดใช้การยืนยันตัวตนแบบ Bearer
export SANDBASE_API_KEY="YOUR_API_KEY"เก็บ key ไว้บนเซิร์ฟเวอร์ อย่าเปิดเผยในโค้ดฝั่งเบราว์เซอร์หรือคอมมิตลง repository
POST ไปที่ /v1/run ด้วย model ID นี้และอินพุตของมัน ตัวอย่างคำขอด้านบนมีทั้งการส่งและการ polling
ใช้ run ID ที่ส่งกลับมาเพื่อ polling จนกว่าสถานะจะเป็น completed, failed หรือ timeout ให้อ่าน output หลังจาก completed เท่านั้น
curl "https://api.sandbase.ai/v1/run/$RUN_ID" \
-H "Authorization: Bearer $SANDBASE_API_KEY"ส่ง URL ไฟล์ที่เข้าถึงได้สาธารณะในช่อง image, video หรือ audio ของโมเดล รูปแบบและข้อจำกัดที่รองรับแสดงอยู่ข้างแต่ละอินพุตใน Playground
ใช้ตัวควบคุม upload หรือ replace ในช่องรูปภาพที่รองรับใน Playground ช่อง URL ของวิดีโอรองรับวิดีโอ driving ที่โฮสต์ไว้; ไม่ได้หมายความว่าสามารถอัปโหลดวิดีโอได้
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 ต่อไปนี้เป็นตัวอย่างที่บันทึกไว้ของโมเดล ไม่ใช่การสร้างใหม่
[
{
"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"
}
]