Domain name for API request: hunyuan.intl.tencentcloudapi.com.
After inputting the 3D model, redraw the texture of the 3D model based on semantics or images, and output a redrawn texture image.
A maximum of 20 requests can be initiated per second for this API.
The following request parameter list only provides API request parameters and some common parameters. For the complete common parameter list, see Common Request Parameters.
| Parameter Name | Required | Type | Description |
|---|---|---|---|
| Action | Yes | String | Common Params. The value used for this API: SubmitHunyuanTo3DTextureEditJob. |
| Version | Yes | String | Common Params. The value used for this API: 2023-09-01. |
| Region | Yes | String | Common Params. For more information, please see the list of regions supported by the product. |
| File3D | Yes | InputFile3D | File URL of the 3D model file that requires texture edit Supported formats: FBX 3D model limit: less than 100000 faces |
| Image | No | ImageInfo | Reference image for 3D model texture editing: Base64 data and image Url Either Base64 or Url must be provided. if both are provided, Url prevails Image restrictions: unilateral resolution less than 4096 and greater than 128, converted into Base64 string less than 10MB Format support: jpg, jpeg, png |
| Prompt | No | String | Describes texture editing, forward prompt content Supports up to 1024 utf-8 characters Either image or prompt is required, and prompt and image cannot coexist Example value: a kitten |
| EnablePBR | No | Boolean | Whether to enable the PBR texture parameter, only supports enabling when entering the Prompt Example value: true |
| Parameter Name | Type | Description |
|---|---|---|
| JobId | String | Task id (valid period 24 hours) |
| RequestId | String | The unique request ID, generated by the server, will be returned for every request (if the request fails to reach the server for other reasons, the request will not obtain a RequestId). RequestId is required for locating a problem. |
POST / HTTP/1.1
Host: hunyuan.intl.tencentcloudapi.com
Content-Type: application/json
X-TC-Action: SubmitHunyuanTo3DTextureEditJob
<Common request parameters>
{
"File3D": {
"Type": "FBX",
"Url": "https://vcg-test-1258344699.cos.ap-guangzhou.myqcloud.com/test/3d/test.fbx"
}
}{
"Response": {
"JobId": "1384898587778465792",
"RequestId": "5265eb4a-0f4f-4cb1-9b3d-d9f1fb9347d2"
}
}
TencentCloud API 3.0 integrates SDKs that support various programming languages to make it easier for you to call APIs.
There is no error code related to the API business logic. For other error codes, please see Common Error Codes.
Feedback