
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 |
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 |
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 |
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. |
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"}'
{"id": "14721*****320","request_id": "11f64379-bb0b-46b2-b89f-17d75fc12365","object": "3d_job","created_at": 1784885898,"status": "queued"}
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"}'
{"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"}]}
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. |
フィードバック