
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. |
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. |
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-3.1. Example value: hy-3d-3.1. |
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-3.1","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-3.1","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://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"}]}
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. |
Parameter Name | Required | Type | Description |
view_type | Yes | string | Image view. |
view_image_url | Yes | string | Image url. |
Apakah halaman ini membantu?
Anda juga dapat Menghubungi Penjualan atau Mengirimkan Tiket untuk meminta bantuan.
masukan