model_urlstringобязательно
URL of the GLB or OBJ model to retopologize. Max 200MB.
tencent/hunyuan-3d/3.1/smart-topologyHunyuan 3D 3.1 Smart Topology by Tencent retopologizes a GLB or OBJ model into a clean triangle or quad mesh at a chosen polygon density.
Попробовать модель

Что вы хотите сделать дальше?
Выберите пример, чтобы загрузить его входные данные и результат в playground.
{
"model_url": "https://static.sandbase.ai/examples/9b53f7a8-45d2-4f3b-88b0-76cc4c831443/input/b6fbdee4-dae5-4d90-89b3-3ee62e24f51d.glb"
}Hunyuan 3D 3.1 Smart Topology by Tencent retopologizes a GLB or OBJ model into a clean triangle or quad mesh at a chosen polygon density.
| Field | Type | Default | Notes |
|---|---|---|---|
model_url | string, required | — | URL of the GLB or OBJ model to retopologize. Max 200MB. |
input_file_type | glb / obj | glb | Format of the input model. |
polygon_type | triangle / quadrilateral | triangle | triangle: triangles only. quadrilateral: mixed quads and triangles. |
face_level | high / medium / low | medium | Target polygon density: high keeps more detail, low gives fewer polygons. |
url: Main 3D file (GLB unless another export format is selected).$0.75 per request. 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/3.1/smart-topology",
"model_url": "https://static.sandbase.ai/examples/tencent/hunyuan-3d/3.1/smart-topology/input_input_file_url_0.glb",
"face_level": "medium",
"polygon_type": "triangle",
"input_file_type": "glb"
}
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 видео принимают размещённое видео для вождения; это не означает поддержку загрузки видео.
model_urlstringобязательноURL of the GLB or OBJ model to retopologize. Max 200MB.
face_levelstringTarget polygon density: high keeps more detail, low gives fewer polygons.
По умолчанию: "medium"
Возможные значения: "high", "medium", "low"
polygon_typestringtriangle: triangles only. quadrilateral: mixed quads and triangles.
По умолчанию: "triangle"
Возможные значения: "triangle", "quadrilateral"
input_file_typestringFormat of the input model.
По умолчанию: "glb"
Возможные значения: "glb", "obj"
{
"model": "tencent/hunyuan-3d/3.1/smart-topology",
"model_url": "https://static.sandbase.ai/examples/tencent/hunyuan-3d/3.1/smart-topology/input_input_file_url_0.glb",
"face_level": "medium",
"polygon_type": "triangle",
"input_file_type": "glb"
}В завершённом запуске результат доступен в output. Ниже приведён сохранённый пример модели, а не новая генерация.
[
{
"poster": "https://static.sandbase.ai/examples/9b53f7a8-45d2-4f3b-88b0-76cc4c831443/output/d953d005-c094-4ed0-bdb8-17bdc9781bbd.png",
"url": "https://static.sandbase.ai/examples/9b53f7a8-45d2-4f3b-88b0-76cc4c831443/output/cf26742b-6cf8-4342-8fad-078447bc221b.glb"
}
]