imagestring必填
Front view image URL (PNG/JPEG/WebP, up to 20MB).
hitem3d/hi3d/v3.0/multi-view-to-3dHi3D 3.0 by Hitem3D reconstructs a detailed 3D model at 2048³ resolution from a front view plus optional back, left and right views.
試用這個模型
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。
{
"back_image": "https://static.sandbase.ai/examples/db216f6f-671f-4fb5-bc57-8507406805ac/input/798f8f92-cbec-47bd-b029-931811385a77.png",
"image": "https://static.sandbase.ai/examples/db216f6f-671f-4fb5-bc57-8507406805ac/input/4f605729-85d6-44df-b1f5-3ea1242c45ea.png",
"left_image": "https://static.sandbase.ai/examples/db216f6f-671f-4fb5-bc57-8507406805ac/input/3cdf51d4-96b7-46db-b833-2d35a54cd091.png"
}Hi3D 3.0 by Hitem3D reconstructs a detailed 3D model at 2048³ resolution from a front view plus optional back, left and right views.
| Field | Type | Default | Notes |
|---|---|---|---|
image | image URL, required | — | Front view image URL (PNG/JPEG/WebP, up to 20MB). |
back_image | image URL | — | Optional back view image URL. |
left_image | image URL | — | Optional left view image URL. |
right_image | image URL | — | Optional right view image URL. |
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/multi-view-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 金鑰,並將其設定在伺服器環境中。所有請求都使用 Bearer 驗證。
export SANDBASE_API_KEY="YOUR_API_KEY"請將金鑰保留在伺服器端,不要在瀏覽器程式碼中公開,也不要提交到儲存庫。
使用此模型 ID 及其輸入,向 /v1/run 發送 POST。上方的請求範例包含提交與輪詢。
使用回傳的執行 ID 持續輪詢,直到狀態為 completed、failed 或 timeout。只有在 completed 之後才讀取輸出。
curl "https://api.sandbase.ai/v1/run/$RUN_ID" \
-H "Authorization: Bearer $SANDBASE_API_KEY"在模型的 image、video 或 audio 欄位中傳入可公開存取的檔案 URL。支援格式與限制會顯示在每個 Playground 輸入欄位旁。
在 Playground 中支援的圖片欄位上使用上傳或取代控制項。影片 URL 欄位可接受託管的 driving video;它們不代表支援影片上傳。
imagestring必填Front view image URL (PNG/JPEG/WebP, up to 20MB).
shadingnumberDe-shading strength.
預設:0.5
最小值:0
最大值:1
back_imagestringOptional back view image URL.
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
left_imagestringOptional left view image URL.
resolutionstring2048quality is the faster default; 2048master gives the highest quality.
預設:"2048quality"
可能值:"2048quality", "2048master"
right_imagestringOptional right view image URL.
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/multi-view-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
}已完成的執行會在輸出中顯示結果。以下為模型已儲存的範例,並非新的生成結果。
[
{
"poster": "https://static.sandbase.ai/examples/db216f6f-671f-4fb5-bc57-8507406805ac/output/f6f34648-f23a-4fd1-90bc-94a6177ddec5.webp",
"thumbnail": "https://static.sandbase.ai/examples/db216f6f-671f-4fb5-bc57-8507406805ac/output/f6f34648-f23a-4fd1-90bc-94a6177ddec5.webp",
"url": "https://static.sandbase.ai/examples/db216f6f-671f-4fb5-bc57-8507406805ac/output/c02da03e-d468-4e95-8748-f0bc7cb83bf0.glb"
}
]