tencent cloud

APIs

CreateAigcCustomElement

Download
Mode fokus
Ukuran font
Terakhir diperbarui: 2026-05-19 15:03:11

1. API Description

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.

We recommend you to use API Explorer
Try it
API Explorer provides a range of capabilities, including online call, signature authentication, SDK code generation, and API quick search. It enables you to view the request, response, and auto-generated examples.

2. Input Parameters

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.

3. Output Parameters

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.

4. Example

Example1 Request Example

Input Example

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"
        }
    ]
}

Output Example

{
    "Response": {
        "RequestId": "1047d0dc-6dc8-4898-a7f3-03726a822b0e",
        "ElementId": "53459345344333"
    }
}

5. Developer Resources

SDK

TencentCloud API 3.0 integrates SDKs that support various programming languages to make it easier for you to call APIs.

Command Line Interface

6. Error Code

There is no error code related to the API business logic. For other error codes, please see Common Error Codes.

Bantuan dan Dukungan

Apakah halaman ini membantu?

masukan