tencent cloud

LLM Service TokenHub

Hy3D Texture 3.6 API Guide

Unduh
Mode fokus
Ukuran font
Terakhir diperbarui: 2026-12-01 13:04:10
Diterjemahkan oleh AI

Introduction

It supports intelligently generating high-quality texture maps with rich details and fine textures based on the input 3D geometric model combined with reference images, enhancing the visual expressiveness and realism of 3D models.

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, it may be because the sub-account does not have permission to create keys. In this case, the main account needs to grant authorization. After the main account logs in, click User List, select Authorization next to the corresponding sub-account, and a dialog box for associating policies will pop up. Enter the authorization policy name and search, then 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 start only after the previous task is completed.
Concurrent tasks: indicates the maximum number of tasks that can run during the period when the corresponding service is 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 Texture Generation Task

Input parameters
Parameter Name
Required
Type
Parameter Description
model
Yes
string
Model name. Default value: hy-3d-texture-3.6.
Example value: hy-3d-texture-3.6
image
No
object
Image url, which must be in jpeg/jpg/png/webp format, with a resolution greater than 128*128 and a size of less than 10 MB.
Either image or multi_view_images is required, and they cannot coexist.
file_3d
Yes
object
url of the 3D model file. Options: obj, glb.
multi_view_images
No
array of view_image
Multi-view model images, with reference values for the views:
front: Front view
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. front is required, and at least one image is required for the other views.
Image size limit: The total size of all encoded images cannot exceed 8 MB. (With base64 encoding, the total image size cannot exceed 6 MB because base64 encoding increases the image size by about 30%.)
Image resolution limit: The resolution of each side must be less than 5000 and greater than 128.
Supported image formats: jpg or png.
Either image or multi_view_images is required, and they cannot coexist.
keep_uv
No
boolean
Whether to keep uv. Default value: false.
enable_pbr
No
boolean
Whether to enable physically based rendering (pbr). Default value: false.
seam_less
No
boolean
Preference for generated texture maps. true: prioritize seam reduction. false: prioritize detail preservation. Default value: false.
texture_resolution
No
string
Resolution of generated texture maps. Supported values: '2k'/'4k'/'8k'. Default value: '4k'.
texture_format
No
string
Texture map format: png, jpeg, jpg, webp. Default value: jpeg.
add_rma
No
boolean
Whether to output an rma map. Default value: false.
Supported only in multi_view_images mode.
occlusion_strength
No
float
AO (ambient occlusion) strength. Value range: [0-1]. Default value: 0.
Supported only in multi_view_images mode.
bake_lighting
No
boolean
Whether to bake lighting from the input image into the texture map. Default value: false. When this option is enabled, the texture map retains the light and shadow from the input image, making the appearance closer to the original image. When this option is disabled, lighting effects are removed and an albedo texture map is generated.
Supported only in multi_view_images mode.
Output parameters
Parameter Name
Type
Description
id
string
Task ID, valid for 24 hours, used to query results.
request_id
string
Unique request ID generated by the server, used to locate issues.
object
string
Type of the returned object, for example, 3d_job.
created_at
integer
Task creation time.
status
string
Task status: queued (waiting), in_progress (in progress), completed (succeeded), failed (failed).

Querying Hunyuan 3D Texture Generation Tasks

Input parameters
Parameter Name
Required
Type
Parameter Description
model
Yes
string
Model name. Default value: hy-3d-texture-3.6.
Example value: hy-3d-texture-3.6
id
Yes
string
Task ID returned by the submission API. Example value: xxxxx.
Output parameters
Parameter Name
Type
Description
status
string
Task status: completed (succeeded), failed (failed), in_progress (in progress), queued (waiting).
request_id
string
Unique request ID generated by the server, used to locate 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 3D model files and related resource information.
data[].type
string
Type of the returned 3D model file or related resource, including obj (OBJ model), glb (GLB model), image (image), texture_image (texture map), mtl (material file), zip (archive), pbr_image (base color map), pbr_metallic (metallic map), pbr_roughness (roughness map), pbr_normal (normal map), and pbr_rma (combined RMA map).
data[].url
string
Download URL of the generated 3D model file.

Examples

Submitting a Hunyuan 3D Texture Generation Task

Input Example
curl --location --request POST 'https://tokenhub-intl.tencentcloudmaas.com/v1/api/3d/submit'
--header "Authorization: Bearer ${{APIKEY}}"
--header 'Content-Type: application/json'
--data-raw '{
"model": "hy-3d-texture-3.6",
"file_3d": {
"url": "https://example.com/model.glb"
},
"image": {
"url": "https://example.com/image.jpg"
},
"enable_pbr": false,
"keep_uv": false,
"seam_less": false,
"texture_format": "jpeg",
"texture_resolution": "4k"
}'
Output Example
{
"created_at": 1795743200,
"id": "<JOB_ID>",
"object": "3d_job",
"request_id": "<REQUEST_ID>",
"status": "queued"
}

Querying Hunyuan 3D Texture Generation Tasks

Input Example
curl --location --request POST 'https://tokenhub-intl.tencentcloudmaas.com/v1/api/3d/query'
--header "Authorization: Bearer ${{APIKEY}}"
--header 'Content-Type: application/json'
--data-raw '{
"model": "hy-3d-texture-3.6",
"id": "<JOB_ID>"
}'
Output Example
{
"created_at": 1795743300,
"data": [
{
"type": "obj",
"url": "https://example.com/model.obj"
},
{
"type": "glb",
"url": "https://example.com/model.glb"
},
{
"type": "image",
"url": "https://example.com/model_latent.png"
},
{
"type": "texture_image",
"url": "https://example.com/model_texture.jpeg"
},
{
"type": "mtl",
"url": "https://example.com/model.mtl"
},
{
"type": "zip",
"url": "https://example.com/model.zip"
},
{
"type": "pbr_image",
"url": "https://example.com/model_pbr_basecolor.jpeg"
}
],
"object": "3d_job",
"request_id": "<REQUEST_ID>",
"status": "completed"
}


Bantuan dan Dukungan

Apakah halaman ini membantu?

masukan