seedinteger
Random seed. The same seed and input reproduce the same result.
tencent/hunyuan3d/v2/turboHunyuan3D 2.0 Turbo by Tencent, the fast variant of Hunyuan3D 2.0, generates a 3D mesh from a single image, as a white mesh or with textures.
Wypróbuj model
PNG, JPEG, WebP lub GIF · maksymalnie 20 MiB

Co chcesz zrobić dalej?
Wybierz przykład, aby wczytać jego dane wejściowe i wynik do playgroundu.
{
"image": "https://static.sandbase.ai/examples/87972c64-37f6-42d8-8cec-8c70a014162e/input/1bd2f553-56ec-49d3-96ed-f98e15d37234.png",
"textured_mesh": true
}Hunyuan3D 2.0 Turbo by Tencent, the fast variant of Hunyuan3D 2.0, generates a 3D mesh from a single image, as a white mesh or with textures.
| Field | Type | Default | Notes |
|---|---|---|---|
image | image URL, required | — | URL of the image to turn into a 3D model. |
textured_mesh | boolean | false | Generate a textured mesh instead of a white (untextured) mesh. Textured output costs 3x. |
octree_resolution | integer 1–1024 | 256 | Octree resolution of the generated mesh. Higher values give finer geometry. |
seed | integer | — | Random seed. The same seed and input reproduce the same result. |
url: Main 3D file (GLB unless another export format is selected).$0.14 per request with default settings. Price by option (other settings at default):
| Option | Price |
|---|---|
| textured_mesh on | $0.42 |
| textured_mesh off | $0.14 |
| 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.
Zacznij tworzyć
Prześlij ten model przez 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/hunyuan3d/v2/turbo",
"image": "https://static.sandbase.ai/examples/tencent/hunyuan3d/v2/turbo/input_image_0.png",
"textured_mesh": false,
"octree_resolution": 256
}
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"Utwórz klucz API SandBase i ustaw go w środowisku serwera. Wszystkie żądania używają uwierzytelniania Bearer.
export SANDBASE_API_KEY="YOUR_API_KEY"Przechowuj klucz na serwerze. Nie ujawniaj go w kodzie przeglądarkowym ani nie commituj do repozytorium.
Wyślij POST do /v1/run z tym identyfikatorem modelu i jego danymi wejściowymi. Powyższy przykład żądania obejmuje wysyłanie i odpytywanie statusu.
Użyj zwróconego ID uruchomienia, aby odpytywać status do momentu completion, failed lub timeout. Odczytaj wynik dopiero po completion.
curl "https://api.sandbase.ai/v1/run/$RUN_ID" \
-H "Authorization: Bearer $SANDBASE_API_KEY"Przekaż publicznie dostępny URL pliku w polu image, video lub audio modelu. Obsługiwane formaty i limity są pokazane obok każdego pola wejściowego w Playground.
Użyj kontrolki upload lub replace w obsługiwanych polach image w Playground. Pola URL wideo akceptują hostowany film źródłowy; nie oznacza to obsługi przesyłania wideo.
seedintegerRandom seed. The same seed and input reproduce the same result.
imagestringwymaganeURL of the image to turn into a 3D model.
textured_meshbooleanGenerate a textured mesh instead of a white (untextured) mesh. Textured output costs 3x.
Domyślnie: false
octree_resolutionintegerOctree resolution of the generated mesh. Higher values give finer geometry.
Domyślnie: 256
Minimum: 1
Maksimum: 1024
{
"model": "tencent/hunyuan3d/v2/turbo",
"image": "https://static.sandbase.ai/examples/tencent/hunyuan3d/v2/turbo/input_image_0.png",
"textured_mesh": false,
"octree_resolution": 256
}Zakończone uruchomienie udostępnia swój wynik w output. Poniżej znajduje się zapisany przykład modelu, a nie nowa generacja.
[
{
"poster": "https://static.sandbase.ai/examples/87972c64-37f6-42d8-8cec-8c70a014162e/output/b3da46fa-5172-4b5f-96b7-ea5a757196e8.png",
"url": "https://static.sandbase.ai/examples/87972c64-37f6-42d8-8cec-8c70a014162e/output/1ccad686-598f-437c-baa2-0570a270c25b.glb"
}
]