tencent cloud

DokumentasiVideo on Demand

CreateAigcAudioTask

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

1. API Description

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.

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: 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.
Example:
{"camera_control":{"type":"simple"}}.

3. Output Parameters

Parameter Name Type Description
TaskId String

Returned task ID after the task is created successfully.
The task progress and generation results can be obtained by calling the query API.

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 Generate Sound Effects

Input Example

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

Output Example

{
    "Response": {
        "TaskId": "251441341-AigcAudioTask-f3259ddeb615203726d73c03da05d9fft",
        "RequestId": "4794b445-abc7-46c6-9e74-b30429f3a2c6"
    }
}

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

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

Bantuan dan Dukungan

Apakah halaman ini membantu?

masukan