Domain name for API request: vod.intl.tencentcloudapi.com.
Call this API to target a specified model and perform subject creation.
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: CreateAigcCustomElement. |
| Version | Yes | String | Common Params. The value used for this API: 2018-07-17. |
| Region | No | String | Common Params. This parameter is not required. |
| ElementName | Yes | String | Subject name cannot exceed 20 characters. |
| ElementDescription | Yes | String | Subject description. Up to 100 characters. |
| ElementFrontalImage | Yes | String | Front reference image of the subject. Support input image URL (underwrite accessible). Image format. Valid values: .jpg, .jpeg, and .png. The image file size must not exceed 10MB, with image width and height not less than 300px and image aspect ratio between 1:2.5 and 2.5:1. |
| ElementReferList.N | Yes | Array of ElementReferInfo | Reference list of other subjects. Upload multiple subject reference images from different angles to define the subject appearance. Upload at least 1 reference image, up to 3 reference images. |
| Parameter Name | Type | Description |
|---|---|---|
| ElementId | String | Subject ID. Need to record the returned subject ID yourself. |
| 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: vod.intl.tencentcloudapi.com
Content-Type:application/json
X-TC-Action: CreateAigcCustomElement
<Common request parameters>
{
"ElementName": "my_element",
"ElementDescription": "Subject"
"ElementFrontalImage": "https://****.vod-qcloud.com/6cd2c44bvodcq1500039**/179cafb25145403**1/ClcdjoxE6jcA.png",
"ElementReferList": [
{
"ImageUrl": "https://****.vod-qcloud.com/6cd2c44bvodcq1500039**/179cafb25145403**1/feefsfrefer.png"
}
]
}
{
"Response": {
"RequestId": "1047d0dc-6dc8-4898-a7f3-03726a822b0e",
"ElementId": "53459345344333"
}
}
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.
Apakah halaman ini membantu?
Anda juga dapat Menghubungi Penjualan atau Mengirimkan Tiket untuk meminta bantuan.
masukan