imagestringrequerido
Reference image URL used to texture the model. PNG, JPEG and WebP, up to 20MB.
hitem3d/hi3d/textureHi3D Texture by Hitem3D adds textures to an untextured GLB model using a reference image. It uses the v1.5 texture models.
Probar el modelo
PNG, JPEG, WebP o GIF · máximo 20 MiB
¿Qué le gustaría hacer después?
Seleccione un ejemplo para cargar sus entradas y el resultado en el playground.
{
"image": "https://static.sandbase.ai/examples/c4501277-43f5-4c6a-ae4b-4f56d42ca2f3/input/24dabdc3-0dee-40c8-b5b3-a4433574aa59.png",
"model_url": "https://static.sandbase.ai/examples/c4501277-43f5-4c6a-ae4b-4f56d42ca2f3/input/b28d2ada-8f0f-43c0-ae09-ce44d9c4a506.glb"
}Hi3D Texture by Hitem3D adds textures to an untextured GLB model using a reference image. It uses the v1.5 texture models.
| Field | Type | Default | Notes |
|---|---|---|---|
model_url | string, required | — | URL of the GLB geometry model to texture (e.g. Hi3D image-to-3d output with texture off). |
image | image URL, required | — | Reference image URL used to texture the model. PNG, JPEG and WebP, up to 20MB. |
version | hitem3dv1.5 / scene-portraitv1.5 | hitem3dv1.5 | Texture model version. |
resolution | 512 / 1024 / 1536 / 1536pro | — | Texture resolution. hitem3dv1.5 accepts 512, 1024, 1536, 1536pro; scene-portraitv1.5 accepts 1536. Uses the model's recommended value 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.20 per request. 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.
Empiece a construir
Envíe este modelo a través de la API de ejecución unificada de SandBase.
# 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/texture",
"image": "https://storage.googleapis.com/falserverless/example_inputs/dog.png",
"version": "hitem3dv1.5",
"model_url": "https://raw.githubusercontent.com/KhronosGroup/glTF-Sample-Models/master/2.0/DamagedHelmet/glTF-Binary/DamagedHelmet.glb",
"export_format": "glb"
}
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"Cree una clave de API de SandBase y configúrela en el entorno de su servidor. Todas las solicitudes usan autenticación Bearer.
export SANDBASE_API_KEY="YOUR_API_KEY"Conserve la clave en el servidor. No la exponga en código del navegador ni la confirme en un repositorio.
Haga un POST a /v1/run con este ID de modelo y sus entradas. El ejemplo de solicitud anterior incluye el envío y el sondeo.
Use el ID de ejecución devuelto para sondear hasta que el estado sea completed, failed o timeout. Lea la salida solo después de completed.
curl "https://api.sandbase.ai/v1/run/$RUN_ID" \
-H "Authorization: Bearer $SANDBASE_API_KEY"Proporcione una URL de archivo accesible públicamente en el campo de imagen, video o audio del modelo. Los formatos y límites admitidos se muestran junto a cada entrada de Playground.
Use el control de subir o reemplazar en los campos de imagen admitidos en Playground. Los campos de URL de video aceptan un video de conducción alojado; no implican compatibilidad con la subida de video.
imagestringrequeridoReference image URL used to texture the model. PNG, JPEG and WebP, up to 20MB.
versionstringTexture model version.
Valor predeterminado: "hitem3dv1.5"
Valores posibles: "hitem3dv1.5", "scene-portraitv1.5"
model_urlstringrequeridoURL of the GLB geometry model to texture (e.g. Hi3D image-to-3d output with texture off).
resolutionstringTexture resolution. hitem3dv1.5 accepts 512, 1024, 1536, 1536pro; scene-portraitv1.5 accepts 1536. Uses the model's recommended value when unset.
Valores posibles: "512", "1024", "1536", "1536pro"
export_formatstringFile format of the generated model.
Valor predeterminado: "glb"
Valores posibles: "glb", "obj", "stl", "fbx", "usdz"
{
"model": "hitem3d/hi3d/texture",
"image": "https://storage.googleapis.com/falserverless/example_inputs/dog.png",
"version": "hitem3dv1.5",
"model_url": "https://raw.githubusercontent.com/KhronosGroup/glTF-Sample-Models/master/2.0/DamagedHelmet/glTF-Binary/DamagedHelmet.glb",
"export_format": "glb"
}Una ejecución completada expone su resultado en la salida. Lo siguiente es el ejemplo guardado del modelo, no una nueva generación.
[
{
"poster": "https://static.sandbase.ai/examples/c4501277-43f5-4c6a-ae4b-4f56d42ca2f3/output/9a2b8d5e-4df7-4aa0-ab0c-c571cd319572.webp",
"thumbnail": "https://static.sandbase.ai/examples/c4501277-43f5-4c6a-ae4b-4f56d42ca2f3/output/9a2b8d5e-4df7-4aa0-ab0c-c571cd319572.webp",
"url": "https://static.sandbase.ai/examples/c4501277-43f5-4c6a-ae4b-4f56d42ca2f3/output/657aa660-3d28-4a47-8766-cef206b48303.glb"
}
]