tencent cloud

LLM Service TokenHub

HY-3D-Express API Guide

Unduh
Mode fokus
Ukuran font
Terakhir diperbarui: 2026-11-23 19:11:00
Diterjemahkan oleh AI

Introduction

The Hunyuan 3d Express 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 key of each account can only be queried by that account. The key information of the main account is not visible to sub-accounts. If a sub-account needs to call APIs, it must create its own 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

One concurrent task is provided by default, meaning that at most one submitted task can be processed at a time. 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 Express Task

Input parameters
Parameter Name
Required
Type
Description
model
Yes
string
Hunyuan 3d model name. Default value: hy-3d-express.
Example value: hy-3d-express
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
result_format
No
string
Format of the generated model. Only one format can be generated.
The generated model file group is returned in obj format by default.
Optional values: obj, glb, stl, usdz, fbx, mp4.
Example value: obj
enable_pbr
No
boolean
Whether to enable pbr material generation. Default value: false.
Example value: true.
enable_geometry
No
boolean
Whether to enable the single geometry generation option. After it is enabled, a 3d model without textures (white model) is generated. When it is enabled, the generated model file does not support the obj format, and the default generated model file is in glb format.
Example value: false
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 Express Task

Input parameters
Parameter Name
Required
Type
Description
model
Yes
string
Hunyuan 3d model name. Default value: hy-3d-express.
Example value: hy-3d-express
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 Express 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-express",
"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 Express 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-express",
"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://example.com/model.zip",
"preview_image_url":"https://example.com/model.png"
},
{
"type":"glb",
"url":"https://example.com/model.glb",
"preview_image_url":"https://example.com/model.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.

Bantuan dan Dukungan

Apakah halaman ini membantu?

masukan