Hunyuan 3D 3.6 Text to 3D API
hunyuan-3d/v3.6/text-to-3dHunyuan 3D 3.6 Text to 3D 将文字转为最高 200 万面、8K PBR 贴图的 GLB 与 OBJ 模型。支持面数约束与五种预设,贴图零加价。

REST API
快速开始
向统一提交接口发送 Hunyuan 3D 3.6 Text to 3D 请求,获取 task_id,并在任务完成后下载 GLB、OBJ ZIP 与预览图。
连接 Vidgo API
创建 API Key 并仅保存在服务端,通过 Authorization: Bearer VIDGO_API_KEY 发送请求。
- 端点
- POST
https://api.vidgo.ai/api/generate/submit - 认证
- Authorization: Bearer VIDGO_API_KEY
提交 3D 生成任务
发送模型 ID hunyuan-3d/v3.6/text-to-3d 与当前任务参数,立即返回 task_id。
curl --request POST \
--url "https://api.vidgo.ai/api/generate/submit" \
--header "Authorization: Bearer $VIDGO_API_KEY" \
--header "Content-Type: application/json" \
--data '{
"model": "hunyuan-3d/v3.6/text-to-3d",
"input": {
"prompt": "A battle-worn dwarf blacksmith in a layered leather apron over chainmail, holding a forging hammer",
"generate_type": "Normal",
"enable_pbr": true,
"texture_resolution": "4k"
}
}'等待 3D 资产返回
在 not_started 或 running 时继续轮询;finished 后从 data.files 读取全部交付文件。
查询状态
GET https://api.vidgo.ai/api/generate/status/{task_id}高模任务通常需要数分钟,建议每 5–10 秒轮询一次或配置顶层 callback_url。
not_startedrunningfinishedfailed{
"code": 200,
"data": {
"task_id": "task-example-3d",
"status": "not_started",
"created_time": "2026-11-29T10:30:00"
}
}{
"code": 200,
"data": {
"task_id": "task-example-3d",
"status": "finished",
"created_time": "2026-11-29T10:30:00",
"progress": 100,
"files": [
{
"file_url": "https://example.com/model.glb",
"file_type": "3d"
},
{
"file_url": "https://example.com/model-obj.zip",
"file_type": "3d"
},
{
"file_url": "https://example.com/preview.png",
"file_type": "image"
}
]
}
}完整可运行轮询示例
展开查看完整端到端轮询脚本与错误处理。
set -euo pipefail
: "${VIDGO_API_KEY:?Set VIDGO_API_KEY in your environment}"
REQUEST_BODY=$(cat <<'JSON'
{
"model": "hunyuan-3d/v3.6/text-to-3d",
"input": {
"prompt": "A battle-worn dwarf blacksmith in a layered leather apron over chainmail, holding a forging hammer",
"generate_type": "Normal",
"enable_pbr": true,
"texture_resolution": "4k"
}
}
JSON
)
SUBMIT_RESPONSE=$(curl --silent --show-error --fail-with-body \
--request POST \
--url "https://api.vidgo.ai/api/generate/submit" \
--header "Authorization: Bearer $VIDGO_API_KEY" \
--header "Content-Type: application/json" \
--data "$REQUEST_BODY")
TASK_ID=$(printf '%s' "$SUBMIT_RESPONSE" | jq -r '.data.task_id // .task_id // empty')
if [ -z "$TASK_ID" ]; then
printf 'Submit response did not include task_id:
%s
' "$SUBMIT_RESPONSE" >&2
exit 1
fi
while true; do
STATUS_RESPONSE=$(curl --silent --show-error --fail-with-body \
--url "https://api.vidgo.ai/api/generate/status/$TASK_ID" \
--header "Authorization: Bearer $VIDGO_API_KEY")
STATUS=$(printf '%s' "$STATUS_RESPONSE" | jq -r '.data.status // .status // empty')
case "$STATUS" in
finished)
printf '%s' "$STATUS_RESPONSE" | jq -r '(.data.files // .files // [])[]?.file_url'
break
;;
failed)
printf '%s' "$STATUS_RESPONSE" | jq -r '.data.error_message // .error_message // "Generation failed"' >&2
exit 1
;;
not_started|running)
sleep 2
;;
*)
printf 'Unexpected task status: %s
' "$STATUS" >&2
exit 1
;;
esac
done请求参数
下表列出 input 内的公开参数;顶层 model 与可选 callback_url 放在请求根级。
| 字段 | 类型 | 必填 | 默认值 | 说明 |
|---|---|---|---|---|
| input.prompt | string | 是 | — | 三维物体的结构、轮廓、材质与风格描述,最多 1,024 字符。 |
| input.generate_type | string | 否 | Normal | Normal(带贴图完整模型)或 Geometry(无贴图白模)。 |
| input.face_count | integer | 否 | 2000000 | 目标面数,范围 1,000–2,000,000。 |
| input.face_strict_mode | boolean | 否 | false | 开启后更严格约束输出网格贴近目标面数。 |
| input.enable_pbr | boolean | 否 | false | 是否生成金属度/粗糙度等 PBR 材质贴图(仅 Normal 模式)。 |
| input.texture_resolution | string | 否 | 4k | 贴图分辨率:2k、4k 或 8k(仅 Normal 模式)。 |
| input.texture_format | string | 否 | jpeg | 贴图编码格式:png、jpeg、jpg 或 webp(仅 Normal 模式)。 |
| input.seamless_texture | boolean | 否 | false | 开启无缝贴图以减少曲面 UV 接缝(仅 Normal 模式)。 |
| input.style | string | 否 | — | 预设风格:qinghuaci、china_style、sculpture、cartoon 或 cyberpunk(仅 Normal 模式)。 |
响应字段
状态完成后在 data.files 中返回 GLB、OBJ ZIP(Normal 模式)与 PNG 预览图。
| 字段 | 类型 | 说明 |
|---|---|---|
| code | integer | 业务返回码,0 或 200 表示成功。 |
| data.task_id | string | 用于状态查询的唯一任务 ID。 |
| data.status | string | not_started、running、finished 或 failed。 |
| data.files[].file_url | string | 模型文件或预览图的直接下载链接。 |
| data.files[].file_type | string | GLB 与 OBJ ZIP 为 3d,预览图为 image。 |
| data.error_message | string | null | 失败时的可读错误说明。 |
任务生命周期
仅前两个状态继续轮询,finished 与 failed 均为终态。
not_started任务已接收并排队。
running正在构建网格与贴图,继续轮询。
finished生成完成,遍历 data.files 下载资产。
failed任务失败,积分全额退还。
轮询与错误处理
- 认证使用 Authorization: Bearer VIDGO_API_KEY。
- 参数校验400 表示字段、面数范围或跨模式参数不符合契约。
- 轮询间隔建议 5–10 秒轮询一次,高模任务请预留充足超时时间。
- 回调提供顶层 callback_url 可在任务终态接收 POST 回调。
模型规格
| 规格 | 取值 | 说明 |
|---|---|---|
| 模型标识 | hunyuan-3d/v3.6/text-to-3d | 在 POST /api/generate/submit 的顶层 model 字段传入。 |
| 面数上限 | 1,000–2,000,000 faces | 默认 2,000,000 面,可选 face_strict_mode 精确控面。 |
| 贴图与材质 | 2K / 4K / 8K · PNG / JPEG / WEBP | 支持 PBR 与无缝贴图,不额外加价。 |
| 输出交付 | GLB + OBJ ZIP (Normal) + PNG | Geometry 模式交付白模 GLB 与 PNG 预览图。 |
Hunyuan 3D 3.6 Text to 3D API 常见问题
Hunyuan 3D 3.6 Text to 3D API 是什么?
Hunyuan 3D 3.6 Text to 3D 是腾讯推出的高精度文生 3D 模型,可将最长 1,024 字符的文字描述生成最高 200 万面、支持 2K–8K PBR 贴图的 GLB 与 OBJ 三维资产。它提供完整贴图的 Normal 模式与轻量白模 Geometry 模式,内置五种风格预设且高分贴图与 PBR 均无附加费。模型基于腾讯新一代混元 3D 架构,输出边缘锐利、UV 接缝自然且物理材质响应准确。您可通过 hunyuan-3d/v3.6/text-to-3d 接口调用,或在上方体验区直接试用。
Hunyuan 3D 3.6 Text to 3D 如何计费?
Normal 完整贴图模式每次 400 积分($2.00),Geometry 纯几何白模模式每次 160 积分($0.80)。
在 Hunyuan 3D 3.6 Text to 3D 中开启 8K 贴图、PBR 或 200 万面会加价吗?
不会。enable_pbr、texture_resolution 设为 8k 或调高 face_count 均不产生额外积分费用。
Hunyuan 3D 3.6 Text to 3D 会返回哪些文件格式?
任务完成后返回预览渲染图以及可下载的 GLB 模型文件与 OBJ 压缩包。
Hunyuan 3D 3.6 Text to 3D 支持哪些风格预设?
Normal 模式下可选五种 style 预设:qinghuaci、china_style、sculpture、cartoon 与 cyberpunk。
Hunyuan 3D 3.6 Text to 3D 的 face_strict_mode 有什么作用?
开启 face_strict_mode 后会更严格控制网格精简,使最终面数更贴近设定的 face_count。
Hunyuan 3D 3.6 Text to 3D 的 Normal 和 Geometry 模式有何区别?
Normal 同时生成几何网格与 UV/PBR 材质贴图(400 积分);Geometry 仅生成无贴图白模网格(160 积分)。



