imagestringwajib
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.
Coba model ini
PNG, JPEG, WebP, atau GIF · maksimum 20 MiB
PNG, JPEG, WebP, atau GIF · maksimum 20 MiB
PNG, JPEG, WebP, atau GIF · maksimum 20 MiB
PNG, JPEG, WebP, atau GIF · maksimum 20 MiB
Pilih contoh untuk memuat input dan hasilnya ke 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.
Mulai membangun
Kirim model ini melalui 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"Buat SandBase API key dan atur di environment server Anda. Semua permintaan menggunakan autentikasi Bearer.
export SANDBASE_API_KEY="YOUR_API_KEY"Simpan key di server. Jangan tampilkan di kode browser atau commit ke repository.
POST ke /v1/run dengan ID model ini dan inputnya. Contoh permintaan di atas mencakup pengiriman dan polling.
Gunakan run ID yang dikembalikan untuk polling sampai status completed, failed, atau timeout. Baca output hanya setelah completed.
curl "https://api.sandbase.ai/v1/run/$RUN_ID" \
-H "Authorization: Bearer $SANDBASE_API_KEY"Kirim URL file yang dapat diakses publik di field image, video, atau audio model. Format dan batas yang didukung ditampilkan di samping setiap input Playground.
Gunakan kontrol upload atau replace pada field gambar yang didukung di Playground. Field URL video menerima video driving yang di-host; ini tidak berarti dukungan upload video.
imagestringwajibURL 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.
Default: false
face_countintegerTarget polygon face count (custom face count is billed as an add-on).
Default: 500000
Minimum: 40000
Maksimum: 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.
Default: "triangle"
Nilai yang mungkin: "triangle", "quadrilateral"
generate_typestringNormal: textured model. LowPoly: polygon reduction. Geometry: white model without texture.
Default: "Normal"
Nilai yang mungkin: "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 yang selesai menampilkan hasilnya di output. Berikut adalah contoh tersimpan model ini, bukan generasi baru.
[
{
"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"
}
]