imagestringจำเป็น
Input image URL. PNG, JPEG and WebP, up to 20MB.
hitem3d/hi3d/v3.0/image-to-3dHi3D 3.0 by Hitem3D reconstructs a detailed, watertight 3D model at 2048³ resolution from a single image, with optional texture and PBR materials.
ลองใช้โมเดล
PNG, JPEG, WebP หรือ GIF · สูงสุด 20 MiB
ต้องการทำอะไรต่อ
เลือกตัวอย่างเพื่อโหลดอินพุตและผลลัพธ์ลงใน playground
{
"image": "https://static.sandbase.ai/examples/defee7e3-d659-4f95-bb43-ca71fc85d613/input/d3fa1e58-4505-42d7-aa1c-057e65defbde.png"
}Hi3D 3.0 by Hitem3D reconstructs a detailed, watertight 3D model at 2048³ resolution from a single image, with optional texture and PBR materials.
| Field | Type | Default | Notes |
|---|---|---|---|
image | image URL, required | — | Input image URL. PNG, JPEG and WebP, up to 20MB. |
resolution | 2048quality / 2048master | 2048quality | 2048quality is the faster default; 2048master gives the highest quality. |
enable_texture | boolean | true | Generate textures in addition to geometry. When false, only the geometry mesh is generated (cheaper). |
enable_pbr | boolean | true | Generate PBR material maps with the texture (billed add-on, ignored when texture is off). |
face_count | integer 100000–5000000 | — | Target face count. Recommended 2,000,000 for 2048quality and 5,000,000 for 2048master. |
shading | number 0–1 | 0.5 | De-shading strength. |
export_format | glb / obj / stl / fbx / usdz | glb | File format of the generated model. |
url: Main 3D file (GLB unless another export format is selected).thumbnail: Preview image rendered by the provider.$2.52 per request with default settings. Price by option (other settings at default):
| Option | Price |
|---|---|
| enable_pbr on | $2.52 |
| enable_pbr off | $2.40 |
| enable_texture on | $2.52 |
| enable_texture off | $2.16 |
| resolution = 2048quality | $2.52 |
| resolution = 2048master | $10.92 |
| 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/split.
เริ่มสร้าง
ส่งโมเดลนี้ผ่าน 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/v3.0/image-to-3d",
"image": "https://storage.googleapis.com/falserverless/example_inputs/dog.png",
"shading": 0.5,
"enable_pbr": true,
"resolution": "2048quality",
"export_format": "glb",
"enable_texture": true
}
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 ที่โฮสต์ไว้; ไม่ได้หมายความว่าสามารถอัปโหลดวิดีโอได้
imagestringจำเป็นInput image URL. PNG, JPEG and WebP, up to 20MB.
shadingnumberDe-shading strength.
ค่าเริ่มต้น: 0.5
ขั้นต่ำ: 0
สูงสุด: 1
enable_pbrbooleanGenerate PBR material maps with the texture (billed add-on, ignored when texture is off).
ค่าเริ่มต้น: true
face_countintegerTarget face count. Recommended 2,000,000 for 2048quality and 5,000,000 for 2048master.
ขั้นต่ำ: 100000
สูงสุด: 5000000
resolutionstring2048quality is the faster default; 2048master gives the highest quality.
ค่าเริ่มต้น: "2048quality"
ค่าที่เป็นไปได้: "2048quality", "2048master"
export_formatstringFile format of the generated model.
ค่าเริ่มต้น: "glb"
ค่าที่เป็นไปได้: "glb", "obj", "stl", "fbx", "usdz"
enable_texturebooleanGenerate textures in addition to geometry. When false, only the geometry mesh is generated (cheaper).
ค่าเริ่มต้น: true
{
"model": "hitem3d/hi3d/v3.0/image-to-3d",
"image": "https://storage.googleapis.com/falserverless/example_inputs/dog.png",
"shading": 0.5,
"enable_pbr": true,
"resolution": "2048quality",
"export_format": "glb",
"enable_texture": true
}run ที่เสร็จสมบูรณ์จะแสดงผลลัพธ์ใน output ต่อไปนี้เป็นตัวอย่างที่บันทึกไว้ของโมเดล ไม่ใช่การสร้างใหม่
[
{
"poster": "https://static.sandbase.ai/examples/defee7e3-d659-4f95-bb43-ca71fc85d613/output/b82a0402-06a1-450c-a1f7-a9c2bc6a8ba5.webp",
"thumbnail": "https://static.sandbase.ai/examples/defee7e3-d659-4f95-bb43-ca71fc85d613/output/b82a0402-06a1-450c-a1f7-a9c2bc6a8ba5.webp",
"url": "https://static.sandbase.ai/examples/defee7e3-d659-4f95-bb43-ca71fc85d613/output/a653ffa5-d827-49c5-8482-72323f29b0f9.glb"
}
]