promptstringwymagane
Text description of the 3D object to generate. Up to 1024 characters.
tencent/hunyuan-3d/v3/text-to-3dHunyuan 3D 3.0 by Tencent generates a textured, low-poly, or geometry-only 3D model from a text prompt.
Wypróbuj model

Co chcesz zrobić dalej?
Wybierz przykład, aby wczytać jego dane wejściowe i wynik do playgroundu.
{
"prompt": "A vintage red rotary telephone with a coiled cord"
}Hunyuan 3D 3.0 by Tencent generates a textured, low-poly, or geometry-only 3D model from a text prompt.
| Field | Type | Default | Notes |
|---|---|---|---|
prompt | string, required | — | Text description of the 3D object to generate. Up to 1024 characters. |
generate_type | Normal / LowPoly / Geometry | Normal | Normal: textured model. LowPoly: polygon reduction. Geometry: white model without texture. |
enable_pbr | boolean | false | Generate PBR materials (metallic, roughness, normal maps). Ignored for Geometry output. |
face_count | integer 40000–1500000 | — | Target polygon face count (40,000-1,500,000). Leave empty for the default of 500,000. |
polygon_type | triangle / quadrilateral | triangle | Polygon type. Only takes effect when Generate Type is LowPoly. |
url: Main 3D file (GLB unless another export format is selected).thumbnail: Preview image rendered by the provider.$0.63 per request with default settings. Price by option (other settings at default):
| Option | Price |
|---|---|
| enable_pbr on | $0.81 |
| enable_pbr off | $0.63 |
| generate_type = Normal | $0.63 |
| generate_type = LowPoly | $0.72 |
| generate_type = Geometry | $0.45 |
| 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/hunyuan-3d/v3/text-to-3d",
"prompt": "A rustic wooden treasure chest with metal bands and ornate lock",
"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"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.
promptstringwymaganeText description of the 3D object to generate. Up to 1024 characters.
enable_pbrbooleanGenerate PBR materials (metallic, roughness, normal maps). Ignored for Geometry output.
Domyślnie: false
face_countintegerTarget polygon face count (40,000-1,500,000). Leave empty for the default of 500,000.
Minimum: 40000
Maksimum: 1500000
polygon_typestringPolygon type. Only takes effect when Generate Type is LowPoly.
Domyślnie: "triangle"
Możliwe wartości: "triangle", "quadrilateral"
generate_typestringNormal: textured model. LowPoly: polygon reduction. Geometry: white model without texture.
Domyślnie: "Normal"
Możliwe wartości: "Normal", "LowPoly", "Geometry"
{
"model": "tencent/hunyuan-3d/v3/text-to-3d",
"prompt": "A rustic wooden treasure chest with metal bands and ornate lock",
"enable_pbr": false,
"face_count": 500000,
"polygon_type": "triangle",
"generate_type": "Normal"
}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/22003e9c-9594-44af-ba64-e21cbf96d8c5/output/e92d18df-2657-479e-a8fa-3ca14c7f4b42.png",
"thumbnail": "https://static.sandbase.ai/examples/22003e9c-9594-44af-ba64-e21cbf96d8c5/output/e92d18df-2657-479e-a8fa-3ca14c7f4b42.png",
"url": "https://static.sandbase.ai/examples/22003e9c-9594-44af-ba64-e21cbf96d8c5/output/05198c59-b9e3-4e2e-8a91-630470d87905.glb"
}
]