curl --request POST \
--url https://api.vidgo.ai/api/generate/submit \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"model": "hunyuan-3d/v3.1/pro/text-to-3d",
"input": {
"prompt": "A quiet forest under soft morning light, with natural detail.",
"face_count": 500000,
"enable_pbr": true,
"generate_type": "Normal"
}
}
'{
"code": 200,
"data": {
"task_id": "task-unified-example",
"status": "running",
"created_time": "2026-09-10T08:00:00"
}
}{
"detail": "<string>"
}{
"detail": "<string>"
}{
"detail": "<string>"
}{
"detail": "<string>"
}Request timeout{
"detail": "<string>"
}{
"detail": "<string>"
}{
"detail": "<string>"
}{
"detail": "<string>"
}{
"detail": "<string>"
}Hunyuan3D
Hunyuan 3D v3.1 Pro 文生 3D
Hunyuan 3D v3.1 Pro API 根据文本生成 3D 物体,可控制网格复杂度,并支持仅输出几何体。
POST
/
api
/
generate
/
submit
curl --request POST \
--url https://api.vidgo.ai/api/generate/submit \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"model": "hunyuan-3d/v3.1/pro/text-to-3d",
"input": {
"prompt": "A quiet forest under soft morning light, with natural detail.",
"face_count": 500000,
"enable_pbr": true,
"generate_type": "Normal"
}
}
'{
"code": 200,
"data": {
"task_id": "task-unified-example",
"status": "running",
"created_time": "2026-09-10T08:00:00"
}
}{
"detail": "<string>"
}{
"detail": "<string>"
}{
"detail": "<string>"
}{
"detail": "<string>"
}Request timeout{
"detail": "<string>"
}{
"detail": "<string>"
}{
"detail": "<string>"
}{
"detail": "<string>"
}{
"detail": "<string>"
}- 提交后会返回
task_id。如果提供了callback_url,当任务状态变为finished或failed时,系统会向callback_url发送 POST 请求。 - 无论是否提供
callback_url,都可以通过统一的查询任务状态接口获取结果。
模型
- hunyuan-3d/v3.1/pro/text-to-3d - 根据文本提示词生成 3D 模型。
功能
- 根据文本提示词生成 3D 模型。
- 从任务结果中获取模型资源,以及可用的预览图或辅助文件。
输出选项
生成类型
generate_type:可选。选择Normal生成带纹理的模型,或选择Geometry生成仅含几何体的白模。
面数
face_count:可选。设置目标面数。40000到1500000的整数。默认:500000。
高级参数
model 和可选的 callback_url 放在请求根级。所有工作流参数(包括输出选项)都放在 input 内。
使用下列输入参数。
提示词
prompt:必填。描述所需的 3D 物体。长度:1-1,024 个字符。- 提供此参数时请使用非空字符串。
PBR
enable_pbr:可选。设为true时在纹理模式下生成 PBR 材质。仅几何体生成优先于此设置。
输出文件
- 读取返回的
files数组中的每一项。 - 模型资源为
file_type: "3d";预览图为file_type: "image"。 - 其他产物可能为
file_type: "other"。保留返回的纹理、材质文件和文件元数据。
授权
使用 VIDGO_API_KEY。
请求体
application/json