Domain name for API request: vod.intl.tencentcloudapi.com.
This API is used to create AI audio generation tasks.
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: CreateAigcAudioTask. |
| Version | Yes | String | Common Params. The value used for this API: 2018-07-17. |
| Region | No | String | Common Params. This parameter is not required. |
| ModelName | No | String | Model name. |
| ModelVersion | No | String | Specify the model version number. By default, the system uses the supported stable version of the model. |
| SceneType | No | String | Designated scenarios currently support sfx (sound effects). |
| Prompt | No | String | Description of the generated audio |
| VideoInfos.N | No | Array of AigcAudioReferenceVideoInfo | Reference video info |
| AudioInfos.N | No | Array of AigcAudioReferenceAudioInfo | Input the reference audio content. For example, input is required for music generation. |
| OutputConfig | No | AigcAudioOutputConfig | Output parameter |
| AdditionalParameters | No | String | Special scenario parameters required by the model, formatted as a JSON serialized string. |
| Parameter Name | Type | Description |
|---|---|---|
| TaskId | String | Returned task ID after the task is created successfully. |
| 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: CreateAigcAudioTask
<Common request parameters>
{
"ModelName": "Kling",
"SceneType": "sfx",
"Prompt": "Fireworks during Spring Festival celebrations"
"OutputConfig": {
"StorageMode": "Temporary",
"Duration": 6
}
}
{
"Response": {
"TaskId": "251441341-AigcAudioTask-f3259ddeb615203726d73c03da05d9fft",
"RequestId": "4794b445-abc7-46c6-9e74-b30429f3a2c6"
}
}
TencentCloud API 3.0 integrates SDKs that support various programming languages to make it easier for you to call APIs.
The following only lists the error codes related to the API business logic. For other error codes, see Common Error Codes.
| Error Code | Description |
|---|---|
| InvalidParameter.ViolationContent | InvalidParameter.ViolationContent |
文档反馈