tencent cloud

媒体处理

动态与公告
产品动态
产品公告
产品简介
产品概述
产品功能
产品优势
应用场景
购买指南
计费说明
购买指引
续费说明
欠费说明
退费说明
快速入门
控制台指南
概览
创建任务
任务管理
编排管理
模板管理
资源包管理
视频评测
AIGC 内容生成
终端 SDK
字幕编辑工具
用量统计
访问管理示例
接入教程
音视频转码接入
音视频增强接入
音频分离接入
数字水印及明水印接入
媒体 AI 接入教程
媒体质检接入
终端 SDK 接入
直播流录制接入
DRM 接入
其他接入教程
场景实践教程
画质提升场景
音视频成本优化场景
短剧出海场景
生成式场景
在线教育场景
API 文档
History
Introduction
API Category
调用方式
发起处理任务相关接口
任务管理相关接口
转码增强模板相关接口
水印模板相关接口
截图模板相关接口
媒体AI模板相关接口
媒体AI-热词库相关接口
媒体AI-样本管理相关接口
媒体质检模板相关接口
直播录制模板相关接口
编排管理相关接口
数据统计相关接口
媒体传输-安全组管理相关接口
解析事件通知相关接口
图片处理模板相关接口
AI创作相关接口
其他接口
Data Types
Error Codes
其他说明文档
WebSocket 识别协议
常见问题
产品基础相关
账号授权相关
任务配置相关
发起任务相关
任务结果查看相关
相关协议
Service Level Agreement
隐私协议
数据处理和安全协议
联系我们
词汇表

CreateAigcVideoTask

PDF
聚焦模式
字号
最后更新时间: 2026-03-10 11:15:37

1. API Description

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.

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.
Supported models:
Hunyuan.
Hailuo.
Kling.
Vidu.
OS.
GV.

ModelVersion No String

Specific version number of the model. By default, the system uses the supported stable version of the model.

  1. Hailuo: [02 and 2.3].
  2. Kling: [2.0, 2.1, 2.5, O1, 2.6, 3.0, and 3.0-Omni].
  3. Vidu: [q2, q2-pro, q2-turbo, q3-pro, and q3-turbo].
  4. GV: [3.1].
  5. OS: [2.0].
SceneType No String

Scenario for the generated video.
Note: Not all models support scenarios.

  1. Kling supports motion control (motion_control).
  2. Mingmou supports landscape-to-portrait conversion (land2port).
  3. Vidu supports special effect templates (template_effect).
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.
Note: Not all models support this.
For example:
Top lighting and bright colors.
People and animals.
Multiple vehicles and wind.

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.
Note:

  1. The recommended image size is no more than 10 MB. Different models have different size limits.
  2. Supported image formats: JPEG and PNG.
  3. If the OS model is used, the input image dimension should be 1280x720 or 720x1280.
LastImageUrl No String

The model will generate a video using the image of this parameter as the ending frame.
Models that support this parameter:

  1. GV. If the ending frame image is specified, ImageUrl is required as the starting frame.
  2. Kling. Version 2.1 supports starting and ending frames with a resolution of 1080P.
  3. Vidu. q2-pro and q2-turbo support starting and ending frames.

Note:

  1. The recommended image size is no more than 10 MB. Different models have different limits.
  2. Supported image formats: JPEG and PNG.
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:

  1. GV. If multiple images are specified, ImageUrl and LastImageUrl are unavailable.
  2. Vidu supports video generation with multiple reference images. The q2 model accepts 1 to 7 images. The ReferenceType in ImageInfos can be used to specify the subject ID for the input.

Note:

  1. The image size cannot exceed 10 MB.
  2. Supported image formats: JPEG and PNG.
VideoInfos.N No Array of AigcVideoReferenceVideoInfo

Only Kling O1 supports reference video information.
This can be used as a feature reference video or a video for editing. The default type is video for editing. You can choose to keep the original sound of the video.

Duration No Integer

Duration of the generated video.
Note:

  1. Kling supports 5 and 10 seconds. Default value: 5 seconds.
  2. The std mode of Hailuo supports 6 and 10 seconds, and other modes support 6 seconds. Default value: 6 seconds.
  3. Vidu supports 1 to 10 seconds.
  4. GV supports 8 seconds. Default value: 8 seconds.
  5. OS supports 4, 8, and 12 seconds. Default value: 8 seconds.
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.
Example:
{"camera_control":{"type":"simple"}}.

Operator No String

API operator name.

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 Request 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.

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.

帮助和支持

本页内容是否解决了您的问题?

填写满意度调查问卷,共创更好文档体验。

文档反馈