imagestringจำเป็น
URL of image to use while generating the 3D model.
tencent/hunyuan-3d/3.0/image-to-3dHunyuan 3d V3 is Tencent's image-to-3D AI model. Transform photographs into production-ready 3D meshes with accurate geometry and texture mapping.
ลองใช้โมเดล
PNG, JPEG, WebP หรือ GIF · สูงสุด 20 MiB
PNG, JPEG, WebP หรือ GIF · สูงสุด 20 MiB
PNG, JPEG, WebP หรือ GIF · สูงสุด 20 MiB
PNG, JPEG, WebP หรือ GIF · สูงสุด 20 MiB
ต้องการทำอะไรต่อ
เลือกตัวอย่างเพื่อโหลดอินพุตและผลลัพธ์ลงใน playground
{
"image": "https://static.sandbase.ai/examples/abf2367a-454d-4481-8a41-be5aeee0de10/input/dd7094c9-b163-4c93-bdc3-818d495d55aa.png"
}Hunyuan 3D 3.0 turns an image (plus optional side and back views) into a textured, low-poly, or geometry-only 3D model.
| Field | Type | Default | Notes |
|---|---|---|---|
image | image URL, required | — | Front view. JPEG, PNG, or WebP URL. |
enable_pbr | boolean | false | PBR materials. |
polygon_type | triangle / quadrilateral | triangle | Triangle or quad mesh. |
generate_type | Normal / LowPoly / Geometry | Normal | Normal textured, LowPoly, or Geometry (untextured). |
face_count | integer 40000–1500000 | 500000 | Target face count. |
back_image | image URL | — | Optional extra view. |
left_image | image URL | — | Optional extra view. |
right_image | image URL | — | Optional extra view. |
$0.63 per textured model, $0.72 low-poly, $0.45 geometry-only; PBR adds $0.18 and extra views add $0.18.
| Request | Price |
|---|---|
| Normal | $0.63 |
| LowPoly | $0.72 |
| Geometry | $0.45 |
| Normal + PBR + extra views | $0.99 |
Failed runs are not charged.
Other Hunyuan 3D endpoints: tencent/hunyuan-3d/3.1/pro/text-to-3d, tencent/hunyuan-3d/3.1/pro/image-to-3d.
เริ่มสร้าง
ส่งโมเดลนี้ผ่าน 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": "tencent/hunyuan-3d/3.0/image-to-3d",
"image": "https://static.sandbase.ai/examples/tencent/hunyuan-3d/v3/input_image_0.png",
"enable_pbr": false,
"face_count": 500000,
"polygon_type": "triangle",
"generate_type": "Normal"
}
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จำเป็นURL of image to use while generating the 3D model.
back_imagestringOptional back view image URL for multi-view reconstruction.
enable_pbrbooleanGenerate PBR materials (metallic, roughness, normal). Ignored for Geometry output.
ค่าเริ่มต้น: false
face_countintegerTarget polygon face count (custom face count is billed as an add-on).
ค่าเริ่มต้น: 500000
ขั้นต่ำ: 40000
สูงสุด: 1500000
left_imagestringOptional left view image URL for multi-view reconstruction.
right_imagestringOptional right view image URL for multi-view reconstruction.
polygon_typestringPolygon type. Only takes effect when generate_type is LowPoly.
ค่าเริ่มต้น: "triangle"
ค่าที่เป็นไปได้: "triangle", "quadrilateral"
generate_typestringNormal: textured model. LowPoly: polygon reduction. Geometry: white model without texture.
ค่าเริ่มต้น: "Normal"
ค่าที่เป็นไปได้: "Normal", "LowPoly", "Geometry"
{
"model": "tencent/hunyuan-3d/3.0/image-to-3d",
"image": "https://static.sandbase.ai/examples/tencent/hunyuan-3d/v3/input_image_0.png",
"enable_pbr": false,
"face_count": 500000,
"polygon_type": "triangle",
"generate_type": "Normal"
}run ที่เสร็จสมบูรณ์จะแสดงผลลัพธ์ใน output ต่อไปนี้เป็นตัวอย่างที่บันทึกไว้ของโมเดล ไม่ใช่การสร้างใหม่
[
{
"poster": "https://static.sandbase.ai/examples/abf2367a-454d-4481-8a41-be5aeee0de10/output/359c378e-db23-4bb6-8857-721ce94fe4a0.png",
"thumbnail": "https://static.sandbase.ai/examples/abf2367a-454d-4481-8a41-be5aeee0de10/output/359c378e-db23-4bb6-8857-721ce94fe4a0.png",
"url": "https://static.sandbase.ai/examples/abf2367a-454d-4481-8a41-be5aeee0de10/output/fb2bd85d-31ea-4509-9ae8-0cc24d448897.glb"
}
]