promptstringобязательно
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.
Попробовать модель

Что вы хотите сделать дальше?
Выберите пример, чтобы загрузить его входные данные и результат в playground.
{
"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.
Начните разработку
Отправьте эту модель через 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"Создайте ключ SandBase API и задайте его в окружении сервера. Все запросы используют аутентификацию Bearer.
export SANDBASE_API_KEY="YOUR_API_KEY"Храните ключ на сервере. Не раскрывайте его в коде браузера и не коммитьте в репозиторий.
Отправьте POST на /v1/run с этим ID модели и её входными данными. Пример запроса выше включает отправку и опрос.
Используйте возвращённый ID запуска, чтобы опрашивать статус до завершения, ошибки или таймаута. Читайте вывод только после завершения.
curl "https://api.sandbase.ai/v1/run/$RUN_ID" \
-H "Authorization: Bearer $SANDBASE_API_KEY"Передайте публично доступный URL файла в поле image, video или audio модели. Поддерживаемые форматы и лимиты показаны рядом с каждым полем Playground.
Используйте управление загрузкой или заменой в поддерживаемых полях изображений в Playground. Поля URL видео принимают размещённое видео для вождения; это не означает поддержку загрузки видео.
promptstringобязательноText description of the 3D object to generate. Up to 1024 characters.
enable_pbrbooleanGenerate PBR materials (metallic, roughness, normal maps). Ignored for Geometry output.
По умолчанию: false
face_countintegerTarget polygon face count (40,000-1,500,000). Leave empty for the default of 500,000.
Минимум: 40000
Максимум: 1500000
polygon_typestringPolygon type. Only takes effect when Generate Type is LowPoly.
По умолчанию: "triangle"
Возможные значения: "triangle", "quadrilateral"
generate_typestringNormal: textured model. LowPoly: polygon reduction. Geometry: white model without texture.
По умолчанию: "Normal"
Возможные значения: "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"
}В завершённом запуске результат доступен в output. Ниже приведён сохранённый пример модели, а не новая генерация.
[
{
"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"
}
]