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 密钥,并将其设置到服务器环境中。所有请求都使用 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必填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
}已完成的运行会在输出中展示结果。以下内容是该模型保存的示例,而不是新的生成结果。
[
{
"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"
}
]