tencent cloud

LLM Service TokenHub

HY-3D-3.1 API Guide

ダウンロード
フォーカスモード
フォントサイズ
最終更新日: 2026-11-23 19:11:00
AI翻訳

Introduction

The Hunyuan 3d API intelligently generates 3d content based on input text descriptions/images, powered by the Hunyuan foundation model.

Integration Guide

1. Obtaining an API Key

1. Go to the API Key Management page and click Create API Key. For detailed operations, see Create API Key.
2. After creation, be sure to copy and securely store the API Key. This information will be used in the subsequent process of configuring the tool.

Note:
The API key of each account can only be queried by that account. Sub-accounts cannot view the API key information of the main account. If a sub-account needs to call APIs, it must create its own API key information.
If a sub-account cannot be created, the sub-account user may not have permission to create API keys. In this case, authorization from the main account is required. After logging in to the main account, click User List, and select Authorize next to the corresponding sub-account. A dialog box for associating policies will appear. Enter the authorization policy name to search, select the corresponding policy, and click Confirm.
Authorization policy: QcloudTokenhubFullAccess

2. Concurrency Quota

Three concurrent tasks are provided by default, meaning that at most three submitted tasks can be processed simultaneously. The next task can only be processed after the previous task is completed.
Concurrent tasks: The maximum number of tasks that can run during the period when the corresponding service is being called. While a task is not completed, the next task cannot be submitted. After the task is completed, the next task can be submitted.

API Documentation

Submitting a Hunyuan 3d Pro Task

Input parameters
Parameter Name
Required
Type
Description
model
Yes
string
Hunyuan 3d model name. Default value: hy-3d-3.1.
Example value: hy-3d-3.1.
prompt
No
string
Description of 3d content generated from text, in Chinese.
Supports up to 1024 utf-8 characters.
At least one of image_base64, image_url, and prompt is required, and prompt cannot coexist with image_base64/image_url.
Example value: a kitten.
image_base64
No
string
base64 data of the input image.
Size: The resolution of each side must be no less than 128 and no greater than 5000, and the file size must be no more than 6 MB (because base64 encoding increases the size by about 30%).
Format: jpg, png, jpeg, webp.
At least one of image_base64, image_url, and prompt is required, and prompt cannot coexist with image_base64/image_url.
Example value: /9j/4QlQaHR0c...N6a2M5ZCI
image_url
No
string
url of the input image.
Size: The resolution of each side must be no less than 128 and no greater than 5000, and the file size must be no more than 8 MB.
Format: jpg, png, jpeg, webp.
At least one of image_base64, image_url, and prompt is required, and prompt cannot coexist with image_base64/image_url.
Example value: https://cos.ap-guangzhou.myqcloud.com/image.jpg
multi_view_images
No
array of view_image
Multi-view model images, with reference values for the views:
left: Left view
right: Right view
back: Back view
top: Top view
bottom: Bottom view
left_front: Left front 45° view
right_front: Right front 45° view
Only one image is allowed per view.
Image size limit: The total size of all images must be less than 100 MB, and each individual image must be less than 8 MB.
Image resolution limit: The resolution of each side must be less than 5000 and greater than 128.
Supported image formats: jpg or png.
For details, see the view_image data structure.
enable_pbr
No
boolean
Whether to enable pbr material generation. Default value: false.
Example value: true.
face_count
No
integer
Number of faces for the generated 3d model. Default value: 500000. Supported face quantity range, reference value: 3000-1500000.
Value range: [3000, 1500000].
Example value: 100000.
generate_type
No
string
Generation task type. Default value: Normal.
Enum values:
Normal: Can generate textured geometric models.
Geometry: Can generate geometric models without textures (white models). The enable_pbr parameter does not take effect.
Sketch: You can input a sketch or line drawing to generate a model. In this mode, image_base64, image_url, and prompt can be input together.
Example value: Normal.
polygon_type
No
string
This parameter takes effect only when LowPoly is selected for generate_type.
Polygon type, which indicates the number of sides of the mesh that constitutes the model surface. Default value: triangle. Reference values:
triangle: Triangle face.
quadrilateral: Generates a mix of quadrilateral and triangular faces.
Example value: triangle.
result_format
No
string
Format of the generated model. Only one format can be generated. The generated model file group returns obj and glb formats by default (when Geometry is selected for generate_type, the default format is glb). Optional values: stl, usdz, fbx.
Example value: stl.
Output parameters
Parameter Name
Type
Description
id
string
Task id (valid for 24 hours).
Example value: 1315932989749215232
request_id
string
Unique request id generated by the server and returned for each request (if the request fails to reach the server for other reasons, that request will not receive a request_id). Provide the request_id of the request when locating issues.
object
string
Indicates the object type. For 3d jobs, the value is fixed as 3d_job.
created_at
integer
Task creation time.
status
string
completed: task succeeded, failed: task failed, in_progress: in progress, queued: waiting.
Example value: completed

