imagestringwajib
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.
Coba model ini
PNG, JPEG, WebP, atau GIF · maksimum 20 MiB
Pilih contoh untuk memuat input dan hasilnya ke 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.
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": "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"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.
imagestringwajibInput image URL. PNG, JPEG and WebP, up to 20MB.
shadingnumberDe-shading strength.
Default: 0.5
Minimum: 0
Maksimum: 1
enable_pbrbooleanGenerate PBR material maps with the texture (billed add-on, ignored when texture is off).
Default: true
face_countintegerTarget face count. Recommended 2,000,000 for 2048quality and 5,000,000 for 2048master.
Minimum: 100000
Maksimum: 5000000
resolutionstring2048quality is the faster default; 2048master gives the highest quality.
Default: "2048quality"
Nilai yang mungkin: "2048quality", "2048master"
export_formatstringFile format of the generated model.
Default: "glb"
Nilai yang mungkin: "glb", "obj", "stl", "fbx", "usdz"
enable_texturebooleanGenerate textures in addition to geometry. When false, only the geometry mesh is generated (cheaper).
Default: 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 yang selesai menampilkan hasilnya di output. Berikut adalah contoh tersimpan model ini, bukan generasi baru.
[
{
"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"
}
]