imagestringzorunlu
Input image URL. PNG, JPEG and WebP, up to 20MB.
hitem3d/hi3d/image-to-3dHi3D by Hitem3D generates a 3D model from a single image, with a selectable model version (v1.5, v2.0, v2.1, or portrait-tuned variants) and resolution tier.
Modeli deneyin
PNG, JPEG, WebP veya GIF · en fazla 20 MiB

Sırada ne yapmak istersiniz?
Bir örnek seçerek girdilerini ve sonucunu playground'a yükleyin.
{
"image": "https://static.sandbase.ai/examples/6fda1575-fd88-4b4d-b090-7587939292a0/input/a4f2ccb4-33d6-4056-917c-05cb450f5a9a.png"
}Hi3D by Hitem3D generates a 3D model from a single image, with a selectable model version (v1.5, v2.0, v2.1, or portrait-tuned variants) and resolution tier.
| Field | Type | Default | Notes |
|---|---|---|---|
image | image URL, required | — | Input image URL. PNG, JPEG and WebP, up to 20MB. |
version | hitem3dv1.5 / hitem3dv2.0 / hitem3dv2.1 / scene-portraitv1.5 / scene-portraitv2.0 / scene-portraitv2.1 | hitem3dv2.1 | Model version. hitem3d* are general models; scene-portrait* are tuned for portraits and characters. |
resolution | 512 / 1024 / 1536 / 1536pro / 1536fast / 1536profast | — | Generation resolution; supported values depend on the model: v1.5/v2.0 accept 512, 1024, 1536, 1536pro; v2.1 accepts 1536fast, 1536pro; scene-portraitv1.5 accepts 1536; scene-portraitv2.0 accepts 1536pro; scene-portraitv2.1 accepts 1536profast, 1536pro. Uses the model's recommended value when unset. |
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 (v2.0 and above; billed add-on). |
face_count | integer 100000–2000000 | — | Target face count. Uses the recommended count for the resolution when unset. |
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.$0.90 per request with default settings. Price by option (other settings at default):
| Option | Price |
|---|---|
| enable_pbr on | $0.90 |
| enable_pbr off | $0.80 |
| enable_texture on | $0.90 |
| enable_texture off | $0.60 |
| resolution unset | $0.90 |
| resolution = 512 | $0.40 |
| resolution = 1024 | $0.50 |
| resolution = 1536 | $0.70 |
| resolution = 1536pro | $0.90 |
| resolution = 1536fast | $0.50 |
| resolution = 1536profast | $0.50 |
| version = hitem3dv1.5 | $0.80 |
| version = hitem3dv2.0 | $0.90 |
| version = hitem3dv2.1 | $0.90 |
| version = scene-portraitv1.5 | $0.60 |
| version = scene-portraitv2.0 | $0.90 |
| version = scene-portraitv2.1 | $0.90 |
| Failed runs are not charged. |
Other Hitem3D 3D endpoints: hitem3d/hi3d/multi-view-to-3d, hitem3d/hi3d/multicolor, hitem3d/hi3d/split, hitem3d/hi3d/texture.
Geliştirmeye başlayın
Bu modeli SandBase Unified Run API üzerinden gönderin.
# 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/image-to-3d",
"image": "https://storage.googleapis.com/falserverless/example_inputs/dog.png",
"version": "hitem3dv2.1",
"enable_pbr": true,
"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"Bir SandBase API anahtarı oluşturun ve sunucu ortamınıza ayarlayın. Tüm istekler Bearer kimlik doğrulaması kullanır.
export SANDBASE_API_KEY="YOUR_API_KEY"Anahtarı sunucuda tutun. Tarayıcı kodunda açığa çıkarmayın veya bir depoya commit etmeyin.
Bu model kimliği ve girdileriyle /v1/run adresine POST gönderin. Yukarıdaki istek örneği gönderme ve yoklamayı içerir.
Durum completed, failed veya timeout olana kadar verilen run ID ile yoklama yapın. Çıktıyı yalnızca completed olduktan sonra okuyun.
curl "https://api.sandbase.ai/v1/run/$RUN_ID" \
-H "Authorization: Bearer $SANDBASE_API_KEY"Modelin image, video veya audio alanına herkese açık erişilebilir bir dosya URL'si verin. Desteklenen formatlar ve sınırlar her Playground girişinin yanında gösterilir.
Playground'daki desteklenen image alanlarında yükleme veya değiştirme kontrolünü kullanın. Video URL alanları barındırılan bir sürüş videosu kabul eder; video yükleme desteği anlamına gelmez.
imagestringzorunluInput image URL. PNG, JPEG and WebP, up to 20MB.
versionstringModel version. hitem3d* are general models; scene-portrait* are tuned for portraits and characters.
Varsayılan: "hitem3dv2.1"
Olası değerler: "hitem3dv1.5", "hitem3dv2.0", "hitem3dv2.1", "scene-portraitv1.5", "scene-portraitv2.0", "scene-portraitv2.1"
enable_pbrbooleanGenerate PBR material maps with the texture (v2.0 and above; billed add-on).
Varsayılan: true
face_countintegerTarget face count. Uses the recommended count for the resolution when unset.
Minimum: 100000
Maksimum: 2000000
resolutionstringGeneration resolution; supported values depend on the model: v1.5/v2.0 accept 512, 1024, 1536, 1536pro; v2.1 accepts 1536fast, 1536pro; scene-portraitv1.5 accepts 1536; scene-portraitv2.0 accepts 1536pro; scene-portraitv2.1 accepts 1536profast, 1536pro. Uses the model's recommended value when unset.
Olası değerler: "512", "1024", "1536", "1536pro", "1536fast", "1536profast"
export_formatstringFile format of the generated model.
Varsayılan: "glb"
Olası değerler: "glb", "obj", "stl", "fbx", "usdz"
enable_texturebooleanGenerate textures in addition to geometry. When false, only the geometry mesh is generated (cheaper).
Varsayılan: true
{
"model": "hitem3d/hi3d/image-to-3d",
"image": "https://storage.googleapis.com/falserverless/example_inputs/dog.png",
"version": "hitem3dv2.1",
"enable_pbr": true,
"export_format": "glb",
"enable_texture": true
}Tamamlanan bir run, sonucunu output içinde gösterir. Aşağıdaki, modelin kaydedilmiş örneğidir; yeni bir üretim değildir.
[
{
"poster": "https://static.sandbase.ai/examples/6fda1575-fd88-4b4d-b090-7587939292a0/output/5f9cdfb1-3783-4c94-80e5-60d786fcf167.webp",
"thumbnail": "https://static.sandbase.ai/examples/6fda1575-fd88-4b4d-b090-7587939292a0/output/5f9cdfb1-3783-4c94-80e5-60d786fcf167.webp",
"url": "https://static.sandbase.ai/examples/6fda1575-fd88-4b4d-b090-7587939292a0/output/cd9ca3fe-9288-40d6-a605-e44ffbcb0b29.glb"
}
]