CreateAigcVideoTask
Last updated: 2026-01-08 15:03:09Download PDF
1. API Description
Domain name for API request: mps.intl.tencentcloudapi.com.
This API is used to create an AIGC video generation task.
A maximum of 10 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: CreateAigcVideoTask. |
| Version | Yes | String | Common Params. The value used for this API: 2019-06-12. |
| Region | No | String | Common Params. This parameter is not required for this API. |
| ModelName | No | String | Model Name. Currently supported models include: Hunyuan, Hailuo, Kling, Vidu, OS, GV |
| ModelVersion | No | String | Specify the version number of a particular model. By default, the system uses the currently supported stable version of the model. 1. Hailuo: Available options [02, 2.3]. 2. Kling: Available options [2.0, 2.1, 2.5, O1, 2.6]. 3. Vidu: Available options [q2, q2-pro, q2-turbo]. 4. GV: Available option [3.1]. 5. OS: Available option [2.0]. |
| Prompt | No | String | Generate video description. (Note: Maximum 2000 characters supported). This parameter is mandatory when no images are provided. |
| NegativePrompt | No | String | Used to specify the content you wish to prevent the model from generating.Note: Supported by select models.Examples: Overhead lighting, vibrant colors Human figures, animals Multiple vehicles, wind |
| EnhancePrompt | No | Boolean | The default value is False, where the model strictly adheres to instructions. For optimal results with more refined prompts, setting this parameter to True will automatically optimize the input prompt to enhance generation quality. |
| ImageUrl | No | String | The URL of the image used to guide video generation, which must be publicly accessible via the internet. Notes: 1. The recommended image size should not exceed 10MB, though size limitations may vary across different models. 2. Supported image formats: JPEG, PNG. 3. When using the OS model, the input image dimensions must be either 1280x720 or 720x1280. |
| LastImageUrl | No | String | The model will utilize the image provided via this parameter as the ending frame for video generation. Supported models for this parameter: 1. GV: When an ending frame image is provided, the ImageUrl parameter must also be specified as the starting frame. 2. Kling: Under Resolution: 1080P, version 2.1 supports both start&end frames. 3. Vidu, q2-pro, q2-turbo: Support start&end frames. Notes: 1. It is recommended that the image size does not exceed 10MB, though specific model limitations may vary. 2. Supported image formats: JPEG, PNG. |
| ImageInfos.N | No | Array of AigcVideoReferenceImageInfo | A list comprising up to three material resource images, utilized to depict the reference images the model will employ for video generation. Models supporting multi-image input: 1. GV: When utilizing multi-image input, neither ImageUrl nor LastImageUrl should be used. 2. Vidu: Supports video generation with multiple reference images. For model q2, 1-7 images can be provided, with the subject ID specified via ReferenceType within ImageInfos. Notes: 1. Each image must not exceed 10MB in size. 2. Supported image formats: JPEG, PNG. |
| Duration | No | Integer | Duration of generated videos. Notes: 1. Kling supports 5 and 10 seconds. Default: 5 seconds. 2. Hailuo's standard mode supports 6 and 10 seconds, while other modes only support 6 seconds. Default: 6 seconds. 3. Vidu supports 1 to 10 seconds. 4. GV supports 8 seconds. Default: 8 seconds. 5. OS supports 4, 8, and 12 seconds. Default: 8 seconds. |
| ExtraParameters | No | AigcVideoExtraParam | Used to pass additional parameters. |
| StoreCosParam | No | AigcStoreCosParam | The output files will be stored in the specified COS bucket. Note: COS service must be activated, and the MPS_QcsRole needs to be created and properly authorized. |
| AdditionalParameters | No | String | Used to pass specific scenario parameters required by the model, serialized into a JSON format string. Example: {"camera_control":{"type":"simple"}} |
| Operator | No | String | Interface operator name. |
3. Output Parameters
| Parameter Name | Type | Description |
|---|---|---|
| TaskId | String | Upon successful task creation, the returned task ID can be used to invoke the query interface for polling task progress and retrieving generated results. |
| 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 Example
Input Example
POST / HTTP/1.1
Host: mps.intl.tencentcloudapi.com
Content-Type: application/json
X-TC-Action: CreateAigcVideoTask
<Common Request Parameters>
{
"ModelName": "GV",
"Prompt": "move the picture",
"NegativePrompt": "Top lighting,bright colors",
"EnhancePrompt": false,
"ImageUrl": "https://1500039689.vod-**.com/6cd2c44bvodcq1500039689/179cafb25145403699605999621/**oxE6jcA.png",
"LastImageUrl": "https://aigc-**-image-1303333058.cos.ap-guangzhou.myqcloud.com/xxx_8655.png",
"Duration": 8,
"ExtraParameters": {
"Resolution": "720P",
"AspectRatio": "16:9"
},
"StoreCosParam": {
"CosBucketName": "aigc-***-video-1**58",
"CosBucketRegion": "ap-guangzhou",
"CosBucketPath": "my_cos_file"
},
"Operator": "admin"
}Output Example
{
"Response": {
"TaskId": "2147**3792",
"RequestId": "643fb583-0032-44ac-bfa8-bef25e310998"
}
}5. Developer Resources
SDK
TencentCloud API 3.0 integrates SDKs that support various programming languages to make it easier for you to call APIs.
- Tencent Cloud SDK 3.0 for Python
- Tencent Cloud SDK 3.0 for Java
- Tencent Cloud SDK 3.0 for PHP
- Tencent Cloud SDK 3.0 for Go
- Tencent Cloud SDK 3.0 for Node.js
- Tencent Cloud SDK 3.0 for .NET
- Tencent Cloud SDK 3.0 for C++
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.