Domain name for API request: vod.intl.tencentcloudapi.com.
This API is used to process image processing 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: ProcessImageAsync. |
| Version | Yes | String | Common Params. The value used for this API: 2018-07-17. |
| Region | No | String | Common Params. This parameter is not required. |
| SubAppId | Yes | Integer | Video-on-demand (VOD) application ID. For customers who activate on-demand services after December 25, 2023, this field must be filled in as the app ID when accessing resources in on-demand applications (whether the default application or a newly created application). |
| FileId | No | String | FileId that needs to be processed for image processing. Cannot be used with Url. |
| Url | No | String | Url that needs image processing. Cannot be used with FileId simultaneously. |
| Base64 | No | String | Base64 for image processing. The image file must be less than 4 MB. When using Base64, do not add any prefix such as |
| ImageTaskInput | No | ProcessImageAsyncTaskInput | Image processing parameter. |
| OutputConfig | No | ProcessImageAsyncOutputConfig | Configuration of the output media file for an image processing task. |
| SessionId | No | String | Identifier for deduplication. If a request with the same identifier has been sent within the past three days, an error is returned for the current request. The maximum length is 50 characters. If this is not specified or left empty, deduplication is not performed. |
| SessionContext | No | String | Source context, used to pass through user request information. The audio and video quality revival completion callback will return the value of this field. Maximum length: 1000 characters. |
| TasksPriority | No | Integer | Priority of the task. The higher the value, the higher the priority. The value range is from -10 to 10. If left blank, the default value is 0. |
| ExtInfo | No | String | Reserved field, used for special purposes. |
| Parameter Name | Type | Description |
|---|---|---|
| TaskId | String | Task ID. |
| 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: ProcessImageAsync
<Common request parameters>
{
"SubAppId": 221073,
"FileId": "966263618924724112",
"ImageTaskInput": {
"Definition": 7
}
}
{
"Response": {
"TaskId": "221073-ProcessImageAsync-aada17cb6859b9051afe22383fa596d7t",
"RequestId": "4b91e385-e5b1-4e46-9172-f9188c560ef9"
}
}
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 |
|---|---|
| FailedOperation | Operation failed. |
| FailedOperation.InvalidVodUser | VOD service is not enabled. |
| InternalError | Internal error. |
| InvalidParameter | Parameter error. |
| InvalidParameterValue.FileId | FileId does not exist. |
| InvalidParameterValue.SessionContextTooLong | SessionContext is too long. |
| InvalidParameterValue.SessionId | Duplicate recognition code. Request deduplicated. |
| InvalidParameterValue.SessionIdTooLong | SessionId is too long. |
| InvalidParameterValue.SubAppId | Parameter value error: app ID. |
| UnauthorizedOperation | Unauthorized operation. |
文档反馈