imagestringobrigatório
Front view image URL. 128-5000px, max 8MB, JPG/PNG/WEBP. Works best with a single object on a simple background.
tencent/hunyuan-3d/3.1/rapid/image-to-3dHunyuan 3D 3.1 Rapid by Tencent quickly turns a single image into a textured or geometry-only 3D model.
Testar o modelo
PNG, JPEG, WebP ou GIF · máximo de 20 MiB
Sua saída aparecerá aqui
Preencha as entradas e clique em Executar.
Hunyuan 3D 3.1 Rapid by Tencent quickly turns a single image into a textured or geometry-only 3D model.
| Field | Type | Default | Notes |
|---|---|---|---|
image | image URL, required | — | Front view image URL. 128-5000px, max 8MB, JPG/PNG/WEBP. Works best with a single object on a simple background. |
enable_pbr | boolean | false | Generate PBR materials (metallic, roughness, normal maps). Ignored when Geometry Only is on. |
enable_geometry | boolean | false | Generate a geometry-only white model without textures. |
url: Main 3D file (GLB unless another export format is selected).thumbnail: Preview image rendered by the provider.$0.27 per request with default settings. Price by option (other settings at default):
| Option | Price |
|---|---|
| enable_pbr on | $0.375 |
| enable_pbr off | $0.27 |
| Failed runs are not charged. |
Other Tencent 3D endpoints: tencent/hunyuan-3d/3.0/image-to-3d, tencent/hunyuan-3d/3.1/part, tencent/hunyuan-3d/3.1/pro/image-to-3d, tencent/hunyuan-3d/3.1/pro/text-to-3d.
Comece a construir
Envie este modelo pela 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": "tencent/hunyuan-3d/3.1/rapid/image-to-3d",
"image": "https://static.sandbase.ai/examples/tencent/hunyuan-3d/3.1/rapid/image-to-3d/input_image_0.png",
"enable_pbr": false,
"enable_geometry": false
}
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"Crie uma chave da API SandBase e defina-a no ambiente do seu servidor. Todas as requisições usam autenticação Bearer.
export SANDBASE_API_KEY="YOUR_API_KEY"Mantenha a chave no servidor. Não a exponha em código do navegador nem a comite em um repositório.
Faça POST para /v1/run com este ID de modelo e suas entradas. O exemplo de requisição acima inclui envio e polling.
Use o ID de execução retornado para fazer polling até que o status seja completed, failed ou timeout. Leia a saída somente após completed.
curl "https://api.sandbase.ai/v1/run/$RUN_ID" \
-H "Authorization: Bearer $SANDBASE_API_KEY"Passe uma URL de arquivo acessível publicamente no campo de imagem, vídeo ou áudio do modelo. Os formatos e limites suportados são mostrados ao lado de cada entrada do Playground.
Use o controle de upload ou substituição nos campos de imagem suportados no Playground. Campos de URL de vídeo aceitam um vídeo de condução hospedado; isso não implica suporte a upload de vídeo.
imagestringobrigatórioFront view image URL. 128-5000px, max 8MB, JPG/PNG/WEBP. Works best with a single object on a simple background.
enable_pbrbooleanGenerate PBR materials (metallic, roughness, normal maps). Ignored when Geometry Only is on.
Padrão: false
enable_geometrybooleanGenerate a geometry-only white model without textures.
Padrão: false
{
"model": "tencent/hunyuan-3d/3.1/rapid/image-to-3d",
"image": "https://static.sandbase.ai/examples/tencent/hunyuan-3d/3.1/rapid/image-to-3d/input_image_0.png",
"enable_pbr": false,
"enable_geometry": false
}Uma execução concluída expõe seu resultado em output. O texto a seguir é o exemplo salvo do modelo, não uma nova geração.
Ainda não foi publicada nenhuma saída de exemplo. Use Playground → Result → JSON após uma execução concluída para inspecionar sua resposta.