
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. |
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). |
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. |
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. |
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"}'
{"created_at": 1795743200,"id": "<JOB_ID>","object": "3d_job","request_id": "<REQUEST_ID>","status": "queued"}
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>"}'
{"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"}
フィードバック