imagestringobrigatório
URL of image to use while generating the 3D model.
tencent/hunyuan-3d/3.0/image-to-3dHunyuan 3d V3 is Tencent's image-to-3D AI model. Transform photographs into production-ready 3D meshes with accurate geometry and texture mapping.
Testar o modelo
PNG, JPEG, WebP ou GIF · máximo de 20 MiB
PNG, JPEG, WebP ou GIF · máximo de 20 MiB
PNG, JPEG, WebP ou GIF · máximo de 20 MiB
PNG, JPEG, WebP ou GIF · máximo de 20 MiB

O que você gostaria de fazer em seguida?
Selecione um exemplo para carregar as entradas e o resultado no playground.
{
"image": "https://static.sandbase.ai/examples/abf2367a-454d-4481-8a41-be5aeee0de10/input/dd7094c9-b163-4c93-bdc3-818d495d55aa.png"
}Hunyuan 3D 3.0 turns an image (plus optional side and back views) into a textured, low-poly, or geometry-only 3D model.
| Field | Type | Default | Notes |
|---|---|---|---|
image | image URL, required | — | Front view. JPEG, PNG, or WebP URL. |
enable_pbr | boolean | false | PBR materials. |
polygon_type | triangle / quadrilateral | triangle | Triangle or quad mesh. |
generate_type | Normal / LowPoly / Geometry | Normal | Normal textured, LowPoly, or Geometry (untextured). |
face_count | integer 40000–1500000 | 500000 | Target face count. |
back_image | image URL | — | Optional extra view. |
left_image | image URL | — | Optional extra view. |
right_image | image URL | — | Optional extra view. |
$0.63 per textured model, $0.72 low-poly, $0.45 geometry-only; PBR adds $0.18 and extra views add $0.18.
| Request | Price |
|---|---|
| Normal | $0.63 |
| LowPoly | $0.72 |
| Geometry | $0.45 |
| Normal + PBR + extra views | $0.99 |
Failed runs are not charged.
Other Hunyuan 3D endpoints: tencent/hunyuan-3d/3.1/pro/text-to-3d, tencent/hunyuan-3d/3.1/pro/image-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.0/image-to-3d",
"image": "https://static.sandbase.ai/examples/tencent/hunyuan-3d/v3/input_image_0.png",
"enable_pbr": false,
"face_count": 500000,
"polygon_type": "triangle",
"generate_type": "Normal"
}
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órioURL of image to use while generating the 3D model.
back_imagestringOptional back view image URL for multi-view reconstruction.
enable_pbrbooleanGenerate PBR materials (metallic, roughness, normal). Ignored for Geometry output.
Padrão: false
face_countintegerTarget polygon face count (custom face count is billed as an add-on).
Padrão: 500000
Mínimo: 40000
Máximo: 1500000
left_imagestringOptional left view image URL for multi-view reconstruction.
right_imagestringOptional right view image URL for multi-view reconstruction.
polygon_typestringPolygon type. Only takes effect when generate_type is LowPoly.
Padrão: "triangle"
Valores possíveis: "triangle", "quadrilateral"
generate_typestringNormal: textured model. LowPoly: polygon reduction. Geometry: white model without texture.
Padrão: "Normal"
Valores possíveis: "Normal", "LowPoly", "Geometry"
{
"model": "tencent/hunyuan-3d/3.0/image-to-3d",
"image": "https://static.sandbase.ai/examples/tencent/hunyuan-3d/v3/input_image_0.png",
"enable_pbr": false,
"face_count": 500000,
"polygon_type": "triangle",
"generate_type": "Normal"
}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.
[
{
"poster": "https://static.sandbase.ai/examples/abf2367a-454d-4481-8a41-be5aeee0de10/output/359c378e-db23-4bb6-8857-721ce94fe4a0.png",
"thumbnail": "https://static.sandbase.ai/examples/abf2367a-454d-4481-8a41-be5aeee0de10/output/359c378e-db23-4bb6-8857-721ce94fe4a0.png",
"url": "https://static.sandbase.ai/examples/abf2367a-454d-4481-8a41-be5aeee0de10/output/fb2bd85d-31ea-4509-9ae8-0cc24d448897.glb"
}
]