Querying a Hunyuan 3d Pro Task

Input parameters
Parameter Name
Required
Type
Description
model
Yes
string
Hunyuan 3d model name. Default value: hy-3d-3.1.
Example value: hy-3d-3.1.
id
Yes
string
Task id.
Example value: 1357237233311637504
Output parameters
Parameter Name
Type
Description
status
string
completed: task succeeded, failed: task failed, in_progress: in progress, queued: waiting.
Example value: completed
request_id
string
Unique request id generated by the server and returned for each request (if the request fails to reach the server for other reasons, that request will not receive a request_id). Provide the request_id of the request when locating issues.
object
string
Indicates the object type. For 3d jobs, the value is fixed as 3d_job.
created_at
integer
Task creation time.
completed_at
integer
Task completion time.
data
array of object
List of generated results, including generated 3d model files and related resource information. For details, see the data data structure.

Examples

Submitting a Hunyuan 3d Pro Task

Input Example
curl -X POST 'https://tokenhub-intl.tencentcloudmaas.com/v1/api/3d/submit' \\
-H 'Authorization: Bearer YOUR_API_KEY' \\
-H 'Content-Type: application/json' \\
-d '{
"model": "hy-3d-3.1",
"prompt": "A puppy"
}'
Output Example
{
"id": "14721*****320",
"request_id": "11f64379-bb0b-46b2-b89f-17d75fc12365",
"object": "3d_job",
"created_at": 1784885898,
"status": "queued"
}

Querying a Hunyuan 3d Pro Task

Input Example
curl -X POST 'https://tokenhub-intl.tencentcloudmaas.com/v1/api/3d/query' \\
-H 'Authorization: Bearer YOUR_API_KEY' \\
-H 'Content-Type: application/json' \\
-d '{
"model": "hy-3d-3.1",
"id": "14721*****320"
}'
Output Example
{
"request_id":"ab3beaeb-b4aa-4387-b5aa-e2ec1bba4ef0",
"object":"3d_job",
"created_at":1784884760,
"completed_at":1784884760,
"status":"completed",
"data":[
{

"type":"obj",
"url":"https://hunyuan-prod-1258344699.cos.ap-guangzhou.tencentcos.cn/3d/output/1254418*****d3272_0.zip",
"preview_image_url":"https://hunyuan-prod-1258344699.cos.ap-guangzhou.tencentcos.cn/3d/output/12544*****2-89ec2ff1967a_0.png"
},
{
"type":"glb",
"url":"https://hunyuan-prod-1258344699.cos.ap-guangzhou.tencentcos.cn/3d/output/125441************ec2ff1967a_0.glb",
"preview_image_url":"https://hunyuan-prod-1258344699.cos.ap-guangzhou.tencentcos.cn/3d/output/125441*******-bbe2-89ec2ff1967a_0.png"
}
]
}

Data Structure

data

Generate a result object.
Parameter Name
Type
Description
type
string
Type of the generated result file.
Example value: obj
url
string
Download URL of the generated result file.
preview_image_url
string
Download URL of the generated result preview image.

view_image

Input image objects from multiple views.
Parameter Name
Required
Type
Description
view_type
Yes
string
Image view.
view_image_url
Yes
string
Image url.


ヘルプとサポート

この記事はお役に立ちましたか?

フィードバック