Domain name for API request: mps.intl.tencentcloudapi.com.
This API is used to create AI video generation tasks.
A maximum of 10 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: 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. |
| ModelVersion | No | String | Specific version number of the model. By default, the system uses the supported stable version of the model.
|
| SceneType | No | String | Scenario for the generated video.
|
| Prompt | No | String | Description of the generated video. (Note: A maximum of 2000 characters is supported.) This parameter is required when no reference image is specified. |
| NegativePrompt | No | String | Specifies the content you want to prevent the model from generating. |
| EnhancePrompt | No | Boolean | The default value is False, meaning the model follows instructions strictly. For better results with more nuanced prompts, set this parameter to True to automatically optimize the input prompt and improve generation quality. |
| ImageUrl | No | String | Image URL for video generation. The URL must be accessible from the public network.
|
| LastImageUrl | No | String | The model will generate a video using the image of this parameter as the ending frame.
Note:
|
| ImageInfos.N | No | Array of AigcVideoReferenceImageInfo | List of up to 3 asset images, used to describe the images the model should use for video generation. Model that supports multiple images:
Note:
|
| VideoInfos.N | No | Array of AigcVideoReferenceVideoInfo | Only Kling O1 supports reference video information. |
| Duration | No | Integer | Duration of the generated video.
|
| ExtraParameters | No | AigcVideoExtraParam | Additional parameters required. |
| StoreCosParam | No | AigcStoreCosParam | COS bucket information for the file result. Note: COS is required and the MPS_QcsRole role needs to be created and authorized. |
| AdditionalParameters | No | String | Special scenario parameters required by the model, formatted as a JSON serialized string. |
| Operator | No | String | API operator name. |
| 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: 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"
}
{
"Response": {
"TaskId": "2147**3792",
"RequestId": "643fb583-0032-44ac-bfa8-bef25e310998"
}
}
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.
Feedback