tencent cloud

Video on Demand

DokumentasiVideo on Demand

Data Types

Unduh
Mode fokus
Ukuran font
Terakhir diperbarui: 2026-10-15 14:22:07

AIAnalysisTemplateItem

Details of the AI intelligent analysis template

Used by actions: DescribeAIAnalysisTemplates.

Name Type Description
Definition Integer Unique identifier of the intelligent analysis template.
Name String Name of the intelligent analysis template.
Comment String Description of the intelligent analysis template.
ClassificationConfigure ClassificationConfigureInfo Intelligent Classification Task Control Parameters.
TagConfigure TagConfigureInfo Intelligent tag task control parameter.
CoverConfigure CoverConfigureInfo Intelligent cover task control parameters.
FrameTagConfigure FrameTagConfigureInfo Intelligent frame tagging task control parameter.
HighlightConfigure HighlightsConfigureInfo Control parameters for the intelligent highlights compilation task.
CreateTime String Template creation time in ISO datetime format.
UpdateTime String Template last modified time in ISO datetime format.

AIRecognitionTemplateItem

Description of the video content recognition template

Used by actions: DescribeAIRecognitionTemplates.

Name Type Description
Definition Integer Unique ID of the video content recognition template.
Name String Video content recognition template name.
Comment String Description of the video content recognition template.
Type String Template type. Valid values:
  • Preset: system-preset template;
  • Custom: custom template.
  • HeadTailConfigure HeadTailConfigureInfo Head and tail recognition control parameters.
    SegmentConfigure SegmentConfigureInfo Segmentation recognition control parameter.
    FaceConfigure FaceConfigureInfo Face recognition control parameter.
    OcrFullTextConfigure OcrFullTextConfigureInfo Text full-text recognition control parameters.
    OcrWordsConfigure OcrWordsConfigureInfo Text keyword recognition control parameters.
    AsrFullTextConfigure AsrFullTextConfigureInfo Voice full-text recognition control parameters.
    Note: This parameter is no longer maintained. We recommend using the AsrTranslateConfigure parameter to initiate speech translation recognition (when DstLanguage is not specified or is an empty string, no translation is performed, and the billing item is the same as full speech recognition).
    AsrWordsConfigure AsrWordsConfigureInfo Voice keyword recognition control parameters.
    AsrTranslateConfigure AsrTranslateConfigureInfo Speech translation recognition control parameters.
    ObjectConfigure ObjectConfigureInfo Object recognition control parameters.
    ScreenshotInterval Float Screenshot time interval in seconds.
    CreateTime String Template creation time in ISO date format (https://www.tencentcloud.com/document/product/266/11732?from_cn_redirect=1#I).
    UpdateTime String Template last modified time, use ISO date format.

    AbnormalLightingConfigureInfo

    Control parameters for low-light and overexposure detection in video frames.

    Used by actions: CreateQualityInspectTemplate, DescribeQualityInspectTemplates.

    Name Type Required Description
    Switch String Yes Video low-light and overexposure detection switch. Available values:
  • ON: enabled;
  • OFF: disabled
  • AbnormalLightingConfigureInfoForUpdate

    Control parameters for low-light and overexposure detection in video frames.

    Used by actions: ModifyQualityInspectTemplate.

    Name Type Required Description
    Switch String No Low-light and overexposure detection switch for video images. Available values:
  • ON: enabled
  • OFF: disabled
  • AccelerateAreaInfo

    Region acceleration information of the domain

    Used by actions: DescribeVodDomains.

    Name Type Description
    Area String Acceleration region. Available values:
  • Chinese Mainland: within the Chinese mainland (excluding Hong Kong (China), Macao (China), and Taiwan (China)).
  • Outside Chinese Mainland: outside the Chinese mainland.
  • TencentDisableReason String Tencent disable reason. Available values:
  • ForLegalReasons: Acceleration disabled due to legal reasons;
  • ForOverdueBills: Acceleration is disabled due to service suspension for overdue payment.
  • TencentEdgeDomain String CNAME domain name corresponding to the acceleration domain.

    AdaptiveDynamicStreamingInfoItem

    Adaptive bitrate streaming information.

    Used by actions: DescribeMediaInfos, DescribeTaskDetail, PullEvents, SearchMedia.

    Name Type Description
    Definition Integer

    Adaptive bitrate streaming specification.

    Package String

    Packaging format. Value range:

  • HLS;
  • DASH.
  • DrmType String

    Encryption type.

    Url String

    Playback address.

    Size Integer

    Media file size, unit: byte.

  • For HLS media files, the size is the sum of the m3u8 and ts file sizes;
  • For DASH media files, the size is the sum of the mpd and fragment file sizes;
  • Note: This field is 0 for adaptive bitrate stream files generated before 2022-01-10T16:00:00Z.
  • DigitalWatermarkType String

    Digital watermark type. Available values:

  • Trace means processed with traceable watermark;
  • CopyRight means processed with copyright watermark;
  • None means no digital watermark processing.
  • SubStreamSet Array of MediaSubStreamInfoItem

    List of substream info.

    CopyRightWatermarkText String

    Copyright information.

    BlindWatermarkDefinition Integer

    Digital watermark template id.

    SubtitleSet Array of MediaSubtitleItem

    Subtitle information list.

    DefaultSubtitleId String

    Unique identifier for default subtitle.

    DrmEncryptType String

    DRM encryption method.

    AdaptiveDynamicStreamingTaskInput

    Input parameter type for video to adaptive bitrate stream

    Used by actions: CreateProcedureTemplate, DescribeTaskDetail, ProcessMedia, PullEvents, ResetProcedureTemplate.

    Name Type Required Description
    Definition Integer Yes

    Adaptive bitrate streaming template ID.

    WatermarkSet Array of WatermarkInput No

    Watermark list. Up to 10 image or text watermarks are supported.

    TraceWatermark TraceWatermarkInput No

    Traceable watermark.

    CopyRightWatermark CopyRightWatermarkInput No

    Copyright watermark.

    BlindWatermark BlindWatermarkInput No

    Digital watermark.

    SubtitleSet Array of String No

    External subtitle file. Elements are subtitle IDs. Supports multiple subtitles, up to 16.

    SubtitleInfoSet Array of SubtitleInfoInput No

    Subtitle suppression information list. Up to 2 supported.

    DrmInfo ThirdPartyDrmInfo No

    Third-party DRM encryption information. It is not currently supported to initiate tasks using third-party DRM info via task flow.

    AdaptiveDynamicStreamingTemplate

    Adaptive bitrate streaming template details

    Used by actions: DescribeAdaptiveDynamicStreamingTemplates.

    Name Type Description
    Definition Integer

    Adaptive bitrate streaming template unique ID.

    Type String

    Template type. Valid values:

  • Preset: preset template.
  • Custom: custom template.
  • Name String

    Adaptive bitrate streaming template name.

    Comment String

    Adaptive bitrate streaming template description.

    Format String

    Adaptive Transcoding Format. Value range:

  • HLS.
  • DrmType String

    DRM type. Value range:

  • SimpleAES
  • Widevine
  • FairPlay
  • Widevine+FairPlay
  • If the value is an empty string, it means no DRM protection is applied to the video.
    DrmKeyProvider String

    Key provider of DRM. Value range:

  • SDMC: SDMC;
  • VOD: VOD.
  • Default value: VOD.

    The SDMC service will gradually phase out subsequently. Please use the VOD DRM encryption service.

    DrmEncryptType String

    Encryption type of DRM. Value range: {"cbcs", "cenc"}

    StreamInfos Array of AdaptiveStreamTemplate

    Adaptive Transcoding Input Stream Parameter Information, up to 10 streams.

    DisableHigherVideoBitrate Integer

    Whether to prohibit video low bitrate to high bitrate conversion. Value range:

  • 0: No,
  • 1: Yes.
  • DisableHigherVideoResolution Integer

    Whether to prohibit video resolution to high resolution conversion. Value range:

  • 0: No,
  • 1: Yes.
  • CreateTime String

    Template creation time, in ISO date format.

    UpdateTime String

    Last template modification time, in ISO date format.

    SegmentType String

    Segment type.

    ts: HLS, internally mapped to ts-segment

    fmp4: HLS/DASH, internally mapped to mp4-mp4-segment for HLS and mp4-mp4-byterange for DASH

    ts-segment: HLS+TS segment

    ts-byterange: HLS+TS byte range

    mp4-segment: HLS+MP4 segment

    mp4-byterange: HLS+MP4 byte range

    ts-packed-audio: HLS+TS+Packed Audio segment

    mp4-packed-audio: HLS+MP4+Packed Audio segment

    ts-ts-segment: HLS+TS+TS segment

    ts-ts-byterange: HLS+TS+TS byte range

    mp4-mp4-segment: HLS+MP4+MP4 segment

    mp4-mp4-byterange: HLS/DASH+MP4+MP4 byte range

    ts-packed-audio-byterange: HLS+TS+Packed Audio byte range

    mp4-packed-audio-byterange: HLS+MP4+Packed Audio byte range
    Default value: ts-segment. Note: The shard format of adaptive bitrate is based on this field. For DASH, SegmentType can only be mp4-mp4-byterange.

    SegmentDuration Integer

    Average segmentation duration

    Unit: seconds

    Default value: 6

    Adaptive bitrate streaming uses SegmentDuration to set the segment duration, not the HlsTime field.

    AdaptiveStreamTemplate

    Adaptive transcoding stream parameter template

    Used by actions: CreateAdaptiveDynamicStreamingTemplate, DescribeAdaptiveDynamicStreamingTemplates, ModifyAdaptiveDynamicStreamingTemplate.

    Name Type Required Description
    Video VideoTemplateInfo Yes

    Video parameter information.

    Audio AudioTemplateInfo Yes

    Audio parameter information.

    RemoveAudio Integer No

    Indicates whether to remove the audio stream. Value range:

  • 0: No.
  • 1: Yes.
  • RemoveVideo Integer No

    Indicates whether to remove the video stream. Value range:

  • 0: No.
  • 1: Yes.
  • TEHDConfig TEHDConfig No

    Top Speed Codec transcoding parameters.

    EnhanceConfig EnhanceConfig No

    Audio/video enhancement configurations.

    StdExtInfo String No

    Extended parameter.

    AdvancedElementInfo

    Custom entity information

    Used by actions: DescribeTaskDetail, PullEvents.

    Name Type Description
    ElementId String

    Principal ID.

    ElementInfo String

    Entity information.

    AdvancedSuperResolutionConfig

    Super-resolution configuration.

    Used by actions: CreateProcessImageAsyncTemplate, ModifyProcessImageAsyncTemplate, PullEvents.

    Name Type Required Description
    Switch String No Capability configuration switch. Valid values:
  • ON: enabled
  • OFF: disabled

  • Default value: ON.
    Type String No Type. Valid values:
  • standard: common super resolution
  • super: advanced super-resolution.

  • Default value: standard.
    Mode String No Image output mode. The default value is percent.
  • aspect: obtain a larger rectangle with specified width and height through super-resolution.
  • fixed: obtain images of fixed width and height through super-resolution, with forced scaling supported.
  • percent: magnification factor of super-resolution, which can be a decimal.
  • Percent Float No Overscaling multiplication rate, which can be a decimal.
    Width Integer No Target image width. Cannot exceed 4096.
    Height Integer No Target image height. Cannot exceed 4096.
    LongSide Integer No Long side length of the target image. It cannot exceed 4096.
    Note: This configuration is used when Mode is equal to aspect or fixed, and Width and Height fields are not configured.
    ShortSide Integer No Short side length of the target image. It cannot exceed 4096.
    Note: This configuration is used when Mode is equal to aspect or fixed, and Width and Height fields are not configured.

    AiAnalysisResult

    Intelligent analysis result

    Used by actions: DescribeTaskDetail, PullEvents.

    Name Type Description
    Type String Task type. Valid values:
  • Classification: intelligent classification.
  • Cover: intelligent cover
  • Tag: intelligent tag
  • FrameTag: intelligent frame-by-frame tagging.
  • Highlight: intelligent highlights
  • ClassificationTask AiAnalysisTaskClassificationResult Query result of the video content analysis intelligent categorization task. Valid when the task type is Classification.
    CoverTask AiAnalysisTaskCoverResult Query result of the video content analysis Intelligent Cover Task. Valid when the task type is Cover.
    TagTask AiAnalysisTaskTagResult Query result of the video content analysis intelligent tag task. Valid when the task type is Tag.
    FrameTagTask AiAnalysisTaskFrameTagResult Query result of the intelligent frame-specific tagging task for video content analysis. Valid when TaskType is FrameTag.
    HighlightTask AiAnalysisTaskHighlightResult Query result of the video content analysis intelligent highlight task. Valid when the task type is Highlight.

    AiAnalysisTaskClassificationInput

    Intelligent classification task input type.

    Used by actions: DescribeTaskDetail, PullEvents.

    Name Type Description
    Definition Integer Video intelligent classification template ID.

    AiAnalysisTaskClassificationOutput

    Intelligent classification result info

    Used by actions: DescribeTaskDetail, PullEvents.

    Name Type Description
    ClassificationSet Array of MediaAiAnalysisClassificationItem Video intelligent classification list.
    Note: This list can only show up to the first 100 elements. To obtain the complete result, get it from the file corresponding to ClassificationSetFileUrl.
    ClassificationSetFileUrl String Video intelligent classification list file URL. The content of the file is in JSON format, and its data structure is consistent with the ClassificationSet fields. (The file is not retained permanently. It will be deleted after reaching the ClassificationSetFileUrlExpireTime time point.)
    ClassificationSetFileUrlExpireTime String Expiration time of the video intelligent classification list file URL in ISO date format.

    AiAnalysisTaskClassificationResult

    Intelligent classification task result type.

    Used by actions: DescribeTaskDetail, PullEvents.

    Name Type Description
    Status String Task status. Valid values are PROCESSING, SUCCESS, and FAIL.
    ErrCodeExt String Error code. An empty string indicates success, and other values indicate failure. For values, see video processing error code list.
    ErrCode Integer Error code. 0 indicates that the task is successful, and other values indicate that the task has failed. (This field is not recommended. Use the new error code field ErrCodeExt instead.)
    Message String Error message.
    Input AiAnalysisTaskClassificationInput Intelligent classification task input.
    Output AiAnalysisTaskClassificationOutput Output of the intelligent classification task.
    Progress Integer Intelligent categorization task progress, in the range of [0,100].
    BeginProcessTime String Intelligent categorization task start execution time in ISO datetime format.
    FinishTime String Task completion time of intelligent categorization in ISO date format.

    AiAnalysisTaskCoverInput

    Intelligent classification task input type.

    Used by actions: DescribeTaskDetail, PullEvents.

    Name Type Description
    Definition Integer Video intelligent cover template ID.

    AiAnalysisTaskCoverOutput

    Intelligent cover result information.

    Used by actions: DescribeTaskDetail, PullEvents.

    Name Type Description
    CoverSet Array of MediaAiAnalysisCoverItem List of smart covers.
    Note: This list only shows the first 100 elements. To obtain the complete result, get it from the file corresponding to CoverSetFileUrl.
    CoverSetFileUrl String URL of the intelligent cover list file. The content of the file is in JSON format, and the data structure is consistent with the CoverSet fields. (The file is not retained permanently. It will be deleted after the CoverSetFileUrlExpireTime time point is reached.)
    CoverSetFileUrlExpireTime String Expiration time of the intelligent cover list file URL, using the ISO date format.

    AiAnalysisTaskCoverResult

    Intelligent cover result type

    Used by actions: DescribeTaskDetail, PullEvents.

    Name Type Description
    Status String Task status. Valid values are PROCESSING, SUCCESS, and FAIL.
    ErrCodeExt String Error code. An empty string indicates success, and other values indicate failure. For values, see Video Processing Error Codes.
    ErrCode Integer Error code. 0 indicates that the task is successful, and other values indicate that the task has failed. (This field is not recommended. Use the new error code field ErrCodeExt instead.)
    Message String Error message.
    Input AiAnalysisTaskCoverInput Input of the intelligent cover task.
    Output AiAnalysisTaskCoverOutput Output of intelligent cover tasks.
    Progress Integer Intelligent Cover Task progress, value ranges from 0 to 100.
    BeginProcessTime String Start execution time of the Intelligent Cover Task in ISO datetime format.
    FinishTime String Intelligent cover task completion time in ISO datetime format.

    AiAnalysisTaskFrameTagInput

    Intelligent frame-specific tagging task input type.

    Used by actions: DescribeTaskDetail, PullEvents.

    Name Type Description
    Definition Integer ID of the intelligent video frame-by-frame tagging template.

    AiAnalysisTaskFrameTagOutput

    Intelligent frame tagging result information.

    Used by actions: DescribeTaskDetail, PullEvents.

    Name Type Description
    SegmentSet Array of MediaAiAnalysisFrameTagSegmentItem List of frame-specific tags of a video.
    Note: This list can only show up to the first 100 elements. To obtain the complete result, get it from the file corresponding to SegmentSetFileUrl.
    SegmentSetFileUrl String Video frame tagging list file URL. The content of the file is in JSON format, and its data structure is consistent with the SegmentSet fields. (The file is not retained permanently. It will be deleted after reaching the SegmentSetFileUrlExpireTime time point.)
    SegmentSetFileUrlExpireTime String Expiration time of the video frame tag list file URL in ISO date format.

    AiAnalysisTaskFrameTagResult

    Result type of intelligent frame tagging

    Used by actions: DescribeTaskDetail, PullEvents.

    Name Type Description
    Status String Task status. Valid values are PROCESSING, SUCCESS, and FAIL.
    ErrCodeExt String Error code. An empty string indicates success, and other values indicate failure. For values, see video processing error code list.
    ErrCode Integer Error code. 0 indicates that the task is successful, and other values indicate that the task has failed. (This field is not recommended. Use the new error code field ErrCodeExt instead.)
    Message String Error message.
    Input AiAnalysisTaskFrameTagInput Intelligent frame-specific tagging task input.
    Output AiAnalysisTaskFrameTagOutput Intelligent frame-specific tagging task output.
    Progress Integer Intelligent frame-specific tagging task progress, in the range of [0,100].
    BeginProcessTime String Intelligent frame-specific tagging task start execution time in ISO datetime format.
    FinishTime String Task completion time of intelligent frame tagging in ISO datetime format.

    AiAnalysisTaskHighlightInput

    Intelligent highlight task input type.

    Used by actions: DescribeTaskDetail, PullEvents.

    Name Type Description
    Definition Integer Intelligent highlight template ID.

    AiAnalysisTaskHighlightOutput

    Intelligent highlight result information.

    Used by actions: DescribeTaskDetail, PullEvents.

    Name Type Description
    HighlightSet Array of MediaAiAnalysisHighlightItem Intelligent video highlight list.
    Note: This list can only display up to the first 100 elements. To obtain the complete result, get it from the file corresponding to HighlightSetFileUrl.
    HighlightSetFileUrl String URL of the video intelligent highlight segment list file. The file content is in JSON format, and its data structure is consistent with the HighlightSet field. (The file will not be retained permanently and will be deleted after reaching the HighlightSetFileUrlExpireTime time point.)
    HighlightSetFileUrlExpireTime String Expiration time of the video intelligent striking segment list file URL, in ISO date format.

    AiAnalysisTaskHighlightResult

    Type of the intelligent highlight result.

    Used by actions: DescribeTaskDetail, PullEvents.

    Name Type Description
    Status String Task status. Valid values are PROCESSING, SUCCESS, and FAIL.
    ErrCodeExt String Error code. An empty string indicates success, and other values indicate failure. For values, see Video Processing Error Codes.
    ErrCode Integer Error code. 0 indicates that the task is successful, and other values indicate that the task has failed. (This field is not recommended. Use the new error code field ErrCodeExt instead.)
    Message String Error message.
    Input AiAnalysisTaskHighlightInput Input of the intelligent highlight task.
    Output AiAnalysisTaskHighlightOutput Task output of the intelligent highlight.
    Progress Integer Intelligent highlight task progress. Value range: [0-100].
    BeginProcessTime String Intelligent highlight task start execution time in ISO datetime format.
    FinishTime String Intelligent highlight task completion time in ISO datetime format.

    AiAnalysisTaskInput

    Input parameter type for AI smart video analysis

    Used by actions: CreateProcedureTemplate, DescribeProcedureTemplates, ProcessMedia, ProcessMediaByUrl, ResetProcedureTemplate.

    Name Type Required Description
    Definition Integer Yes Video content analysis template ID.

    AiAnalysisTaskTagInput

    Intelligent tag task input type.

    Used by actions: DescribeTaskDetail, PullEvents.

    Name Type Description
    Definition Integer Video intelligent tag template ID.

    AiAnalysisTaskTagOutput

    Intelligent tag result information.

    Used by actions: DescribeTaskDetail, PullEvents.

    Name Type Description
    TagSet Array of MediaAiAnalysisTagItem Video intelligent tag list.
    Note: This list can only display up to the first 100 elements. To obtain the complete result, get it from the file corresponding to TagSetFileUrl.
    TagSetFileUrl String URL of the video intelligent tag list file. The file content is in JSON format, and its data structure is consistent with the TagSet field. (The file will not be retained permanently and will be deleted after reaching the TagSetFileUrlExpireTime time point.)
    TagSetFileUrlExpireTime String Expiration time of the video intelligent tag list file URL, in ISO date format.

    AiAnalysisTaskTagResult

    Intelligent tag result type.

    Used by actions: DescribeTaskDetail, PullEvents.

    Name Type Description
    Status String Task status. Valid values are PROCESSING, SUCCESS, and FAIL.
    ErrCodeExt String Error code. An empty string indicates success, and other values indicate failure. For values, see Video Processing Error Codes.
    ErrCode Integer Error code. 0 indicates that the task is successful, and other values indicate that the task has failed. (This field is not recommended. Use the new error code field ErrCodeExt instead.)
    Message String Error message.
    Input AiAnalysisTaskTagInput Input for the intelligent tag task.
    Output AiAnalysisTaskTagOutput Intelligent tag task output.
    Progress Integer Progress of the intelligent tag task, with a value range of [0-100].
    BeginProcessTime String Intelligent tag task start execution time in ISO datetime format.
    FinishTime String Task completion time of the intelligent tag in ISO datetime format.

    AiContentReviewResult

    Audio/video moderation result

    Used by actions: DescribeTaskDetail, PullEvents.

    Name Type Description
    Type String Task type. Valid values:
  • Porn: whether image recognition involves offensive content
  • Terrorism: image recognition for unsafe information
  • Political: Whether image recognition involves inappropriate information
  • Porn.Asr: ASR text (text in audio) authentication for whether it involves offensive content
  • Porn.Ocr: whether Ocr text identification involves offensive content
  • Political.Asr: ASR text (text in audio) authentication whether it involves inappropriate information
  • Political.Ocr: whether Ocr text identification involves inappropriate information
  • Terrorism.Ocr: whether Ocr text identification involves unsafe information
  • Prohibited.Asr: Prohibited information recognition for ASR text (text in audio)
  • Prohibited.Ocr: OCR text prohibited information recognition
  • PornTask AiReviewTaskPornResult Query result of a video audio/video moderation task (visual contains offensive content). Valid when the task type is Porn.
    TerrorismTask AiReviewTaskTerrorismResult Query result of a video audio/video moderation task (frames involving unsafe information). Valid when the task type is Terrorism.
    PoliticalTask AiReviewTaskPoliticalResult Query result of the video audio/video moderation task (visuals involving inappropriate information). Valid when the task type is Political.
    PornAsrTask AiReviewTaskPornAsrResult Query result of a video audio/video moderation task (ASR text involves offensive content). Valid when the task type is Porn.Asr.
    PornOcrTask AiReviewTaskPornOcrResult Query result of a video audio/video moderation task (OCR text contains offensive content). Valid when the task type is Porn.Ocr.
    PoliticalAsrTask AiReviewTaskPoliticalAsrResult Query result of the video audio/video moderation task (ASR text involving inappropriate information). Valid when the task type is Political.Asr.
    PoliticalOcrTask AiReviewTaskPoliticalOcrResult Query result of a video/audio moderation task (OCR text involving inappropriate information). Valid when the task type is Political.Ocr.
    TerrorismOcrTask AiReviewTaskTerrorismOcrResult Query result of a video/audio moderation task (OCR text involving unsafe information). Valid when the task type is Terrorism.Ocr.
    ProhibitedOcrTask AiReviewTaskProhibitedOcrResult Query result of a video audio/video moderation OCR text prohibited task. Valid when the task type is Prohibited.Ocr.
    ProhibitedAsrTask AiReviewTaskProhibitedAsrResult Query result of the ASR text prohibited task in video moderation. Valid when the task type is Prohibited.Asr.

    AiContentReviewTaskInput

    Type of the audio/video moderation task

    Used by actions: CreateProcedureTemplate, DescribeProcedureTemplates, ProcessMedia, ProcessMediaByUrl, ResetProcedureTemplate.

    Name Type Required Description
    Definition Integer Yes Audio/video moderation template ID.

    AiCutOutConfig

    Intelligent image masking configuration.

    Used by actions: CreateProcessImageAsyncTemplate, ModifyProcessImageAsyncTemplate, PullEvents.

    Name Type Required Description
    Switch String No

    Capability configuration switch. Available values: ON: Enable; OFF: Disable. Default value: ON.

    Type String No

    Matting target type: "foreground" / "pattern"

    PatternConfig PatternConfig No

    Pattern cutout configuration. This parameter is valid only when Type is pattern.

    Model String No

    Matting model selection. This parameter is optional.

    Enumeration values:

    • auto: automatically choose an appropriate model
    • WAND-cutout-1.0-lite: standard version, fastest speed
    • WAND-cutout-2.0-lite: enhanced version, faster speed
    • WAND-cutout-2.0-flash: enhanced version, quality-speed balance
    • WAND-cutout-3.0-lite: enhanced version, faster speed
    • WAND-cutout-3.0-flash: enhanced version, quality-speed balance

    AiRecognitionResult

    Intelligent identification result.

    Used by actions: DescribeTaskDetail, PullEvents.

    Name Type Description
    Type String Task type. Valid values:
  • FaceRecognition: face recognition.
  • AsrWordsRecognition: speech keyword recognition.
  • OcrWordsRecognition: text keyword recognition.
  • AsrFullTextRecognition: full speech recognition.
  • AsrTranslateRecognition: voice translation recognition,
  • OcrFullTextRecognition: full text recognition,
  • HeadTailRecognition: video start and end recognition,
  • ObjectRecognition: object recognition.
  • HeadTailTask AiRecognitionTaskHeadTailResult Video start and end recognition result when Type is
    Valid when HeadTailRecognition is used.
    SegmentTask AiRecognitionTaskSegmentResult Video splitting recognition result, which is valid when Type is
    Valid when set to SegmentRecognition.
    FaceTask AiRecognitionTaskFaceResult Face recognition result, which is valid when Type is
    Valid for FaceRecognition.
    AsrWordsTask AiRecognitionTaskAsrWordsResult Speech keyword recognition result. When Type is
    Valid when set to AsrWordsRecognition.
    AsrFullTextTask AiRecognitionTaskAsrFullTextResult Full speech recognition result. When Type is
    Valid when set to AsrFullTextRecognition.
    AsrTranslateTask AiRecognitionTaskAsrTranslateResult Voice translation result. Valid when Type is AsrTranslateRecognition.
    OcrWordsTask AiRecognitionTaskOcrWordsResult Text keyword recognition result. When Type is
    Valid when set to OcrWordsRecognition.
    OcrFullTextTask AiRecognitionTaskOcrFullTextResult Full text recognition result. When Type is
    Valid when set to OcrFullTextRecognition.
    ObjectTask AiRecognitionTaskObjectResult Object recognition result, which is valid when Type is
    Valid when set to ObjectRecognition.

    AiRecognitionTaskAsrFullTextResult

    Full speech recognition result.

    Used by actions: DescribeTaskDetail, PullEvents.

    Name Type Description
    Status String Task status. Valid values are PROCESSING, SUCCESS, and FAIL.
    ErrCodeExt String Error code. An empty string indicates success, and other values indicate failure. For values, see video processing error code list.
    ErrCode Integer Error code. 0 indicates that the task is successful, and other values indicate that the task has failed. (This field is not recommended. Use the new error code field ErrCodeExt instead.)
    Message String Error message.
    Input AiRecognitionTaskAsrFullTextResultInput Input information on the full speech recognition task.
    Output AiRecognitionTaskAsrFullTextResultOutput Output information on the full speech recognition task.
    Progress Integer Speech full-text recognition task progress, in the range of [0,100].
    BeginProcessTime String Speech full-text recognition task start execution time in ISO datetime format.
    FinishTime String Task completion time of full text speech recognition in ISO datetime format.

    AiRecognitionTaskAsrFullTextResultInput

    Input for full speech recognition.

    Used by actions: DescribeTaskDetail, PullEvents.

    Name Type Description
    Definition Integer ID of the full speech identification template.

    AiRecognitionTaskAsrFullTextResultOutput

    Full speech recognition result.

    Used by actions: DescribeTaskDetail, PullEvents.

    Name Type Description
    SegmentSet Array of AiRecognitionTaskAsrFullTextSegmentItem List of segments for full speech recognition.
    Note: This list only shows the first 100 elements. To obtain the complete result, get it from the file corresponding to SegmentSetFileUrl.
    SegmentSetFileUrl String URL of the speech full text recognition Segment List File. The content of the file is in JSON format, and its data structure is consistent with the fields of SegmentSet. (The file is not retained permanently. It will be deleted after reaching the SegmentSetFileUrlExpireTime time point.)
    SegmentSetFileUrlExpireTime String Expiration time of the full speech recognition segment list file URL, using the ISO date format.
    SubtitleSet Array of AiRecognitionTaskAsrFullTextResultOutputSubtitleItem Generated subtitle list, corresponding to SubtitleFormats in speech full-text recognition task control parameter (https://www.tencentcloud.com/document/api/266/31773?from_cn_redirect=1#AsrFullTextConfigureInfo).
    SubtitleUrl String Generated subtitle file Url, corresponding to SubtitleFormat in speech full-text recognition task control parameter (https://www.tencentcloud.com/document/api/266/31773?from_cn_redirect=1#AsrFullTextConfigureInfo).

    AiRecognitionTaskAsrFullTextResultOutputSubtitleItem

    Subtitle information.

    Used by actions: DescribeTaskDetail, PullEvents.

    Name Type Description
    Id String Media asset subtitle ID, used for media asset subtitle management. Valid only when Format is vtt.
    Note: For tasks earlier than 2024-11-01T10:00:00Z, this field is invalid.
    Name String Media asset subtitle name for player display. Valid only when Format is vtt.
    Note: For tasks earlier than 2024-11-01T10:00:00Z, this field is invalid.
    Language String Subtitle language.
    Format String Subtitle file format. Valid values:
  • vtt: WebVTT subtitle file;
  • srt: SRT Subtitle File.
  • Url String Subtitle file Url.

    AiRecognitionTaskAsrFullTextSegmentItem

    Segment undergone full speech recognition.

    Used by actions: DescribeTaskDetail, PullEvents.

    Name Type Description
    Confidence Float Confidence of a recognized segment. Value range: 0-100.
    StartTimeOffset Float Start time offset of a recognized segment, in seconds.
    EndTimeOffset Float End time offset of a recognized segment, in seconds.
    Text String Recognized text.

    AiRecognitionTaskAsrTranslateResult

    Voice translation result.

    Used by actions: DescribeTaskDetail, PullEvents.

    Name Type Description
    Status String Task status. Valid values are PROCESSING, SUCCESS, and FAIL.
    ErrCodeExt String Error code. An empty string indicates success, and other values indicate failure. For values, see Video Processing Error Codes.
    ErrCode Integer Error code. 0 indicates that the task is successful, and other values indicate that the task has failed. (This field is not recommended. Use the new error code field ErrCodeExt instead.)
    Message String Error message.
    Input AiRecognitionTaskAsrTranslateResultInput Voice translation task input information.
    Output AiRecognitionTaskAsrTranslateResultOutput Voice translation task output information.
    Progress Integer Voice translation task progress, value ranges from 0 to 100.
    BeginProcessTime String Voice translation task start time in ISO datetime format.
    FinishTime String Time for voice translation task completion in ISO datetime format.

    AiRecognitionTaskAsrTranslateResultInput

    Input for speech translation.

    Used by actions: DescribeTaskDetail, PullEvents.

    Name Type Description
    Definition Integer Speech translation template ID.

    AiRecognitionTaskAsrTranslateResultOutput

    Voice translation result.

    Used by actions: DescribeTaskDetail, PullEvents.

    Name Type Description
    SegmentSet Array of AiRecognitionTaskAsrTranslateSegmentItem Voice translation clip list.
    Note: This list can only display up to the first 100 elements. To obtain the complete result, get it from the file corresponding to SegmentSetFileUrl.
    SegmentSetFileUrl String URL of Speech Translation Clip List File. The file content is in JSON format, and its data structure is consistent with the SegmentSet fields. (The file is not retained permanently. It will be deleted after the time point specified by SegmentSetFileUrlExpireTime is reached.)
    SegmentSetFileUrlExpireTime String Expiration time of the file URL for the speech translation clip list, in ISO date format.
    SubtitleSet Array of AiRecognitionTaskAsrFullTextResultOutputSubtitleItem Generated subtitle list.

    AiRecognitionTaskAsrTranslateSegmentItem

    Segment undergone voice translation recognition.

    Used by actions: DescribeTaskDetail, PullEvents.

    Name Type Description
    Confidence Float Confidence of a recognized segment in speech translation. Value range: 0-100.
    StartTimeOffset Float Start time offset of a speech translation recognized segment, in seconds.
    EndTimeOffset Float End time offset of a voice translation recognized segment, in seconds.
    Text String Recognized text.
    Translation String Translated text.

    AiRecognitionTaskAsrWordsResult

    Speech keyword recognition result.

    Used by actions: DescribeTaskDetail, PullEvents.

    Name Type Description
    Status String Task status. Valid values are PROCESSING, SUCCESS, and FAIL.
    ErrCodeExt String Error code. An empty string indicates success, and other values indicate failure. For values, see Video Processing Error Codes.
    ErrCode Integer Error code. 0 indicates that the task is successful, and other values indicate that the task has failed. (This field is not recommended. Use the new error code field ErrCodeExt instead.)
    Message String Error message.
    Input AiRecognitionTaskAsrWordsResultInput Input information on the speech keyword recognition task.
    Output AiRecognitionTaskAsrWordsResultOutput Output information on the speech keyword recognition task.
    Progress Integer Speech keyword recognition task progress, in the range of [0,100].
    BeginProcessTime String Speech keyword recognition task start execution time in ISO datetime format.
    FinishTime String Completion time of the speech keyword recognition task in ISO datetime format.

    AiRecognitionTaskAsrWordsResultInput

    Input for speech keyword recognition.

    Used by actions: DescribeTaskDetail, PullEvents.

    Name Type Description
    Definition Integer Template ID for speech keyword recognition.

    AiRecognitionTaskAsrWordsResultItem

    Speech keyword recognition result.

    Used by actions: DescribeTaskDetail, PullEvents.

    Name Type Description
    Word String Speech keyword.
    SegmentSet Array of AiRecognitionTaskAsrWordsSegmentItem List of time segments where speech keywords appear.

    AiRecognitionTaskAsrWordsResultOutput

    Speech keyword recognition output.

    Used by actions: DescribeTaskDetail, PullEvents.

    Name Type Description
    ResultSet Array of AiRecognitionTaskAsrWordsResultItem Result set of speech keyword recognition.
    Note: This list can only display up to the first 100 elements. To obtain the complete result, get it from the file corresponding to ResultSetFileUrl.
    ResultSetFileUrl String URL of the speech keyword recognition result set file. The content of the file is in JSON format, and its data structure is consistent with the fields of ResultSet. (The file is not retained permanently. It will be deleted after reaching ResultSetFileUrlExpireTime.)
    ResultSetFileUrlExpireTime String Expiration time of the speech keyword recognition result set file URL, in ISO date format.

    AiRecognitionTaskAsrWordsSegmentItem

    Speech recognition segment.

    Used by actions: DescribeTaskDetail, PullEvents.

    Name Type Description
    StartTimeOffset Float Start time offset of a recognized segment, in seconds.
    EndTimeOffset Float End time offset of a recognized segment, in seconds.
    Confidence Float Confidence of a recognized segment. Value range: 0-100.

    AiRecognitionTaskFaceResult

    Face recognition result.

    Used by actions: DescribeTaskDetail, PullEvents.

    Name Type Description
    Status String Task status. Valid values are PROCESSING, SUCCESS, and FAIL.
    ErrCodeExt String Error code. An empty string indicates success, and other values indicate failure. For values, see Video Processing Error Codes.
    ErrCode Integer Error code. 0 indicates that the task is successful, and other values indicate that the task has failed. (This field is not recommended. Use the new error code field ErrCodeExt instead.)
    Message String Error message.
    Input AiRecognitionTaskFaceResultInput Face recognition task input.
    Output AiRecognitionTaskFaceResultOutput Output information of the face recognition task.
    Progress Integer Face recognition task progress. Value range: [0-100].
    BeginProcessTime String Face recognition task start execution time in ISO datetime format.
    FinishTime String Face recognition task completion time in ISO datetime format.

    AiRecognitionTaskFaceResultInput

    User-submitted input for face recognition.

    Used by actions: DescribeTaskDetail, PullEvents.

    Name Type Description
    Definition Integer Face recognition template ID.

    AiRecognitionTaskFaceResultItem

    Face recognition result

    Used by actions: DescribeTaskDetail, PullEvents.

    Name Type Description
    Id String Unique identification ID of a person.
    Type String Library type, which indicates the figure library that the recognized figure comes from:
  • Default: default figure library;
  • UserDefine: user-defined character library.
  • Name String Figure name.
    SegmentSet Array of AiRecognitionTaskFaceSegmentItem Result set of segments where the person appears.

    AiRecognitionTaskFaceResultOutput

    Intelligent face recognition output.

    Used by actions: DescribeTaskDetail, PullEvents.

    Name Type Description
    ResultSet Array of AiRecognitionTaskFaceResultItem Intelligent face recognition result set.
    Note: This list can only display up to the first 100 elements. To obtain the complete result, get it from the file corresponding to ResultSetFileUrl.
    ResultSetFileUrl String URL of the intelligent face recognition result set file. The content of the file is in JSON format, and its data structure is consistent with the fields of ResultSet. (The file is not retained permanently. It will be deleted after reaching the ResultSetFileUrlExpireTime time point.)
    ResultSetFileUrlExpireTime String Expiration time of the intelligent face recognition result set file URL in ISO date format.

    AiRecognitionTaskFaceSegmentItem

    Face recognition result fragment

    Used by actions: DescribeTaskDetail, PullEvents.

    Name Type Description
    StartTimeOffset Float Start time offset of a recognized segment, in seconds.
    EndTimeOffset Float End time offset of a recognized segment, in seconds.
    Confidence Float Confidence of a recognized segment. Value range: 0-100.
    AreaCoordSet Array of Integer Zone coordinates of the recognition result. An array contains four elements: [x1, y1, x2, y2], representing the horizontal and vertical coordinates of the top-left and bottom-right corners, respectively.

    AiRecognitionTaskHeadTailResult

    Video start and end recognition result.

    Used by actions: DescribeTaskDetail, PullEvents.

    Name Type Description
    Status String Task status. Valid values are PROCESSING, SUCCESS, and FAIL.
    ErrCodeExt String Error code. An empty string indicates success, and other values indicate failure. For values, see Video Processing Error Codes.
    ErrCode Integer Error code. 0 indicates that the task is successful, and other values indicate that the task has failed. (This field is not recommended. Use the new error code field ErrCodeExt instead.)
    Message String Error message.
    Input AiRecognitionTaskHeadTailResultInput Input information of the video opening and closing credits recognition task.
    Output AiRecognitionTaskHeadTailResultOutput Output information of the video opening and closing credits recognition task.
    Progress Integer Video opening and closing credits recognition task progress, value ranges from 0 to 100.
    BeginProcessTime String Start execution time of the video opening and closing credits recognition task in ISO datetime format.
    FinishTime String The time when the video opening and closing credits recognition task is completed, in ISO datetime format.

    AiRecognitionTaskHeadTailResultInput

    Input for video start and end recognition.

    Used by actions: DescribeTaskDetail, PullEvents.

    Name Type Description
    Definition Integer Opening and closing segments recognition template ID.

    AiRecognitionTaskHeadTailResultOutput

    Video start and end recognition output.

    Used by actions: DescribeTaskDetail, PullEvents.

    Name Type Description
    HeadConfidence Float Confidence of opening scene recognition. Value range: 0-100.
    HeadTimeOffset Float End time point of the video intro, in seconds.
    TailConfidence Float Recognition confidence of the ending scene. Value range: 0-100.
    TailTimeOffset Float Start time point of the video ending scene. Unit: seconds.

    AiRecognitionTaskInput

    Input parameter type for video content recognition

    Used by actions: CreateProcedureTemplate, DescribeProcedureTemplates, ProcessMedia, ProcessMediaByUrl, ResetProcedureTemplate.

    Name Type Required Description
    Definition Integer Yes Video intelligent identification template ID.

    AiRecognitionTaskObjectResult

    Object recognition result.

    Used by actions: DescribeTaskDetail, PullEvents.

    Name Type Description
    Status String Task status. Valid values are PROCESSING, SUCCESS, and FAIL.
    ErrCodeExt String Error code. An empty string indicates success, and other values indicate failure. For values, see Video Processing Error Codes.
    ErrCode Integer Error code. 0 indicates that the task is successful, and other values indicate that the task has failed. (This field is not recommended. Use the new error code field ErrCodeExt instead.)
    Message String Error message.
    Input AiRecognitionTaskObjectResultInput Object recognition task input.
    Output AiRecognitionTaskObjectResultOutput Object recognition task output information.
    Progress Integer Object recognition task progress, in the range of [0,100].
    BeginProcessTime String Object identification task start execution time in ISO datetime format.
    FinishTime String Object recognition task completion time in ISO datetime format.

    AiRecognitionTaskObjectResultInput

    Object recognition task input type.

    Used by actions: DescribeTaskDetail, PullEvents.

    Name Type Description
    Definition Integer Object recognition template ID.

    AiRecognitionTaskObjectResultItem

    Single object recognition result.

    Used by actions: DescribeTaskDetail, PullEvents.

    Name Type Description
    Name String Name of a recognized object.
    RecognitionSegmentSet Array of AiRecognitionTaskObjectSegmentItem List of segments that contain the object.

    AiRecognitionTaskObjectResultOutput

    Intelligent object recognition output.

    Used by actions: DescribeTaskDetail, PullEvents.

    Name Type Description
    ResultSet Array of AiRecognitionTaskObjectResultItem Intelligent object recognition result set.
    Note: This list can only display up to the first 100 elements. To obtain the complete result, get it from the file corresponding to ResultSetFileUrl.
    ResultSetFileUrl String Intelligent object recognition result set file URL. The content of the file is in JSON format, and the data structure is consistent with the fields of ResultSet. (The file is not retained permanently. It will be deleted after reaching the ResultSetFileUrlExpireTime time point.)
    ResultSetFileUrlExpireTime String Expiration time of the intelligent object recognition result set file URL, in ISO date format.

    AiRecognitionTaskObjectSegmentItem

    Object recognition result segment.

    Used by actions: DescribeTaskDetail, PullEvents.

    Name Type Description
    StartTimeOffset Float Start time offset of a recognized segment, in seconds.
    EndTimeOffset Float End time offset of a recognized segment, in seconds.
    Confidence Float Confidence of a recognized segment. Value range: 0-100.
    AreaCoordSet Array of Integer Zone coordinates of the recognition result. An array contains four elements: [x1, y1, x2, y2], representing the horizontal and vertical coordinates of the top-left and bottom-right corners, respectively.

    AiRecognitionTaskOcrFullTextResult

    Full text recognition result.

    Used by actions: DescribeTaskDetail, PullEvents.

    Name Type Description
    Status String Task status. Valid values are PROCESSING, SUCCESS, and FAIL.
    ErrCodeExt String Error code. An empty string indicates success, and other values indicate failure. For values, see Video Processing Error Codes.
    ErrCode Integer Error code. 0 indicates that the task is successful, and other values indicate that the task has failed. (This field is not recommended. Use the new error code field ErrCodeExt instead.)
    Message String Error message.
    Input AiRecognitionTaskOcrFullTextResultInput Input information on the full text recognition task.
    Output AiRecognitionTaskOcrFullTextResultOutput Output information on the full text recognition task.
    Progress Integer Progress of the full text recognition task, with a value range of [0-100].
    BeginProcessTime String Full text recognition task start execution time in ISO datetime format.
    FinishTime String Full text recognition task completion time in ISO date format.

    AiRecognitionTaskOcrFullTextResultInput

    Full text recognition input.

    Used by actions: DescribeTaskDetail, PullEvents.

    Name Type Description
    Definition Integer Full text recognition template ID.

    AiRecognitionTaskOcrFullTextResultOutput

    Full text recognition output.

    Used by actions: DescribeTaskDetail, PullEvents.

    Name Type Description
    SegmentSet Array of AiRecognitionTaskOcrFullTextSegmentItem Full text recognition result set.
    Note: This list can only show up to the first 100 elements. To obtain the complete result, get it from the file corresponding to SegmentSetFileUrl.
    SegmentSetFileUrl String URL of the text full recognition result set file. The content of the file is in JSON format, and the data structure is consistent with the ResultSet fields. (The file is not retained permanently. It will be deleted after reaching the SegmentSetFileUrlExpireTime time point.)
    SegmentSetFileUrlExpireTime String Expiration time of the full text recognition result set file URL in ISO date format.

    AiRecognitionTaskOcrFullTextSegmentItem

    Full text recognition segment.

    Used by actions: DescribeTaskDetail, PullEvents.

    Name Type Description
    StartTimeOffset Float Start time offset of a recognized segment, in seconds.
    EndTimeOffset Float End time offset of a recognized segment, in seconds.
    TextSet Array of AiRecognitionTaskOcrFullTextSegmentTextItem Recognition segment result set.

    AiRecognitionTaskOcrFullTextSegmentTextItem

    Full text recognition segment.

    Used by actions: DescribeTaskDetail, PullEvents.

    Name Type Description
    Confidence Float Confidence of a recognized segment. Value range: 0-100.
    AreaCoordSet Array of Integer Zone coordinates of the recognition result. An array contains four elements: [x1, y1, x2, y2], representing the horizontal and vertical coordinates of the top-left and bottom-right corners, respectively.
    Text String Recognized text.

    AiRecognitionTaskOcrWordsResult

    Keyword recognition result of the text.

    Used by actions: DescribeTaskDetail, PullEvents.

    Name Type Description
    Status String Task status. Valid values are PROCESSING, SUCCESS, and FAIL.
    ErrCodeExt String Error code. An empty string indicates success, and other values indicate failure. For values, see Video Processing Error Codes.
    ErrCode Integer Error code. 0 indicates that the task is successful, and other values indicate that the task has failed. (This field is not recommended. Use the new error code field ErrCodeExt instead.)
    Message String Error message.
    Input AiRecognitionTaskOcrWordsResultInput Text keyword recognition task input.
    Output AiRecognitionTaskOcrWordsResultOutput Output message of the text keyword recognition task.
    Progress Integer Progress of the text keyword recognition task. Value range: [0-100].
    BeginProcessTime String Start execution time of the text keyword recognition task in ISO datetime format.
    FinishTime String Completion time of the text keyword recognition task in ISO datetime format.

    AiRecognitionTaskOcrWordsResultInput

    Text keyword recognition input.

    Used by actions: DescribeTaskDetail, PullEvents.

    Name Type Description
    Definition Integer Text keyword recognition template ID.

    AiRecognitionTaskOcrWordsResultItem

    Text keyword recognition result.

    Used by actions: DescribeTaskDetail, PullEvents.

    Name Type Description
    Word String Text keyword.
    SegmentSet Array of AiRecognitionTaskOcrWordsSegmentItem List of segments where the key text appears.

    AiRecognitionTaskOcrWordsResultOutput

    Text keyword recognition output.

    Used by actions: DescribeTaskDetail, PullEvents.

    Name Type Description
    ResultSet Array of AiRecognitionTaskOcrWordsResultItem Result set of text keyword recognition.
    Note: This list can only show up to the first 100 elements. To obtain the complete result, get it from the file corresponding to ResultSetFileUrl.
    ResultSetFileUrl String URL of the text keyword recognition result set file. The content of the file is in JSON format, and the data structure is consistent with the ResultSet fields. (The file is not retained permanently. It will be deleted after reaching the ResultSetFileUrlExpireTime time point.)
    ResultSetFileUrlExpireTime String Expiration time of the text keyword recognition result set file URL in ISO date format.

    AiRecognitionTaskOcrWordsSegmentItem

    Text recognition segment.

    Used by actions: DescribeTaskDetail, PullEvents.

    Name Type Description
    StartTimeOffset Float Start time offset of a recognized segment, in seconds.
    EndTimeOffset Float End time offset of a recognized segment, in seconds.
    Confidence Float Confidence of a recognized segment. Value range: 0-100.
    AreaCoordSet Array of Integer Zone coordinates of the recognition result. An array contains four elements: [x1, y1, x2, y2], representing the horizontal and vertical coordinates of the top-left and bottom-right corners, respectively.

    AiRecognitionTaskSegmentResult

    Video splitting result.

    Used by actions: DescribeTaskDetail, PullEvents.

    Name Type Description
    Status String Task status. Valid values are PROCESSING, SUCCESS, and FAIL.
    ErrCodeExt String Error code. An empty string indicates success, and other values indicate failure. For values, see video processing error code list.
    ErrCode Integer Error code. 0 indicates that the task is successful, and other values indicate that the task has failed. (This field is not recommended. Use the new error code field ErrCodeExt instead.)
    Message String Error message.
    Input AiRecognitionTaskSegmentResultInput Video splitting task input information.
    Output AiRecognitionTaskSegmentResultOutput Video splitting task output information.
    Progress Integer Progress of the video splitting task, in the range of [0,100].
    BeginProcessTime String Start execution time of the video splitting task in ISO date format.
    FinishTime String Video splitting task completion time in ISO datetime format.

    AiRecognitionTaskSegmentResultInput

    Input of video splitting.

    Used by actions: DescribeTaskDetail, PullEvents.

    Name Type Description
    Definition Integer Video splitting template ID.

    AiRecognitionTaskSegmentResultOutput

    Video splitting output.

    Used by actions: DescribeTaskDetail, PullEvents.

    Name Type Description
    SegmentSet Array of AiRecognitionTaskSegmentSegmentItem Video splitting segment list.
    Note: This list can only show up to the first 100 elements. To obtain the complete result, get it from the file corresponding to SegmentSetFileUrl.
    SegmentSetFileUrl String URL of the video splitting Segment List File. The file content is in JSON format, and its data structure is consistent with the SegmentSet fields. (The file is not retained permanently. It will be deleted after the time point specified by SegmentSetFileUrlExpireTime is reached.)
    SegmentSetFileUrlExpireTime String Expiration time of the video splitting segment list file URL, using ISO date format.

    AiRecognitionTaskSegmentSegmentItem

    Video splitting clip.

    Used by actions: DescribeTaskDetail, PullEvents.

    Name Type Description
    FileId String File ID. Valid only when processing VOD files and the generated sub-segments are VOD files.
    SegmentUrl String Video splitting segment Url.
    Confidence Float Confidence of a split segment. Value range: 0-100.
    StartTimeOffset Float Start time offset of a split segment, in seconds.
    EndTimeOffset Float End time offset of a split segment, in seconds.
    CovImgUrl String Segment cover image Url.
    SpecialInfo String Special field. Ignore it.

    AiReviewPoliticalAsrTaskInput

    Task input parameter type for inappropriate information and rule violations involving Asr text in audio/video moderation

    Used by actions: DescribeTaskDetail, PullEvents.

    Name Type Description
    Definition Integer Template ID for authentication involving inappropriate information.

    AiReviewPoliticalAsrTaskOutput

    Asr text involving inappropriate information

    Used by actions: DescribeTaskDetail, PullEvents.

    Name Type Description
    Confidence Float Asr text involves inappropriate information and rule violation score. The score ranges from 0 to 100.
    Suggestion String Asr text involves inappropriate information and rule violation result suggestions, with a permissible range of:
  • pass.
  • review.
  • block.
  • SegmentSet Array of MediaContentReviewAsrTextSegmentItem List of video segments where the Asr text involves inappropriate information or suspected rule violations.
    Note: This list can only display up to the first 100 elements. To obtain the complete result, get it from the file corresponding to SegmentSetFileUrl.
    SegmentSetFileUrl String URL of the Segment List File for videos where the Asr text involves suspected inappropriate information or rule violations. The file content is in JSON format, and its data structure is consistent with the SegmentSet fields. (The file is not retained permanently. It will be deleted after reaching the SegmentSetFileUrlExpireTime time point.)
    SegmentSetFileUrlExpireTime String Expiration time of the file URL for the video segment list where the Asr text involves inappropriate information or suspected rule violations, in ISO date format.

    AiReviewPoliticalOcrTaskInput

    Task input parameter type for Ocr text involving inappropriate information in audio/video moderation

    Used by actions: DescribeTaskDetail, PullEvents.

    Name Type Description
    Definition Integer Template ID for authenticating content that involves inappropriate information.

    AiReviewPoliticalOcrTaskOutput

    Ocr text involves inappropriate information

    Used by actions: DescribeTaskDetail, PullEvents.

    Name Type Description
    Confidence Float Ocr text involving inappropriate information and rule violation score. The score ranges from 0 to 100.
    Suggestion String Ocr text involving inappropriate information and violation result recommendations. Value ranges from...to...
  • pass.
  • review.
  • block.
  • SegmentSet Array of MediaContentReviewOcrTextSegmentItem List of video segments whose Ocr text involves inappropriate information or is suspected of rule violations.
    Note: This list can only display up to the first 100 elements. To obtain the complete result, get it from the file corresponding to SegmentSetFileUrl.
    SegmentSetFileUrl String URL of the segment list file for videos where the Ocr text involves inappropriate information or suspected rule violations. The content of the file is in JSON format, and the data structure is consistent with the fields of SegmentSet. (The file will not be retained permanently and will be deleted after reaching SegmentSetFileUrlExpireTime.)
    SegmentSetFileUrlExpireTime String Expiration time of the Segment List File URL for video segments with Ocr text involving inappropriate information or suspected rule violations, in ISO date format.

    AiReviewPoliticalTaskInput

    Task input parameter type for inappropriate information in audio/video moderation

    Used by actions: DescribeTaskDetail, PullEvents.

    Name Type Description
    Definition Integer Template ID for authenticating content that involves inappropriate information.

    AiReviewPoliticalTaskOutput

    Involves inappropriate information.

    Used by actions: DescribeTaskDetail, PullEvents.

    Name Type Description
    Confidence Float Score of inappropriate information in the video. Value range: 0-100.
    Suggestion String Result suggestions involving inappropriate information. Value range:
  • pass.
  • review.
  • block.
  • Label String Result tag for videos involving inappropriate information. Mapping between the LabelSet parameter in the screen image authentication task control parameter (https://www.tencentcloud.com/document/api/266/31773?from_cn_redirect=1#PoliticalImgReviewTemplateInfo) of the audio/video moderation template and the value range of this parameter:
    violation_photo:
  • violation_photo: Violation icon.

  • Other (politician/entertainment/sport/entrepreneur/scholar/celebrity/military):
  • politician: relevant people.
  • SegmentSet Array of MediaContentReviewPoliticalSegmentItem List of video segments suspected of involving inappropriate information.
    Note: This list can only display up to the first 100 elements. To obtain the complete result, get it from the file corresponding to SegmentSetFileUrl.
    SegmentSetFileUrl String URL of the segment list file that may contain inappropriate information. The file content is in JSON format, and its data structure is consistent with the SegmentSet fields. (The file will not be retained permanently. It will be deleted after the SegmentSetFileUrlExpireTime is reached.)
    SegmentSetFileUrlExpireTime String Expiration time of the URL of the Segment List File of the video suspected of involving inappropriate information in ISO date format.

    AiReviewPornAsrTaskInput

    Task input parameter type for Asr text involving offensive content in audio/video moderation

    Used by actions: DescribeTaskDetail, PullEvents.

    Name Type Description
    Definition Integer Template ID for authenticating content that involves offensive information.

    AiReviewPornAsrTaskOutput

    Asr text involves offensive content

    Used by actions: DescribeTaskDetail, PullEvents.

    Name Type Description
    Confidence Float Score of offensive content in the Asr text. Value range: 0–100.
    Suggestion String Result suggestions for Asr text involving offensive content. Value range:
  • pass.
  • review.
  • block.
  • SegmentSet Array of MediaContentReviewAsrTextSegmentItem List of video segments whose Asr text is suspected of involving offensive content.
    Note: This list can only show up to the first 100 elements. To obtain the complete result, get it from the file corresponding to SegmentSetFileUrl.
    SegmentSetFileUrl String URL of the segment list file for videos where the Asr text is suspected of containing offensive content. The content of the file is in JSON format, and the data structure is consistent with the fields in SegmentSet. (The file is not retained permanently and will be deleted after reaching the SegmentSetFileUrlExpireTime time point.)
    SegmentSetFileUrlExpireTime String Expiration time of the URL of the segment list file for videos suspected of involving offensive content in Asr text, in ISO date format.

    AiReviewPornOcrTaskInput

    Task input parameter type of Ocr text involving offensive content in audio/video moderation

    Used by actions: DescribeTaskDetail, PullEvents.

    Name Type Description
    Definition Integer Template ID for authenticating templates that involve offensive content.

    AiReviewPornOcrTaskOutput

    Ocr text involves offensive content

    Used by actions: DescribeTaskDetail, PullEvents.

    Name Type Description
    Confidence Float Score of Ocr text involving offensive content. Value range: 0–100.
    Suggestion String Result suggestions for Ocr text involving offensive content. Value ranges from 0 to 100.
  • pass.
  • review.
  • block.
  • SegmentSet Array of MediaContentReviewOcrTextSegmentItem List of video segments whose Ocr text is suspected of involving offensive content.
    Note: This list can only show up to the first 100 elements. To obtain the complete result, get it from the file corresponding to SegmentSetFileUrl.
    SegmentSetFileUrl String URL of the video segment list file whose Ocr text may involve offensive content. The file content is in JSON format, and its data structure is consistent with the SegmentSet fields. (The file is not retained permanently. It will be deleted after the time point specified by SegmentSetFileUrlExpireTime is reached.)
    SegmentSetFileUrlExpireTime String Expiration time of the file URL for the video segment list where the Ocr text involves suspected offensive content, in ISO date format.

    AiReviewPornTaskInput

    Task input parameter type for offensive content in audio/video moderation

    Used by actions: DescribeTaskDetail, PullEvents.

    Name Type Required Description
    Definition Integer Yes Template ID for authenticating content that involves offensive information.

    AiReviewPornTaskOutput

    Authentication result info involving offensive content

    Used by actions: DescribeTaskDetail, PullEvents.

    Name Type Description
    Confidence Float Video identification involves scoring offensive content, with a score from 0 to 100.
    Suggestion String Result suggestions for authentication involving offensive content. Value range:
  • pass.
  • review.
  • block.
  • Label String Result tag of video identification involving offensive content. Value range:
  • porn: Pornography.
  • sexy: Sexy.
  • vulgar: Vulgar.
  • intimacy: intimate behavior.
  • SegmentSet Array of MediaContentReviewSegmentItem List of video segments suspected of involving offensive content.
    Note: This list can only display up to the first 100 elements. To obtain the complete result, get it from the file corresponding to SegmentSetFileUrl.
    SegmentSetFileUrl String URL of the Segment List File that may involve offensive content. The file content is in JSON format, and its data structure is consistent with the SegmentSet fields. (The file is not retained permanently. It will be deleted after the time point specified by SegmentSetFileUrlExpireTime is reached.)
    SegmentSetFileUrlExpireTime String Expiration time of the file URL for the video segment list where the video involves suspected offensive content, in ISO date format.

    AiReviewProhibitedAsrTaskInput

    Input parameter type for prohibited information recognition in Asr text in audio/video moderation

    Used by actions: DescribeTaskDetail, PullEvents.

    Name Type Description
    Definition Integer Prohibited information recognition template ID.

    AiReviewProhibitedAsrTaskOutput

    Asr text involving prohibited information

    Used by actions: DescribeTaskDetail, PullEvents.

    Name Type Description
    Confidence Float Asr text violation score. Value range: 0-100.
    Suggestion String Asr text violation result suggestion. Value range:
  • pass.
  • review.
  • block.
  • SegmentSet Array of MediaContentReviewAsrTextSegmentItem List of video segments whose Asr text is suspected of prohibition violations.
    Note: This list can only display up to the first 100 elements. To obtain the complete result, get it from the file corresponding to SegmentSetFileUrl.
    SegmentSetFileUrl String URL of the video segment list file where the Asr text is suspected of prohibition violations. The content of the file is in JSON, and the data structure is consistent with the SegmentSet fields. (The file is not retained permanently and will be deleted after reaching SegmentSetFileUrlExpireTime.)
    SegmentSetFileUrlExpireTime String Expiration time of the file URL for the video segment list where the Asr text is suspected of prohibition violations, in ISO date format.

    AiReviewProhibitedOcrTaskInput

    Task input parameter type for Ocr text prohibited information recognition in audio/video moderation

    Used by actions: DescribeTaskDetail, PullEvents.

    Name Type Description
    Definition Integer Prohibited information recognition template ID.

    AiReviewProhibitedOcrTaskOutput

    Ocr text involving prohibited information

    Used by actions: DescribeTaskDetail, PullEvents.

    Name Type Description
    Confidence Float Score of Ocr text involving prohibited content. Value range: 0-100.
    Suggestion String Suggestion for Ocr text involving prohibited content. Value range:
  • pass.
  • review.
  • block.
  • SegmentSet Array of MediaContentReviewOcrTextSegmentItem List of video segments whose Ocr text is suspected of prohibition violations.
    Note: This list only shows the first 100 elements. To obtain the complete result, get it from the file corresponding to SegmentSetFileUrl.
    SegmentSetFileUrl String URL of the video segment list file where the Ocr text is suspected of prohibition violations. The content of the file is in JSON format, and the data structure is consistent with the SegmentSet field. (The file is not retained permanently and will be deleted after reaching the SegmentSetFileUrlExpireTime time point.)
    SegmentSetFileUrlExpireTime String Expiration time of the Segment List File URL for videos with Ocr text suspected of prohibition violations, in ISO date format.

    AiReviewTaskPoliticalAsrResult

    Task result type for inappropriate information and rule violations involving Asr text in audio/video moderation

    Used by actions: DescribeTaskDetail, PullEvents.

    Name Type Description
    Status String Task status. Valid values are PROCESSING, SUCCESS, and FAIL.
    ErrCodeExt String Error code. An empty string indicates success, and other values indicate failure. For values, see Video Processing Error Codes.
    ErrCode Integer Error code. 0 indicates that the task is successful, and other values indicate that the task has failed. (This field is not recommended. Use the new error code field ErrCodeExt instead.)
    Message String Error message.
    Input AiReviewPoliticalAsrTaskInput Task input for inappropriate information involving Asr text in audio/video moderation.
    Output AiReviewPoliticalAsrTaskOutput Task output of Asr text involving inappropriate information in audio/video moderation.
    Progress Integer Task progress of Asr text involving inappropriate information in audio/video moderation. Value ranges from 0 to 100.

    AiReviewTaskPoliticalOcrResult

    Result type for tasks involving inappropriate information or rule violations in Ocr text in audio/video moderation

    Used by actions: DescribeTaskDetail, PullEvents.

    Name Type Description
    Status String Task status. Valid values are PROCESSING, SUCCESS, and FAIL.
    ErrCodeExt String Error code. An empty string indicates success, and other values indicate failure. For values, see Video Processing Error Codes.
    ErrCode Integer Error code. 0 indicates that the task is successful, and other values indicate that the task has failed. (This field is not recommended. Use the new error code field ErrCodeExt instead.)
    Message String Error message.
    Input AiReviewPoliticalOcrTaskInput Task input for tasks involving inappropriate information in Ocr text in audio/video moderation.
    Output AiReviewPoliticalOcrTaskOutput Task output of audio/video moderation involving inappropriate information in Ocr text.
    Progress Integer Progress of the Ocr text task involving inappropriate information in audio/video moderation. Value range: 0-100.

    AiReviewTaskPoliticalResult

    Task result type for inappropriate content involved in audio/video moderation

    Used by actions: DescribeTaskDetail, PullEvents.

    Name Type Description
    Status String Task status. Valid values are PROCESSING, SUCCESS, and FAIL.
    ErrCodeExt String Error code. An empty string indicates success, and other values indicate failure. For values, see Video Processing Error Codes.
    ErrCode Integer Error code. 0 indicates that the task is successful, and other values indicate that the task has failed. (This field is not recommended. Use the new error code field ErrCodeExt instead.)
    Message String Error message.
    Input AiReviewPoliticalTaskInput Task input for inappropriate content involved in audio/video moderation.
    Output AiReviewPoliticalTaskOutput Task output of audio/video moderation involving inappropriate information.
    Progress Integer Task progress of audio/video moderation involving inappropriate information, in the range of [0,100].

    AiReviewTaskPornAsrResult

    Task result type of Asr text involving offensive content in audio/video moderation.

    Used by actions: DescribeTaskDetail, PullEvents.

    Name Type Description
    Status String Task status. Valid values are PROCESSING, SUCCESS, and FAIL.
    ErrCodeExt String Error code. An empty string indicates that the task is successful, and other values indicate that the task has failed. For specific values, see Video Processing Error Codes.
    ErrCode Integer Error code. 0 indicates that the task is successful, and other values indicate that the task has failed. (This field is not recommended. Use the new error code field ErrCodeExt instead.)
    Message String Error message.
    Input AiReviewPornAsrTaskInput Task input for offensive content involved in Asr text in audio/video moderation.
    Output AiReviewPornAsrTaskOutput Task output of Asr text involving offensive content in audio/video moderation.
    Progress Integer Task progress of audio/video moderation involving offensive content in Asr text, in the range of [0,100].

    AiReviewTaskPornOcrResult

    Task result type of Ocr text involving offensive content in audio/video moderation

    Used by actions: DescribeTaskDetail, PullEvents.

    Name Type Description
    Status String Task status. Valid values are PROCESSING, SUCCESS, and FAIL.
    ErrCodeExt String Error code. An empty string indicates success, and other values indicate failure. For values, see Video Processing Error Codes.
    ErrCode Integer Error code. 0 indicates that the task is successful, and other values indicate that the task has failed. (This field is not recommended. Use the new error code field ErrCodeExt instead.)
    Message String Error message.
    Input AiReviewPornOcrTaskInput Task input of Ocr text involving offensive content in audio/video moderation.
    Output AiReviewPornOcrTaskOutput Task output of Ocr text, audio, and video moderation involving offensive content.
    Progress Integer Task progress of Ocr text, audio, and video moderation involving offensive content, in the range of [0-100].

    AiReviewTaskPornResult

    Task result type for offensive content involved in audio/video moderation

    Used by actions: DescribeTaskDetail, PullEvents.

    Name Type Description
    Status String Task status. Valid values are PROCESSING, SUCCESS, and FAIL.
    ErrCodeExt String Error code. An empty string indicates success, and other values indicate failure. For values, see Video Processing Error Codes.
    ErrCode Integer Error code. 0 indicates that the task is successful, and other values indicate that the task has failed. (This field is not recommended. Use the new error code field ErrCodeExt instead.)
    Message String Error message.
    Input AiReviewPornTaskInput Task input for offensive content involved in audio/video moderation.
    Output AiReviewPornTaskOutput Task output of audio/video moderation involving offensive content.
    Progress Integer Task progress of audio/video moderation involving offensive content, in the range of [0,100].

    AiReviewTaskProhibitedAsrResult

    Result type of prohibited task for Asr text in audio/video moderation

    Used by actions: DescribeTaskDetail, PullEvents.

    Name Type Description
    Status String Task status. Valid values are PROCESSING, SUCCESS, and FAIL.
    ErrCodeExt String Error code. An empty string indicates success, and other values indicate failure. For values, see Video Processing Error Codes.
    ErrCode Integer Error code. 0 indicates that the task is successful, and other values indicate that the task has failed. (This field is not recommended. Use the new error code field ErrCodeExt instead.)
    Message String Error message.
    Input AiReviewProhibitedAsrTaskInput Task input for prohibited information recognition in Asr text during audio/video moderation.
    Output AiReviewProhibitedAsrTaskOutput Task output of prohibited information recognition in Asr text during audio/video moderation.
    Progress Integer Progress of the Asr text prohibited task moderation for audio/video. Value range: 0-100.

    AiReviewTaskProhibitedOcrResult

    Result type of prohibited task for Ocr text in audio/video moderation

    Used by actions: DescribeTaskDetail, PullEvents.

    Name Type Description
    Status String Task status. Valid values are PROCESSING, SUCCESS, and FAIL.
    ErrCodeExt String Error code. An empty string indicates success, and other values indicate failure. For values, see Video Processing Error Codes.
    ErrCode Integer Error code. 0 indicates that the task is successful, and other values indicate that the task has failed. (This field is not recommended. Use the new error code field ErrCodeExt instead.)
    Message String Error message.
    Input AiReviewProhibitedOcrTaskInput Input for prohibited task of Ocr text in audio/video moderation.
    Output AiReviewProhibitedOcrTaskOutput Output of the Ocr text moderation prohibited task in audio/video moderation.
    Progress Integer Progress of the Ocr text prohibited task moderation for audio/video. Value range: 0-100.

    AiReviewTaskTerrorismOcrResult

    Task result type of Ocr text identification involving unsafe content in audio/video moderation

    Used by actions: DescribeTaskDetail, PullEvents.

    Name Type Description
    Status String Task status. Valid values are PROCESSING, SUCCESS, and FAIL.
    ErrCodeExt String Error code. An empty string indicates success, and other values indicate failure. For values, see Video Processing Error Codes.
    ErrCode Integer Error code. 0 indicates that the task is successful, and other values indicate that the task has failed. (This field is not recommended. Use the new error code field ErrCodeExt instead.)
    Message String Error message.
    Input AiReviewTerrorismOcrTaskInput Task input of Ocr text involving unsafe information in audio/video moderation.
    Output AiReviewTerrorismOcrTaskOutput Task output of Ocr text involving unsafe information in video moderation.
    Progress Integer Task progress of Ocr text, audio, and video moderation involving unsafe information, in the range of [0-100].

    AiReviewTaskTerrorismResult

    Task result type of audio/video moderation involving unsafe information.

    Used by actions: DescribeTaskDetail, PullEvents.

    Name Type Description
    Status String Task status. Valid values are PROCESSING, SUCCESS, and FAIL.
    ErrCodeExt String Error code. An empty string indicates success, and other values indicate failure. For values, see Video Processing Error Codes.
    ErrCode Integer Error code. 0 indicates that the task is successful, and other values indicate that the task has failed. (This field is not recommended. Use the new error code field ErrCodeExt instead.)
    Message String Error message.
    Input AiReviewTerrorismTaskInput Task input of audio/video moderation involving unsafe information.
    Output AiReviewTerrorismTaskOutput Task output of audio and video moderation involving unsafe information.
    Progress Integer Task progress of audio/video moderation involving unsafe information, in the range of [0,100].

    AiReviewTerrorismOcrTaskInput

    Task input parameter type for Ocr text involving unsafe information in audio/video moderation

    Used by actions: DescribeTaskDetail, PullEvents.

    Name Type Description
    Definition Integer Template ID for authenticating content that involves unsafe information.

    AiReviewTerrorismOcrTaskOutput

    Ocr text involves unsafe information

    Used by actions: DescribeTaskDetail, PullEvents.

    Name Type Description
    Confidence Float Score of unsafe information in Ocr text. Value range: 0-100.
    Suggestion String Ocr text involves result suggestions for unsafe information. Value range:
  • pass.
  • review.
  • block.
  • SegmentSet Array of MediaContentReviewOcrTextSegmentItem List of video segments with Ocr text suspected of involving unsafe information.
    Note: This list can only display up to the first 100 elements. To obtain the complete result, get it from the file corresponding to SegmentSetFileUrl.
    SegmentSetFileUrl String URL of the segment list file for videos suspected of containing unsafe information in Ocr text. The file content is in JSON format, and its data structure is consistent with the SegmentSet fields. (The file will not be retained permanently and will be deleted after reaching the SegmentSetFileUrlExpireTime.)
    SegmentSetFileUrlExpireTime String Expiration time of the URL of the Segment List File for video segments suspected of involving unsafe information in Ocr text, in ISO date format.

    AiReviewTerrorismTaskInput

    Task input parameter type for unsafe information involved in audio/video moderation

    Used by actions: DescribeTaskDetail, PullEvents.

    Name Type Description
    Definition Integer Template ID for authentication involving unsafe information.

    AiReviewTerrorismTaskOutput

    Terrorism information

    Used by actions: DescribeTaskDetail, PullEvents.

    Name Type Description
    Confidence Float Video terrorism score. The score ranges from 0 to 100.
    Suggestion String Terrorism result suggestion. Value range:
  • pass.
  • review.
  • block.
  • Label String Video terrorism result tag. Value range:
  • guns: weapons and firearms.
  • crowd: crowd gathering.
  • police: police force.
  • bloody: graphic violence.
  • banners: violent and terrorist flags.
  • militant: militants.
  • explosion: explosions and fires.
  • terrorists: violent and terrorist persons.
  • scenario: violent and terrorist scene.
  • SegmentSet Array of MediaContentReviewSegmentItem List of video segments suspected of terrorism.
    Note: This list can only display up to the first 100 elements. To obtain the complete result, get it from the file corresponding to SegmentSetFileUrl.
    SegmentSetFileUrl String URL of the segment list file for suspected terrorism videos. The file content is in JSON format, and its data structure is consistent with the SegmentSet fields. (The file will not be retained permanently. It will be deleted after reaching the SegmentSetFileUrlExpireTime time point.)
    SegmentSetFileUrlExpireTime String Expiration time of the Segment List File URL for suspected terrorism videos, in ISO date format.

    AiSampleFaceInfo

    AI sample management, face information.

    Used by actions: CreatePersonSample, DescribePersonSamples, ModifyPersonSample.

    Name Type Description
    FaceId String Face image ID.
    Url String Face image address.

    AiSampleFaceOperation

    AI sample management, face data manipulation.

    Used by actions: ModifyPersonSample.

    Name Type Required Description
    Type String Yes

    Operation type. Available values: add, delete, reset. The reset operation will clear the existing face data of the person and add the face data specified by FaceContents.

    FaceIds Array of String No

    Human face ID set. This field is required when Type is delete.

    FaceContents Array of String No

    Collection of strings after the face image is Base64-encoded. Only jpeg and png image formats are supported.

  • This field is required when Type is add or reset.
  • Array length limit: 5 images.
  • Note: The image must be a relatively clear photo of a single person's front face, with pixels not less than 200*200.

    AiSampleFailFaceInfo

    AI sample management, face information that failed processing

    Used by actions: CreatePersonSample, ModifyPersonSample.

    Name Type Description
    Index Integer Incorrect image subscript in the input parameter FaceContents, starting from 0.
    ErrCode Integer Error code. Value:
  • 0: success;
  • Other: failure.
  • Message String Error description.

    AiSamplePerson

    AI sample management, figure information.

    Used by actions: CreatePersonSample, DescribePersonSamples, ModifyPersonSample.

    Name Type Description
    PersonId String

    Figure ID.

    Name String

    Figure name.

    Description String

    Character description.

    FaceInfoSet Array of AiSampleFaceInfo

    Face information.

    TagSet Array of String

    Figure tag.

    UsageSet Array of String

    Application scenarios.

    CreateTime String

    Creation time, in ISO date format.

    UpdateTime String

    Last modification time, in ISO date format.

    AiSampleTagOperation

    AI sample management, tag manipulation.

    Used by actions: ModifyPersonSample, ModifyWordSample.

    Name Type Required Description
    Type String Yes

    Operation type. Available values: add, delete, reset.

    Tags Array of String Yes

    Tag. Length limit: 128 characters.

    AiSampleWord

    AI sample management, keyword output information.

    Used by actions: DescribeWordSamples.

    Name Type Description
    Keyword String

    Keyword.

    TagSet Array of String

    Keyword tag.

    UsageSet Array of String

    Keyword application scenario.

    CreateTime String

    Creation time, in ISO date format.

    UpdateTime String

    Last modification time, in ISO date format.

    AiSampleWordInfo

    AI sample management, keyword input.

    Used by actions: CreateWordSamples.

    Name Type Required Description
    Keyword String Yes

    Keyword. Length limit: 20 characters.

    Tags Array of String No

    Keyword tag

  • Array length limit: 20 tags;
  • Single tag length limited to 128 characters.
  • AiTryOnConfig

    AI dressing configuration message.

    Used by actions: CreateSceneAigcImageTask.

    Name Type Required Description
    Model String Yes

    Dressing model.

    Enumeration values:

    • WAND-tryon-1.0-lite: Lightweight tier, speed first.
    • WAND-tryon-1.0-flash: Balanced tier, balancing effect and latency.
    • WAND-tryon-1.0-pro: High-quality tier, effect first.
    ClothesFileInfos Array of SceneAigcImageTaskInputFileInfo No

    Input the image list of clothing that need to be replaced. 1-4 images are supported.

    Prompt String No

    Dressing instruction Prompt.

    AigcAdvancedCustomElementInfo

    AIGC advanced custom entity information

    Used by actions: DescribeAigcAdvancedCustomElements.

    Name Type Description
    Id String

    Subject ID.

    Name String

    Subject name.

    VoiceId String

    Main voice ID.

    Description String

    Subject description.

    CreateTime String

    Entity creation time. Format according to the ISO 8601 standard. For details, see ISO date format description.

    AigcAudioCloneInputFileInfo

    AIGC voice clone input file info

    Used by actions: CreateAigcAudioClone, DescribeTaskDetail.

    Name Type Required Description
    Type String No

    Input video file type. Valid values:

  • File: on-demand media file;
  • Url: accessible URL;
  • FileId String No

    Media file ID, the globally unique identifier of the file in VOD, assigned by the VOD backend after successful upload. You can get this field in the video upload completion event notification or the VOD console. This parameter is valid when Type is File. Note: 1. An image less than 10M is recommended; 2. Image format values: jpeg, jpg, png.

    Url String No

    Accessible file URL. This parameter is valid when Type is Url. Note: 1. An image less than 10M is recommended; 2. Image format values: jpeg, jpg, png.

    AigcAudioOutputConfig

    Output media file configuration for AIGC sound effect tasks.

    Used by actions: CreateAigcAudioTask, DescribeTaskDetail.

    Name Type Required Description
    StorageMode String No

    Storage mode

    Enumeration values:

    • Temporary: temporary storage. The generated video file will not be stored in VOD. You can obtain a temporary access URL in the event notification, with a valid period of 7 days.
    • Permanent: permanent storage. The generated video file will be stored in VOD. You can obtain the FileId in the event notification.

    Default value: Temporary

    MediaName String No

    Output filename. It can contain up to 64 characters. By default, the system specifies the filename.

    ClassId Integer No

    Category ID, used to categorize and manage media. You can create a category through the create category API to obtain the category ID.

  • Default value: 0, indicating other categories.
  • ExpireTime String No

    Expiry date of the output file. The file will be deleted after this time. The default is permanent with no expiration. The format follows the ISO 8601 standard. For details, see ISO date format description.

    Duration Integer No

    Audio duration. Not filled in by default.

    Value range: [0, 60]

    OutputAudioFormat String No

    Output audio format. By default, this is not specified.

    AigcAudioReferenceAudioInfo

    Reference audio information.

    Used by actions: CreateAigcAudioTask, DescribeTaskDetail.

    Name Type Required Description
    Type String No

    Accessible file URL. This parameter is valid when Type is Url. Note: 1. Images less than 7M are recommended. 2. Supported image formats: jpeg, jpg, png, webp.

    FileId String No

    Media file ID of the audio file, which is the globally unique identifier of the file in VOD, assigned by the VOD backend after successful upload. You can obtain this field in video upload completion event notification or VOD console. This parameter is valid when Type is File.

    Url String No

    Audio file URL, which needs to be external network accessible. This parameter is valid when Type is Url.

    AigcAudioReferenceVideoInfo

    Reference video asset for AIGC video generation.

    Used by actions: CreateAigcAudioTask, DescribeTaskDetail.

    Name Type Required Description
    Type String No

    Input video file type. Valid values:

  • File: on-demand media file;
  • Url: accessible URL;
  • FileId String No

    Media file ID of a video file, which is the globally unique identifier of the file in VOD, assigned by the VOD backend after successful upload. You can obtain this field in the video upload completion event notification or the VOD console. This parameter is valid when Type is File.

    Url String No

    Reference video URL, which needs to be external network accessible. This parameter is valid when Type is Url.

    AigcAudioTask

    Create AIGC sound effect task information.

    Used by actions: DescribeTaskDetail.

    Name Type Description
    TaskId String

    Task ID.

    Status String

    Task status. Valid values:

  • PROCESSING: Processing;
  • FINISH: Completed.
  • ErrCode Integer

    Error code. A non-zero error code is returned when a source error occurs. If 0 is returned, please use the ErrCode of each specific task.

    ErrCodeExt String

    Extended error code. An empty string indicates success, and other values indicate failure.

    Enumeration values:

    • RequestLimitExceeded: The call exceeds the concurrency limit.
    • InvalidParameter.VoilationContent: The input prompt violates the Content Security Policy.
    • InvalidParameterValue: Parameter value error.
    • FailedOperation: Model tasks are accumulating.
    • InternalError: Internal error.
    • InvalidParameter: Invalid parameters.
    • InvalidParameter.MediaFormat: Invalid media format.
    • ContentModerationFailed: Failed to pass content moderation.
    • ResourceInsufficient: Insufficient resources.
    • ModelGenerateFailed: Failed to generate the model.
    • ResourceNotFound: Resource not found.
    • OperationCanceled: Operation canceled.
    • TaskTimeout: Task timeout.
    Message String

    Error message.

    Progress Integer

    Task progress. Value range: [0-100].

    Input AigcAudioTaskInput

    Input information of AIGC audio tasks.

    Output AigcAudioTaskOutput

    Output information of AIGC audio tasks.

    AigcAudioTaskInput

    Input of the AIGC sound effect generation task.

    Used by actions: DescribeTaskDetail.

    Name Type Description
    ModelName String

    Model name.

    ModelVersion String

    Model version.

    SceneType String

    Scenario type. Values are as follows:

  • When ModelName is Kling, the value motion_control means action control;
  • Not currently supported for other ModelName.
  • Prompt String

    Prompt content for video generation. Supports up to 1,000 characters. This parameter is required when FileInfos is empty.

    NegativePrompt String

    Prompt content to prevent the model from generating video. Supports up to 1000 characters.

    AudioInfos Array of AigcAudioReferenceAudioInfo

    Reference audio content

    VideoInfos Array of AigcAudioReferenceVideoInfo

    Reference video info

    EnhancePrompt Boolean

    Whether to optimize Prompt content automatically. When Enabled, the passed-in Prompt will be optimized automatically to enhance generation quality. Valid values:

  • Enabled: enable;
  • Disabled: disable;
  • OutputConfig AigcAudioOutputConfig

    Output result file output of AIGC image generation.

    AdditionalParameters String

    Additional parameter.

    AigcAudioTaskOutput

    Output information of the AIGC sound effect task.

    Used by actions: DescribeTaskDetail.

    Name Type Description
    AudioInfos Array of AigcAudioTaskOutputFileInfo

    Output audio information

    VideoInfos Array of AigcAudioTaskOutputFileInfo

    Output video information

    AigcAudioTaskOutputFileInfo

    Output file information of AIGC sound effect tasks.

    Used by actions: DescribeTaskDetail.

    Name Type Description
    StorageMode String

    Storage mode. Valid values:

  • Permanent: permanent storage;
  • Temporary: temporary storage;

  • Default value: Temporary

    MediaName String

    Output filename, up to 64 characters. By default, the system specifies the generated filename. Valid when StorageMode is Permanent.

    ClassId Integer

    Category ID, used to categorize and manage media. You can create a category and obtain the category ID through the Create Category API. Valid when StorageMode is Permanent.

    ExpireTime String

    Expiry date of the output file. The file will be deleted after this time. It is permanent with no expiration by default. The format is based on ISO 8601. For details, see ISO date format description.

    FileType String

    File type, for example, mp4 and flv.

    FileUrl String

    Media file playback address.

    FileId String

    Media file ID. Valid when StorageMode is Permanent.

    MetaData MediaMetaData

    Meta-information of the output audio.

    Duration Float

    Duration

    Unit: second

    AigcFaceIdentityInfo

    Human face identity information.

    Used by actions: DescribeAigcFaceInfo.

    Name Type Description
    FaceId String Face ID in the video. The same face is treated as different IDs if it appears more than 1s apart in the video.
    FaceImage String Schematic diagram of a human face captured from the video.
    StartTime Integer Start time of the lip-sync interval for this face. It can be used as the best lip-sync start time. Unit: ms.
    EndTime Integer End time of the lip-sync interval for the face. Note: This result has a millisecond-level deviation and will be later than the actual interval end. Unit: ms.

    AigcFaceInfo

    AIGC face information

    Used by actions: DescribeAigcFaceInfo, DescribeTaskDetail, PullEvents.

    Name Type Description
    SessionId String Principal ID. Note the returned principal ID.
    FaceInfoList Array of AigcFaceIdentityInfo Face information list.

    AigcFaceInputFileInfo

    AIGC human face input file information

    Used by actions: DescribeAigcFaceInfo, DescribeAigcFaceInfoAsync, DescribeTaskDetail, PullEvents.

    Name Type Required Description
    Type String No Input video file type. Valid values:
  • File: on-demand media file;
  • Url: accessible URL;
  • FileId String No Media file ID, the globally unique identifier of the file in VOD, assigned by the VOD backend after successful upload. You can obtain this field in the video upload completion event notification (https://www.tencentcloud.com/document/product/266/7830?from_cn_redirect=1) or the VOD console (https://console.tencentcloud.com/vod/media). This parameter is valid when Type is File.
    Url String No Accessible file URL. This parameter is valid when Type is Url.

    AigcHunyuan3DMeshInfo

    Existing model information used to generate Hunyuan 3D models.

    Used by actions: CreateAigcHunyuan3DTask, DescribeTaskDetail, PullEvents.

    Name Type Required Description
    Type String No

    Input file type. Valid values:

  • File: VOD file;
  • Url: accessible URL;
  • FileId String No

    File ID, the globally unique identifier of the file in VOD, assigned by the VOD backend after successful upload. You can obtain this field in the video upload completion event notification or the VOD console. This parameter is valid when Type is File. Note: Supported image formats: glb and obj.

    Url String No

    Accessible file URL. This parameter is valid when Type is Url. Note: Supported file formats: glb and obj.

    AigcHunyuan3DMultiViewImageInfo

    Multi-perspective diagram information of AIGC Hunyuan 3D.

    Used by actions: CreateAigcHunyuan3DTask, DescribeTaskDetail, PullEvents.

    Name Type Required Description
    Type String No

    Input file type. Valid values:

  • File: on-demand media file;
  • Url: accessible URL;
  • FileId String No

    File ID, the globally unique identifier of the file in VOD, assigned by the VOD backend after successful upload. You can obtain this field in the video upload completion event notification or the VOD console. This parameter is valid when Type is File. Description: Supported image formats: jpg, jpeg, png, bmp, webp.

    Url String No

    Accessible file URL. This parameter is valid when Type is Url. Note: Supported image formats: jpg, jpeg, png, bmp, webp.

    ViewType String No

    View image type.

    Enumeration values:

    • front: front view (required)

    • back: back view

    • left: left view

    • right: right view

    • top: top view

    • bottom: bottom view

    • left_front: left front 45°

    • right_front: right front 45°

    • Must contain the front view;

    • The same ViewType cannot be duplicated.

    AigcHunyuan3DOutputConfig

    Configuration of the output media file of an AIGC Hunyuan 3D task.

    Used by actions: CreateAigcHunyuan3DTask, DescribeTaskDetail, PullEvents.

    Name Type Required Description
    StorageMode String No

    Storage mode. Valid values:

  • Temporary: temporary storage;
  • Default value: Temporary

    AigcHunyuan3DReferenceImageInfo

    Reference image information for AIGC Hunyuan 3D.

    Used by actions: CreateAigcHunyuan3DTask, DescribeTaskDetail, PullEvents.

    Name Type Required Description
    Type String No

    Input file type. Valid values:

  • File: VOD file;
  • Url: accessible URL;
  • FileId String No

    File ID, the globally unique identifier of the file in VOD, assigned by the VOD backend after successful upload. You can obtain this field in the video upload completion event notification or the VOD console. This parameter is valid when Type is File. Description: Supported image formats: jpg, jpeg, png, bmp, webp.

    Url String No

    Accessible file URL. This parameter is valid when Type is Url. Note: Supported image formats: jpg, jpeg, png, bmp, webp.

    AigcHunyuan3DTask

    AIGC Hunyuan 3D task information.

    Used by actions: DescribeTaskDetail, PullEvents.

    Name Type Description
    TaskId String

    Task ID.

    Status String

    Task status. Valid values:

  • PROCESSING: Processing;
  • FINISH: Completed.
  • ErrCode Integer

    Error code. A non-zero error code is returned when a source error occurs. If 0 is returned, please use the ErrCode of each specific task.

    ErrCodeExt String

    Expansion error code.

    Message String

    Error message.

    Progress Integer

    Task progress, value ranges from 0 to 100.

    Input AigcHunyuan3DTaskInput

    Input information of the AIGC Hunyuan 3D task.

    Output AigcHunyuan3DTaskOutput

    Output information of the AIGC Hunyuan 3D task.

    SessionId String

    Identifier for deduplication. If a request with the same identifier has been sent within the past seven 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 String

    Source context. This is used to pass user request information. The task status change callback returns the value of this field. The maximum length is 1000 characters.

    AigcHunyuan3DTaskInput

    Input of the AIGC Hunyuan 3D task.

    Used by actions: DescribeTaskDetail, PullEvents.

    Name Type Description
    ImageInfos Array of AigcHunyuan3DReferenceImageInfo

    Generate 3D reference image information.

    MultiViewImageInfos Array of AigcHunyuan3DMultiViewImageInfo

    Multi-perspective image information used to generate a 3D model.

    The array length must be between 2 and 8 and must contain the front perspective.

    Prompt String

    Prompt for generating a 3D model.

    GenerateType String

    Generation Type.

    Enumeration values:

    • Normal: Generate a complete 3D asset (geometry + texture);
    • Geometry: Generate only geometry (no texture, faster output speed);
    • Texture: Generate only texture (requires filling in MeshInfos)
    MeshInfos Array of AigcHunyuan3DMeshInfo

    Reference 3D model used to generate a 3D model.

    EnablePBR String

    Whether to enable output PBR material.

    Enumeration values:

    • Enabled: enable;
    • Disabled: disable.
    FaceCount Integer

    Number of patches. This parameter is valid only when the value of GenerateType is Normal or Geometry.

    KeepUV String

    Whether to retain UV unfolding.

    Enumeration values:

    • Enabled: reserved;
    • Disabled: not retain.
    ResultFormat String

    Result format. In addition to the default return of obj and glb, an extra output format.

    Enumeration values:

    • FBX: FBX format file.
    Seed Integer

    Random Seed. Results can be reproduced with the same Seed input.

    Style String

    Style control word.

    OutputConfig AigcHunyuan3DOutputConfig

    Configuration of the output media file of the task.

    AigcHunyuan3DTaskOutput

    Output information of the AIGC Hunyuan 3D task.

    Used by actions: DescribeTaskDetail, PullEvents.

    Name Type Description
    FileInfos Array of AigcHunyuan3DTaskOutputFileInfo

    Output file information for an AIGC Hunyuan 3D task.

    AigcHunyuan3DTaskOutputFileInfo

    Output file information of the AIGC Hunyuan 3D task.

    Used by actions: DescribeTaskDetail, PullEvents.

    Name Type Description
    StorageMode String

    Storage mode. Valid values:

  • Permanent: permanent storage;
  • Temporary: temporary storage;
  • Default value: Temporary

    ExpireTime String

    Expiry date of the output file. The file will be deleted after this time. By default, it never expires. The format follows the ISO 8601 standard. For details, see ISO date format description.

    FileType String

    File type, such as OBJ, GLB, and FBX.

    FileUrl String

    Output file address.

    PreviewFileUrl String

    Output file preview address.

    Empty if no file preview address is available.

    AigcImageOutputConfig

    Output media file configuration for an AIGC image generation task.

    Used by actions: CreateAigcImageTask, DescribeTaskDetail, PullEvents.

    Name Type Required Description
    StorageMode String No

    Storage mode

    Enumeration values:

    • Temporary: temporary storage. The generated video file will not be stored in VOD. A temporary access URL can be obtained in the event notification, with a valid period of 7 days.
    • Permanent: retained permanently. The generated video file will be stored in VOD. The FileId can be obtained in the event notification.

    Default value: Temporary

    MediaName String No

    Output filename, up to 64 characters. By default, the system assigns the generated filename.

    ClassId Integer No

    Category ID, used to categorize and manage media. You can create a category and obtain the category ID through the Create Category API.

  • Default value: 0, indicating other categories.
  • ExpireTime String No

    Expiry date of the output file. The file will be deleted after this time. It never expires by default. The format follows the ISO 8601 standard. For details, see ISO date format description.

    Resolution String No

    Resolution of the generated image. Available values for each model:

    • OG: 1K, 2K, 4K. Default: 1K.
    • GG 2.5: 1K, 2K, 4K. Default: 1K.
    • GG 3.0: 1K, 2K, 4K. Default: 1K.
    • GG 3.1: 720P, 1K, 2K, 4K. Default: 1K.
    • Kling 2.1: 1k, 2k. Default: 1k.
    • Kling 3.0: 1k, 2k. Default: 1k.
    • Kling 3.0-Omni: 1k, 2k, 4k. Default: 1k.
    • Kling O1: 1k, 2k, 4k. Default: 1k.
    • SI 4.0: 1K, 2K, 4K. Default: 1K.
    • SI 4.5: 2K, 4K. Default: 2K.
    • SI 5.0-lite: 2K, 3K. Default: 2K.
    • Vidu q2: 1080p, 2K, 4K. Default: 1080p.
    • Hunyuan 3.0: This field is not currently supported. You can set the resolution through the ExtInfo field.
    • Qwen 0925: This field is not currently supported. You can set the resolution through the ExtInfo field.
    AspectRatio String No

    Specify the aspect ratio of the generated image.

    • OG: 1:1, 3:2, 2:3, 3:4, 4:3, 16:9, 9:16, 21:9, 9:21;
    • GG 2.5: 1:1, 2:3, 3:2, 3:4, 4:3, 4:5, 5:4, 9:16, 16:9, 21:9;
    • GG 3.0: 1:1, 2:3, 3:2, 3:4, 4:3, 4:5, 5:4, 9:16, 16:9, 21:9;
    • GG 3.1: 1:1, 1:4, 1:8, 2:3, 3:2, 3:4, 4:1, 4:3, 4:5, 5:4, 8:1, 9:16, 16:9, 21:9;
    • Kling 2.1: 16:9, 9:16, 1:1, 4:3, 3:4, 3:2, 2:3, 21:9;
    • Kling 3.0: 16:9, 9:16, 1:1, 4:3, 3:4, 3:2, 2:3, 21:9;
    • Kling 3.0-Omni: 16:9, 9:16, 1:1, 4:3, 3:4, 3:2, 2:3, 21:9, auto;
    • Kling O1: 16:9, 9:16, 1:1, 4:3, 3:4, 3:2, 2:3, 21:9, auto;
    • Vidu q2: 16:9, 9:16, 1:1, 3:4, 4:3, 21:9, 2:3, 3:2;
    • SI 4.0: does not support this parameter. You can specify 16:9, 9:16, 1:1, 4:3, 3:4, 3:2, 2:3, 21:9 via prompt;
    • SI 4.5: does not support this parameter. You can specify 16:9, 9:16, 1:1, 4:3, 3:4, 3:2, 2:3, 21:9 via prompt;
    • SI 5.0-lite: does not support this parameter. You can specify 16:9, 9:16, 1:1, 4:3, 3:4, 3:2, 2:3, 21:9 via prompt;
    • Hunyuan 3.0: unsupported;
    • Qwen 2.0: unsupported;
    • Qwen 0925: unsupported;
    PersonGeneration String No

    Whether to allow generation of people or human faces. Valid values:

  • AllowAdult: allow generation of adults;
  • Disallowed: forbid people or human faces in images;
  • InputComplianceCheck String No

    Whether to enable compliance check on the input content. Valid values:

  • Enabled: enable;
  • Disabled: disable;
  • OutputComplianceCheck String No

    Whether to enable compliance check on output content. Valid values:

  • Enabled: enable;
  • Disabled: disable;
  • OutputImageCount Integer No

    Number of images generated. Available values for each model:

    • Kling: value range 1-9;
    • OG: value range 1-8;

    Not effective for other models.

    OutputFormat String No

    Specify the image file format for model output. If not specified, the model default value is followed. Available values:

    • jpeg
    • png
    LogoAdd String No

    Indicates whether to enable the logo watermark. Default value: Disabled. Valid values:

    • Enabled: enable;
    • Disabled: disable;

    AigcImageSceneInfo

    Scenario-based AIGC image generation configuration.

    Used by actions: CreateSceneAigcImageTask, DescribeTaskDetail, PullEvents.

    Name Type Required Description
    Type String Yes

    AI image generation scenario type. Available values:

    • ai_try_on: AI try-on.
    • product_image: AI product image generation.
    • outpainting: AI outpainting.

    The following Type values are abandoned and will no longer be updated:

    • change_clothes
    • change_clothes_under
    • change_clothes_top_wear
    • change_clothes_bottom_wear
    • change_clothes_full_wear
    AiTryOnConfig AiTryOnConfig No

    Required when Type is ai_try_on, indicating the AI dressing configuration parameters.

    ChangeClothesConfig ChangeClothesConfig No

    Abandoned. Please use AiTryOnConfig.When Type is one of the following types, this item is required and represents the AI try-on image generation configuration parameters:

    • change_clothes
    • change_clothes_under
    ProductImageConfig ProductImageConfig No

    Required when Type is product_image, indicating the AI-generated product image configuration parameters.

    AigcImageTask

    AIGC image generation task information.

    Used by actions: DescribeTaskDetail, PullEvents.

    Name Type Description
    TaskId String

    Task ID.

    Status String

    Task status. Valid values:

  • PROCESSING: Processing;
  • FINISH: Completed.
  • ErrCode Integer

    Error code. A non-zero error code is returned when a source error occurs. If 0 is returned, use the ErrCode of each specific task.

    ErrCodeExt String

    Extended error code. An empty string indicates success, while other values indicate failure.

    Enumeration values:

    • RequestLimitExceeded: Model invocation exceeded the concurrency limit.
    • InvalidParameter.VoilationContent: The input prompt violates the Content Security Policy.
    • InvalidParameterValue: Parameter error.
    • FailedOperation: Model tasks are accumulating.
    • InternalError: Internal error.
    • InvalidParameter: Invalid parameter.
    • InvalidParameter.MediaFormat: Invalid media format.
    • ContentModerationFailed: Failed to pass content moderation.
    • ResourceInsufficient: Insufficient resources.
    • ModelGenerateFailed: Failed to generate model.
    • ResourceNotFound: Resource not found.
    • OperationCanceled: Operation canceled.
    • TaskTimeout: Task timeout.
    Message String

    Error message.

    Progress Integer

    Task progress, value ranges from 0 to 100.

    Input AigcImageTaskInput

    Input information for the AIGC image generation task.

    Output AigcImageTaskOutput

    Output information of the AIGC image generation task.

    SessionId String

    Identifier for deduplication. If a request with the same identifier has been sent within the past seven 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 String

    Source context. This is used to pass user request information. The task status change callback returns the value of this field. The maximum length is 1000 characters.

    AigcImageTaskInput

    Input of the AIGC image generation task.

    Used by actions: DescribeTaskDetail, PullEvents.

    Name Type Description
    ModelName String

    Model name.

    ModelVersion String

    Model version.

    FileInfos Array of AigcImageTaskInputFileInfo

    AIGC image generation task input file information.

    Prompt String

    Prompt content for image generation. When FileInfos is empty, this parameter is required.

    NegativePrompt String

    Prompt content to prevent the model from generating images.

    EnhancePrompt String

    Whether to optimize Prompt content automatically. When Enabled, the passed-in Prompt will be optimized automatically to enhance generation quality. Valid values:

  • Enabled: enable;
  • Disabled: disable;
  • GenerationMode String

    Generation mode. Valid values:

  • Standard: standard mode;
  • Professional: high-quality mode;
  • OutputConfig AigcImageOutputConfig

    AIGC image generation output result file output.

    Seed Integer

    Random seed of the model.

    SceneType String

    Scenario type. Values are as follows:

  • When ModelName is Hunyuan: 3d_panorama means panoramic view;
  • Other ModelName values are not currently supported.
  • ExtInfo String

    Pass-through parameter.

    AigcImageTaskInputFileInfo

    AIGC image generation task input file information

    Used by actions: CreateAigcImageTask, DescribeTaskDetail, PullEvents.

    Name Type Required Description
    Type String No

    Input file type. Valid values:

  • File: on-demand media file;
  • Url: accessible URL;
  • Base64: Base64 string of an image or video for transcoding;
  • FileId String No

    Media file ID of the image file, which is the globally unique identifier of the file on VOD, assigned by the VOD backend after successful upload. You can obtain this field in the video upload completion event notification or the VOD console. This parameter is valid when Type is File.
    Description:

    1. Images less than 7M are recommended.
    2. Image format values: jpeg, jpg, png, webp.
    Url String No

    Accessible file URL. This parameter is valid when Type is Url.
    Description:

    1. An image less than 7M is recommended.
    2. Image format values: jpeg, jpg, png, webp.
    Base64 String No

    Accessible file Base64. This parameter is valid when Type is Base64. Details:

    1. The total size of all files must not exceed 7 MB to avoid exceeding the 10 MB upper limit of message size for cloud APIs after conversion to Base64;
    2. Image format should be: jpeg, jpg, png, webp;
    3. Do not include prefixes such as data:image/jpeg;base64,.
    Text String No

    Description of the input image, used to help the model understand the image. Only valid for GEM 2.5 and GEM 3.0.

    ReferenceType String No

    Valid only when ModelName is OG. Image type.

    Enumeration values:

    • mask: Image mask.

    AigcImageTaskOutput

    Output of an AIGC image generation task.

    Used by actions: DescribeTaskDetail, PullEvents.

    Name Type Description
    FileInfos Array of AigcImageTaskOutputFileInfo

    Information of the output file of an AIGC image generation task.

    AigcImageTaskOutputFileInfo

    Information of the output file of an AIGC image generation task.

    Used by actions: DescribeTaskDetail, PullEvents.

    Name Type Description
    StorageMode String

    Storage mode. Valid values:

  • Permanent: permanent storage;
  • Temporary: temporary storage;
  • MediaName String

    Output filename, up to 64 characters. By default, the system assigns the generated filename. Valid when StorageMode is Permanent.

    ClassId Integer

    Category ID, used to categorize and manage media. You can create a category and obtain the category ID through the Create Category API. Valid when StorageMode is Permanent.

    ExpireTime String

    Expiry date of the output file. The file will be deleted after this time. By default, it never expires. The format follows the ISO 8601 standard. For details, see ISO date format description.

    FileType String

    File type, such as png or jpg.

    FileUrl String

    Media file playback address.

    FileId String

    Media file ID. Valid when StorageMode is Permanent.

    MetaData MediaMetaData

    Meta-information of the output image.

    AigcQuotaItem

    AIGC quota

    Used by actions: DescribeAigcQuotas.

    Name Type Description
    QuotaType String

    Quota type

    Enumeration values:

    • Image: AIGC image task
    • Video: AIGC video task
    • Text: AIGC text task
    ApiToken String

    Valid only when QuotaLimit is Text. It is used to select the ApiToken that needs a quota limit.

    QuotaLimit Integer

    Number of task quotas

    Unit:

    • When QuotaLimit=Image, the unit is images
    • When QuotaLimit=Video, the unit is seconds
    • When QuotaLimit=Text, the unit is tokens
    Usage Integer

    Already used amount

    Unit:

    • When QuotaLimit=Image, the unit is images
    • When QuotaLimit=Video, the unit is seconds
    • When QuotaLimit=Text, the unit is tokens

    AigcTextDetail

    AIGC-generated details

    Used by actions: DescribeAigcUsageData.

    Name Type Required Description
    PageSize Integer No

    Entries per page

    ScrollToken String No

    scroll_token returned in the previous page response, used for turning to the next page

    Data Array of AigcTextDetailData No

    Detailed data for text generation

    AigcTextDetailData

    Aigc-generated detailed data

    Used by actions: DescribeAigcUsageData.

    Name Type Required Description
    Timestamp String No

    Request start time (RFC3339)

    ReqId String No

    Gateway layer request ID.

    ChatId String No

    Dialogue ID returned by the backend model

    StatusCode Integer No

    HTTP status code returned to the client

    Model String No

    Model name

    SubAppId Integer No

    Application ID.

    ApiKey String No

    Masked api_key: first 8 characters + **** (returned without modification if length ≤ 8)

    Stream Boolean No

    Whether to return in streaming mode

    InputTokens Integer No

    Input token count

    OutputTokens Integer No

    Output token count

    CacheInputTokens Integer No

    Number of tokens for cache hits in prompt cache

    TotalTokens Integer No

    Total token count

    TPS Float No

    tokens per second in the generation stage

    TTFT Float No

    Time To First Token

    Unit: second

    Total Float No

    End-to-end total time

    Unit: seconds

    ApiType String No

    Entry protocol: completions / responses / anthropic

    AigcUsageDataItem

    AIGC statistics

    Used by actions: DescribeAigcUsageData.

    Name Type Description
    Specification String

    AIGC specification.
    Valid values:

  • Qwen2.0
  • Hunyuan3.0_1K
  • Hunyuan3.0_2K
  • Hunyuan3.0_4K
  • Mingmou1.0_1K
  • Mingmou1.0_2K
  • Mingmou1.0_4K
  • ViduQ2_T2i_1080P
  • ViduQ2_T2i_2K
  • ViduQ2_T2i_4K
  • ViduQ2_I2i_1080P
  • ViduQ2_I2i_2K
  • ViduQ2_I2i_4K
  • ViduQ2_Refer2i_1080P
  • ViduQ2_Refer2i_2K
  • ViduQ2_Refer2i_4K
  • Kling2.1_T2i_1K2K
  • Kling2.1_T2i_4K
  • Kling2.1_Refer2i_1K
  • Kling2.1_Refer2i_2K
  • Kling2.1_Refer2i_4K
  • Veo3.1Standard
  • Veo3.1Fast
  • Kling2.0&2.1std_720P
  • Kling2.0&2.1pro_1080P
  • Kling2.5pro_720P
  • Kling2.5pro_1080P
  • KlingO1_720P
  • KlingO1_1080P
  • KlingO1_NoVideo_720P
  • KlingO1_NoVideo_1080P
  • Kling2.6
  • Kling2.6Sound
  • Kling2.6MotionControl_720P
  • Kling2.6MotionControl_1080P
  • Kling3.0_720P
  • Kling3.0Sound_720P
  • Kling3.0CustomVoice_720P
  • Kling3.0_1080P
  • Kling3.0Sound_1080P
  • Kling3.0CustomVoice_1080P
  • Kling3.0CustomVoice_2K
  • Kling3.0CustomVoice_4K
  • Kling3.0MotionControl_720P
  • Kling3.0MotionControl_1080P
  • Kling3.0MotionControl_2K
  • Kling3.0MotionControl_4K
  • Kling_Avatar_I2v_720P
  • Kling_Avatar_I2v_1080P
  • Kling_Identifyface
  • Hailuo02&2.3_768P
  • Hailuo02&2.3_1080P
  • Hailuo2.3fast_768P
  • Hailuo2.3fast_1080P
  • ViduQ2_720P
  • ViduQ2_720P_OffPeak
  • ViduQ2_1080P
  • ViduQ2_1080P_OffPeak
  • ViduQ2_Refer_540P
  • ViduQ2_Refer_540P_OffPeak
  • ViduQ2_Refer_720P
  • ViduQ2_Refer_720P_OffPeak
  • ViduQ2_Refer_1080P
  • ViduQ2_Refer_1080P_OffPeak
  • ViduQ2pro_720P
  • ViduQ2pro_720P_OffPeak
  • ViduQ2pro_1080P
  • ViduQ2pro_1080P_OffPeak
  • ViduQ2pro_Refer_720P
  • ViduQ2pro_Refer_720P_OffPeak
  • ViduQ2pro_Refer_720P
  • ViduQ2pro_Refer_720P_OffPeak
  • ViduQ2pro_Refer_1080P
  • ViduQ2pro_Refer_1080P_OffPeak
  • ViduQ2turbo_720P
  • ViduQ2turbo_720P_OffPeak
  • ViduQ2turbo_1080P
  • ViduQ2turbo_1080P_OffPeak
  • ViduQ3_Refer_720P
  • ViduQ3_Refer_720P_OffPeak
  • ViduQ3_Refer_1080P
  • ViduQ3_Refer_1080P_OffPeak
  • ViduQ3_Refer_2K
  • ViduQ3_Refer_2K_OffPeak
  • ViduQ3_Refer_4K
  • ViduQ3_Refer_4K_OffPeak
  • ViduQ3pro_540P
  • ViduQ3pro_540P_OffPeak
  • ViduQ3pro_720P
  • ViduQ3pro_720P_OffPeak
  • ViduQ3pro_1080P
  • ViduQ3pro_1080P_OffPeak
  • ViduQ3turbo_540P
  • ViduQ3turbo_540P_OffPeak
  • ViduQ3turbo_720P
  • ViduQ3turbo_720P_OffPeak
  • ViduQ3turbo_1080P
  • ViduQ3turbo_1080P_OffPeak
  • ViduQ3turbo_2K
  • ViduQ3turbo_2K_OffPeak
  • ViduQ3turbo_4K
  • ViduQ3turbo_4K_OffPeak
  • Vidu_TemplateEffect
  • Hunyuan1.5_720P
  • Hunyuan1.5_1080P
  • Mingmou1.0_720P
  • Mingmou1.0_1080P
  • ImageProductImage
  • ImageChangeClothes
  • VideoProductShowcase
  • ImageOutPainting
  • FaceInfo
  • CustomVoice
  • Subject
  • unknown
  • DataSet Array of TaskStatDataItem

    Usage data.

    AigcVideoOutputConfig

    Configuration of the output media file of an AIGC video task.

    Used by actions: CreateAigcVideoTask, DescribeTaskDetail, PullEvents.

    Name Type Required Description
    StorageMode String No

    Storage mode

    Enumeration values:

    • Temporary: Temporary storage. The generated video file will not be stored in VOD. You can obtain a temporary access URL from the event notification, with a valid period of 7 days.
    • Permanent: Permanent storage. The generated video file will be stored in VOD. You can obtain the FileId from the event notification.

    Default value: Temporary

    MediaName String No

    Output media filename, up to 64 characters. By default, the system assigns the generated filename.

    ClassId Integer No

    Category ID, used to categorize and manage media. You can create a category and obtain the category ID through the Create Category API.

  • Default value: 0, indicating other categories.
  • ExpireTime String No

    Expiry date of the output file. The file will be deleted after this time. By default, it never expires. The format follows the ISO 8601 standard. For details, see ISO date format description.

    Duration Float No

    Duration of the generated video, in seconds.

  • When ModelName is Kling, optional values: 3-15, default: 5;
  • When ModelName is Hailuo, optional values: 6, 10, default: 6; when the version is H3, optional values: 4-15 seconds (integer)
  • When ModelName is Vidu, specify 1-10;
  • When ModelName is GV, optional value: 8, default: 8;
  • When ModelName is OS, optional values: 4, 8, 12, default: 8;
  • When ModelName is PixVerse, specify 1-15, default: 5;
  • Resolution String No

    Resolution of the generated video.

  • When ModelName is Kling, optional values: 720P and 1080P. Default value: 720P.
  • When ModelName is Hailuo, optional values: 768P and 1080P. Default value: 768P. When the version is H3, optional values: 768P, 1080P, 2K, and 4K.
  • When ModelName is Vidu, optional values: 720P and 1080P. Default value: 720P.
  • When ModelName is GV, optional values: 720P and 1080P. Default value: 720P.
  • When ModelName is OS, optional value: 720P.
  • When ModelName is PixVerse, optional values: 540p, 720p, 1080p, 2k, and 4k. Default value: 720p.
  • AspectRatio String No

    Aspect ratio of the generated video.

  • When ModelName is Kling, for text-to-video, available values are 16:9, 9:16, and 1:1, with a default value of 16:9;
  • When ModelName is Vidu, for text-to-video and reference image-to-video, available values are 16:9, 9:16, 4:3, 3:4, and 1:1. Only version q2 supports 4:3 and 3:4.
  • When ModelName is GV, available values are 16:9 and 9:16, with a default value of 16:9;
  • When ModelName is OS, for text-to-video, available values are 16:9 and 9:16, with a default value of 16:9;
  • When ModelName is Hailuo and the version is H3, for text-to-video and reference image-to-video, available values are 21:9, 16:9, 4:3, 1:1, 3:4, and 9:16. For image-to-video (first and last frame video), the resolution matches the image.
  • When ModelName is PixVerse, available values are 16:9, 4:3, 1:1, 3:4, 9:16, 2:3, 3:2, and 21:9;
  • AudioGeneration String No

    Whether to generate audio. Supported models include GV, OS, Vidu, Jimeng, and Kling.

    Enumeration values:

    • Enabled: enable
    • Disabled: disable

    Default value: Disabled

    PersonGeneration String No

    Whether to allow generation of people or human faces. Valid values:

  • AllowAdult: allow generation of adults;
  • Disallowed: forbid including people or human faces in images;
  • InputComplianceCheck String No

    Whether compliance check is enabled for the input. Valid values:

  • Enabled: enable;
  • Disabled: disable;
  • OutputComplianceCheck String No

    Whether to enable compliance check on output content. Valid values:

  • Enabled: enable;
  • Disabled: disable;
  • EnhanceSwitch String No

    Whether to enable video enhancement. Valid values:

  • Enabled: Turn on;
  • Disabled: Turn off;

  • Description:

    1. If the selected resolution exceeds the model's generation resolution, enhancement is enabled by default.
    2. For resolutions the model can generate directly, you can also choose direct low-resolution output and use enhancement to obtain the specified resolution.
    OffPeak String No

    Whether to enable off-peak. Valid values:

  • Enabled: enable;
  • Disabled: disable;
  • FrameInterpolate String No

    Whether intelligent frame interpolation is enabled for vidu. Valid values:

  • Enabled: enable;
  • Disabled: disable;
  • LogoAdd String No

    Indicates whether to enable the logo watermark. Valid values:

  • Enabled: enable;
  • Disabled: disable;
  • EnableBGM String No

    Whether to add background music to the generated video.

    Enumeration values:

    • Enabled: The system will automatically select suitable music from the preset BGM library and add it.
    • Disabled: Do not add BGM.

    Default value: Disabled

    AigcVideoRedrawOutputConfig

    Output media file configuration for an AIGC video conversion task.

    Used by actions: CreateAigcVideoRedrawTask, DescribeTaskDetail.

    Name Type Required Description
    StorageMode String No

    Storage mode. Valid values:

  • Permanent: The generated video file will be stored in VOD, and the FileId can be obtained in the event notification;
  • Temporary: The generated video file will not be stored in VOD, and a temporary access URL can be obtained in the event notification;
  • Default value: Temporary

    MediaName String No

    Output media file name, up to 64 characters. By default, the system specifies the generated file name.

    ClassId Integer No

    Category ID, used to categorize and manage media. You can call the Create Category API to create a category and obtain the category ID.

  • Default value: 0, indicating other categories.
  • ExpireTime String No

    Expiry date of the output file. Files will be deleted after this time. By default, files never expire. Format according to the ISO 8601 standard. For details, see ISO date format description.

    Parameter format: 2025-12-28T00:35:00Z.

    AigcVideoRedrawOutputFileInfo

    Output file information for an AIGC video conversion task.

    Used by actions: DescribeTaskDetail.

    Name Type Description
    StorageMode String

    Storage mode. Valid values:

  • Permanent: permanent storage;
  • Temporary: temporary storage;
  • Default value: Temporary

    MediaName String

    Output filename, up to 64 characters. By default, the system specifies the generated filename. Valid when StorageMode is Permanent.

    ClassId Integer

    Category ID, used to categorize and manage media. You can create a category and obtain the category ID through the Create Category API. Valid when StorageMode is Permanent.

    ExpireTime String

    Expiry date of the output file. The file will be deleted after this time. By default, it never expires. The format follows the ISO 8601 standard. For details, see ISO date format description.

    FileType String

    File type, for example, mp4 and flv.

    FileUrl String

    Media file playback address.

    FileId String

    Media file ID. Valid when StorageMode is Permanent.

    MetaData MediaMetaData

    Meta-information of the output video. Valid when StorageMode is Permanent.

    AigcVideoRedrawTask

    AIGC video conversion task info

    Used by actions: DescribeTaskDetail.

    Name Type Description
    TaskId String

    Task ID.

    Status String

    Task status. Valid values:

  • PROCESSING: Processing;
  • FINISH: Completed.
  • ErrCode Integer

    Error code. A non-zero error code is returned when a source error occurs. If 0 is returned, please use the ErrCode of each specific task.

    ErrCodeExt String

    Expansion error code.

    Message String

    Error message.

    Progress Integer

    Task progress. Value range: [0-100].

    Input AigcVideoRedrawTaskInput

    Input information of the AIGC video conversion task.

    Output AigcVideoRedrawTaskOutput

    Output information of the AIGC video conversion task.

    SessionId String

    Identifier for deduplication. If a request with the same identifier has been sent within the past seven 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 String

    Source context. This is used to pass user request information. The task status change callback returns the value of this field. The maximum length is 1000 characters.

    AigcVideoRedrawTaskInfo

    AIGC video conversion figure parameter information.

    Used by actions: CreateAigcVideoRedrawTask, DescribeTaskDetail.

    Name Type Required Description
    Style String No

    For description of the style. Limited to 50 characters.

    AigcVideoRedrawTaskInput

    Input of an AIGC video stylization task.

    Used by actions: DescribeTaskDetail.

    Name Type Description
    FileInfo AigcVideoRedrawTaskInputFileInfo

    Input file information of the AIGC video conversion task.

    TaskInfo AigcVideoRedrawTaskInfo

    AIGC video redrawing task parameter information.

    OutputConfig AigcVideoRedrawOutputConfig

    Output configuration for AIGC video conversion.

    AigcVideoRedrawTaskInputFileInfo

    Input file information for the AIGC video conversion task.

    Used by actions: CreateAigcVideoRedrawTask, DescribeTaskDetail.

    Name Type Required Description
    Type String No

    Input video file type. Valid values:

  • File: on-demand media file;
  • Url: accessible URL;
  • FileId String No

    Media file ID, the globally unique identifier of the file in VOD, assigned by the VOD backend after successful upload. You can obtain this field in the video upload completion event notification or the VOD console. This parameter is valid when Type is File. Notes: 1. Images less than 10M are recommended. 2. Image format values: jpeg, jpg, png.

    Url String No

    Accessible file URL. This parameter is valid when Type is Url. Note: 1. Images less than 10 MB are recommended; 2. Supported image formats: jpeg, jpg, png.

    AigcVideoRedrawTaskOutput

    Output information of an AIGC video conversion task.

    Used by actions: DescribeTaskDetail.

    Name Type Description
    FileInfo AigcVideoRedrawOutputFileInfo

    Output file information for the AIGC video conversion task.

    AigcVideoSceneInfo

    Scenario-based AIGC image generation configuration.

    Used by actions: CreateSceneAigcVideoTask, DescribeTaskDetail.

    Name Type Required Description
    Type String Yes AI video generation scenario type. Optional values:
    - product_showcase: 360-degree product showcase.
    ProductShowcaseConfig ProductShowcaseConfig No Product display parameters

    AigcVideoTask

    AIGC video generation task information.

    Used by actions: DescribeTaskDetail, PullEvents.

    Name Type Description
    TaskId String

    Task ID.

    Status String

    Task status. Valid values:

  • PROCESSING: Processing;
  • FINISH: Completed.
  • ErrCode Integer

    Error code. A non-zero error code is returned when a source error occurs. If 0 is returned, use the ErrCode of each specific task.

    ErrCodeExt String

    Extended error codes.

    Enumeration values:

    • RequestLimitExceeded: API concurrency limit exceeded.
    • InvalidParameter.VoilationContent: The input prompt violates the Content Security Policy.
    • InvalidParameterValue: Parameter value error.
    • FailedOperation: Model tasks accumulate.
    • InternalError: Internal error.
    • InvalidParameter: Invalid parameters.
    • InvalidParameter.MediaFormat: Invalid media format.
    • ContentModerationFailed: Failed to pass content moderation.
    • ResourceInsufficient: Insufficient resources.
    • ModelGenerateFailed: Failed to generate model.
    • ResourceNotFound: Resource not found.
    • OperationCanceled: Operation canceled.
    • TaskTimeout: Task timeout.
    Message String

    Error message.

    Progress Integer

    Task progress, value ranges from 0 to 100.

    Input AigcVideoTaskInput

    Input information for the AIGC video generation task.

    Output AigcVideoTaskOutput

    Output information of the AIGC video task.

    SessionId String

    Identifier for deduplication. If a request with the same identifier has been sent within the past seven 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 String

    Source context. This is used to pass user request information. The task status change callback returns the value of this field. The maximum length is 1000 characters.

    AigcVideoTaskInput

    Input of AIGC video tasks.

    Used by actions: DescribeTaskDetail, PullEvents.

    Name Type Description
    ModelName String

    Model name.

    ModelVersion String

    Model version.

    FileInfos Array of AigcVideoTaskInputFileInfo

    Input file information for an AIGC video generation task.

    SubjectInfos Array of AigcVideoTaskInputSubjectInfo

    Fixed subject input information for the AIGC task.

    LastFrameFileId String

    Media file ID used as the tail frame to generate a video. This globally unique identifier of the file in VOD is assigned by the VOD backend after successful upload. You can obtain this field in the video upload completion event notification or the VOD console.

    LastFrameUrl String

    URL of the media file used as the last frame to generate video. Description:

    1. Only GV, Kling, and Vidu models are supported. Other models are not currently supported. When ModelName is GV, if you specify this parameter, you must also specify FileInfos as the first frame of the video to be generated. When ModelName is Kling, ModelVersion is 2.1, and the output resolution Resolution is 1080P, you can specify this parameter. When ModelName is Vidu and ModelVersion is q2-pro or q2-turbo, you can specify this parameter.
    2. The image size must be less than 5M.
      1. The value of the image format is: jpeg, jpg, png, webp.
    Prompt String

    Prompt for video generation. Supports up to 1000 characters. This parameter is required when FileInfos is empty.

    NegativePrompt String

    Prompt to prevent the model from generating video. Supports up to 1000 characters.

    EnhancePrompt String

    Whether to optimize Prompt content automatically. When Enabled, the passed-in Prompt will be optimized automatically to enhance generation quality. Valid values:

  • Enabled: enable;
  • Disabled: disable;
  • GenerationMode String

    Generation mode. Valid values:

  • Standard: standard mode;
  • Professional: high-quality mode;
  • OutputConfig AigcVideoOutputConfig

    Output result file output for AIGC image generation.

    InputRegion String

    Region information of the input file. If the file url is a foreign address, selectable Oversea. Default: Mainland.

    SceneType String

    Scenario type. Values are as follows:

  • When ModelName is Kling, the value motion_control means action control;
  • Not currently supported for other ModelName.
  • Seed Integer

    Random seed of the model.

    ExtInfo String

    Pass-through parameter.

    AigcVideoTaskInputFileInfo

    Image file information for the AIGC video generation task input.

    Used by actions: CreateAigcVideoTask, DescribeTaskDetail, PullEvents.

    Name Type Required Description
    Type String No

    Input video file type. Valid values:

  • File: on-demand media file;
  • Url: accessible URL;
  • Base64: Base64 string of an image or transcoded video;
  • Category String No

    File category. Valid values:

    • Image: image;
    • Video: video;
    • Audio: audio;
    FileId String No

    Media file ID, the globally unique identifier of the file on VOD, assigned by the VOD backend after successful upload. You can obtain this field in the video upload completion event notification or the VOD console. This parameter is valid when Type is File. Description:

    1. Images less than 10M are recommended.
    2. Image format values: jpeg, jpg, png.
    Url String No

    Accessible file URL. This parameter is valid when Type is Url.
    Description:

    1. An image less than 10M is recommended.
    2. Image format values: jpeg, jpg, png.
    Base64 String No

    Accessible file Base64. This parameter is valid when Type is Base64. Description:

    1. The total size of all files must not exceed 7MB to avoid exceeding the 10MB upper limit of message size for cloud APIs after conversion to Base64.
    2. Image format should be: jpeg, jpg, png, webp.
    3. Video format should be: mp4, mov, avi.
    4. Do not include prefixes such as data:image/jpeg;base64,.
    ReferenceType String No

    Reference Type, applicable to GV, Kling, and PixVerse models.
    Note:
    When using the GV model, it can be used as a reference method. Available values: asset represents material, style represents style;
    When using the Kling model and Category is Video, it can distinguish reference video types. feature represents a feature reference video, base represents the video to be edited;
    When using the PixVerse model, it can be used for multi-image (subject) reference generation mode. Available values: subject represents subject, background represents background;

    ObjectId String No

    Usage: Vidu subject Id.
    Vidu subject Id: prompt can be used via @subject Id. Valid when Category is Image.

    VoiceId String No

    Suitable for Vidu-q2 model.
    When all images carry a subject Id, you can set a timbre Id for the subject. Valid when Category is Image. Timbre list: https://shengshu.feishu.cn/sheets/EgFvs6DShhiEBStmjzccr5gonOg

    KeepOriginalSound String No

    Whether to retain the original sound of the video. Valid when Category is Video. Values are as follows:

  • Enabled: retain
  • Disabled: not retain
  • Usage String No

    Used to distinguish whether the input image is for first (last) frame to video, image to video, or reference to video. Available values:

    • FirstFrame: for the first frame of first (last) frame to video or image to video;
    • Reference: for reference to video;
    • LastFrame: for the last frame of first (last) frame to video;

    Note: FirstFrame is selected by default.

    Text String No

    Only effective for the multi-image (subject) reference mode of the PixVerse model. Assign a name to the image for more precise results. Usage: When this field value is "kitten", use @kitten in the Prompt to accurately describe the scenario. There must be a space after @Text, for example, @kitten run. The name referenced in the Prompt must be identical to this field.

    AigcVideoTaskInputSubjectInfo

    AIGC subject input information.

    Used by actions: CreateAigcVideoTask, DescribeTaskDetail, PullEvents.

    Name Type Required Description
    Id String No

    Fixed subject Id.

    • Kling subject required;
    • Vidu subject selectable.
    Name String No

    Fixed name.

    • Vidu subject required. It can be used by adding [@name] in the prompt. For example, if the name is Xiao Ming, describe it as [@Xiao Ming] in the prompt.
    • Kling subject selectable.
    VoiceId String No

    Valid only for Vidu. The voice type ID is used to determine the timbre of the sound in the video. If empty, the system will automatically recommend one.

    ImageUrls Array of String No

    Valid only for Vidu. Temporary subject images, up to 3 images
    Note 1: Input image URLs are supported (ensure they are accessible);
    Note 2: Images in png, jpeg, jpg, and webp formats are supported;
    Note 3: Image pixels cannot be less than 128*128, and the ratio must be less than 1:4 or 4:1.

    VideoUrls Array of String No

    Valid only for Vidu. Temporary subject video, a maximum of 1 5-second video. Note 1: Only the viduq2-pro model supports the use of video subjects for reference; Note 2: Supports uploading up to 1 5-second video; Note 3: Video supports mp4, avi, mov formats; Note 4: Video pixel cannot be less than 128*128, and the ratio must be less than 1:4 or 4:1;

    AigcVideoTaskOutput

    Output information of the AIGC video task.

    Used by actions: DescribeTaskDetail, PullEvents.

    Name Type Description
    FileInfos Array of AigcVideoTaskOutputFileInfo

    Output file information of the AIGC video generation task.

    ProcedureTaskIds Array of String

    Task ID of the task whose task type is Procedure. If a task flow template (Procedure) is specified when initiating an AIGC video generation task, the task is initiated when the task flow template specifies one or more of MediaProcessTask, AiAnalysisTask, and AiRecognitionTask.

    Usage AigcVideoTaskUsage

    Usage information of AIGC video tasks.

    AigcVideoTaskOutputFileInfo

    Output file information for the AIGC video generation task.

    Used by actions: DescribeTaskDetail, PullEvents.

    Name Type Description
    StorageMode String

    Storage mode. Valid values:

  • Permanent: permanent storage;
  • Temporary: temporary storage;

  • Default value: Temporary

    MediaName String

    Output filename, up to 64 characters. By default, the system generates the filename. Valid when StorageMode is Permanent.

    ClassId Integer

    Category ID, used to categorize and manage media. You can create a category and obtain the category ID through the Create Category API. Valid when StorageMode is Permanent.

    ExpireTime String

    Expiry date of the output file. The file will be deleted after this time. It never expires by default. Format according to the ISO 8601 standard. For details, see ISO date format description.

    FileType String

    File type, for example, mp4 or flv.

    FileUrl String

    Media file playback address.

    FileContent String

    File content. A return value is returned when UsageType is position_info.

    FileId String

    Media file ID. Valid when StorageMode is Permanent.

    MetaData MediaMetaData

    Metadata of the output video.

    UsageType String

    Purpose type of the file.

    Enumeration values:

    • scene_url: 3D scene file. The FileUrl field has a return value.
    • point_url: Point cloud file. The FileUrl field has a return value.
    • mesh_url: Original mesh model file. The FileUrl field has a return value.
    • mesh_simplified_url: Simplified mesh model file. The FileUrl field has a return value.
    • position_info: Scene spatial position information. The FileContent field has a return value.
    • image_url: Generated image. The FileUrl field has a return value.

    AigcVideoTaskUsage

    Amount of AIGC video tasks.

    Used by actions: DescribeTaskDetail, PullEvents.

    Name Type Description
    InputTokens Integer

    Input the number of tokens.

    Valid only when using the omni version of GV.

    ThoughtTokens Integer

    Number of tokens generated by thinking.

    Valid only when using the omni version of GV.

    InputImageCount Integer

    Number of input images.

    Valid only when using the H3 version of Hailuo.

    InputSeconds Integer

    Duration of the input video.

    Unit: seconds.

    Valid only when using the H3 version of Hailuo.

    OutputSeconds Integer

    Output video duration.

    Unit: seconds.

    Valid only when using the H3 version of Hailuo.

    TotalSeconds Integer

    Total input and output duration.

    Default value: seconds.

    Valid only when using Hailuo H3 version.

    AnimatedGraphicTaskInput

    Type of rotating image tasks

    Used by actions: CreateProcedureTemplate, DescribeTaskDetail, ProcessMedia, PullEvents, ResetProcedureTemplate.

    Name Type Required Description
    Definition Integer Yes Video-to-GIF conversion template ID.
    StartTimeOffset Float Yes Start time offset of the GIF in the video, in seconds.
  • If not set or set to 0, it starts from the starting position of the video.
  • When the value is greater than 0 (assume it is n), it means starting from the nth second of the video;
  • When the value is less than 0 (assuming -n), it means starting from the position n seconds before the video ends.
  • EndTimeOffset Float Yes End time offset of an animated image in the video, in seconds.
  • If not set or set to 0, it will last until the end of a video.
  • When the value is greater than 0 (assuming n), it means it will last until the nth second of the video and then terminate;
  • When the value is less than 0 (assuming -n), it means the video will terminate n seconds before the end.
  • AnimatedGraphicsTemplate

    Rotating image template description.

    Used by actions: DescribeAnimatedGraphicsTemplates.

    Name Type Description
    Definition Integer Unique identifier for rotation diagram template.
    Type String Template type. Valid values:
  • Preset: system-preset template;
  • Custom: custom template.
  • Name String Rotating image template name.
    Comment String Animated image template description information.
    Width Integer Maximum value of the animated gif width (or long edge) in px. Value range: 0 and [128, 4096].
  • If both Width and Height are 0, the resolution is the same as the source.
  • If Width is 0 but Height is not 0, the width will be proportionally scaled.
  • If Width is not 0 but Height is 0, the height will be proportionally scaled.
  • If both Width and Height are not 0, the resolution is as specified by the user.

  • Default value: 0.
    Height Integer Maximum value of the animated gif height (or short side). Value range: 0 and [128, 4096]. Unit: px.
  • If both Width and Height are 0, the resolution is the same as the source.
  • If Width is 0 but Height is not 0, the width will be proportionally scaled.
  • If Width is not 0 but Height is 0, the height will be proportionally scaled.
  • If both Width and Height are not 0, the resolution is as specified by the user.

  • Default value: 0.
    ResolutionAdaptive String Resolution adaptation. Available values:
  • open: enable. At this point, Width represents the long side of the video, and Height indicates the short side of the video;
  • close: closed. At this point, Width represents the width of the video, and Height indicates the height of the video.

  • Default value: open.
    Format String Animated image file format.
    Fps Integer Frame rate.
    Quality Float Image quality.
    CreateTime String Template creation time in ISO date format.
    UpdateTime String Template last modified time in ISO date format.

    AreaCLSTargetInfo

    Log push target.

    Used by actions: DescribeCLSPushTargets, SetCLSPushTarget.

    Name Type Required Description
    CLSRegion String Yes Logset region:
  • ap-guangzhou: Guangzhou;
  • ap-beijing: Beijing;
  • ap-chengdu: Chengdu;
  • ap-chongqing: Chongqing.
  • ap-nanjing: Nanjing;
  • ap-shanghai: Shanghai;
  • ap-singapore: Singapore.
  • TopicId String Yes ID of the destination topic for delivery.
    LogsetId String Yes ID of the target set for submission.
    Switch String No Log delivery status.
    ON: enabled.
    OFF: disabled.

    ArtifactRepairInfo

    Artifact (burr) removal control information.

    Used by actions: CreateEnhanceMediaTemplate, CreateRebuildMediaTemplate, CreateTranscodeTemplate, DescribeTaskDetail, ModifyEnhanceMediaTemplate, ModifyRebuildMediaTemplate, ModifyTranscodeTemplate, PullEvents, RebuildMedia.

    Name Type Required Description
    Switch String Yes Artifact (burr) removal control switch. Available values:
  • ON: enable artifact (burr) removal;
  • OFF: disables artifact (burr) removal.
  • Type String No Artifact (burr) removal type. It is valid only when the artifact (burr) removal control switch is ON. Available values:
  • weak: slightly remove artifacts (burrs);
  • strong: Strong artifact removal (burr).

  • Default value: weak.

    AsrFullTextConfigureInfo

    Control parameters for a speech full-text recognition task.
    Note: This parameter is no longer maintained. It is recommended to use the AsrTranslateConfigure parameter to initiate speech translation recognition (when DstLanguage is not filled in or is an empty string, no translation is performed, and the billing item is the same as full text speech recognition).

    Used by actions: CreateAIRecognitionTemplate, DescribeAIRecognitionTemplates.

    Name Type Required Description
    Switch String Yes

    Voice full-text recognition task switch. Available values:

  • ON: enable intelligent voice full-text recognition task;
  • OFF: disable intelligent voice full-text recognition task.
  • SubtitleFormats Array of String No

    List of generated subtitle file formats. Leave empty or pass an empty array to indicate no subtitle file generation. Available values:

  • vtt: generate WebVTT subtitle file;
  • srt: generate SRT subtitle file.
  • Note: VOD media asset information only supports adding vtt subtitles. Therefore, when and only when SubtitleFormats includes vtt, VOD will add the generated subtitles to media assets.
    SrcLanguage String No

    Media source language. Value range:

  • zh: mandarin
  • en: English
  • ja: Japanese
  • zh-ca: Cantonese
  • Note: Fill in an empty string or leave the parameter blank for automatic recognition (effectiveness difficult to guarantee. It is recommended to fill in the language corresponding to the original media to improve recognition accuracy).

    SubtitleName String No

    Specify subtitle name, length limited to 64 characters. This value will be used for player display. If left blank, VOD will auto generate it.
    Note: This field is valid only when SubtitleFormats includes vtt.

    AsrFullTextConfigureInfoForUpdate

    Speech full-text recognition task control parameters

    Used by actions: ModifyAIRecognitionTemplate.

    Name Type Required Description
    Switch String No Voice full-text recognition task switch. Available values:
  • ON: enable intelligent voice full-text recognition task;
  • OFF: Disable the intelligent voice full-text recognition task.
  • SubtitleFormatsOperation SubtitleFormatsOperation No Subtitle format list operation information.
    SrcLanguage String No Media source language. Valid values:
  • zh: Mandarin;
  • en: English;
  • ja: Japanese;
  • zh-ca: Cantonese.
  • SubtitleName String No Specify subtitle name. Length limit: 64 characters. This value will be used for player display.

    AsrTranslateConfigureInfo

    Speech translation recognition task control parameter

    Used by actions: CreateAIRecognitionTemplate, DescribeAIRecognitionTemplates.

    Name Type Required Description
    Switch String Yes Task switch for speech translation recognition. Available values:
  • ON: enabled
  • OFF: disable.
  • Note: The voice translation recognition task itself will return ASR full text recognition results. To avoid duplicate charges, enabling voice translation recognition and ASR full text recognition feature items simultaneously is forbidden.
    SrcLanguage String No Media source language. This parameter is required when Switch is ON. Value range:
  • zh: Chinese;
  • en: English;
  • ja: Japanese;
  • ko: Korean;
  • vi: Vietnamese;
  • ms: Malay;
  • th: Thai;
  • pt: Portuguese;
  • tr: Turkish;
  • ar: Arabic;
  • es: Spanish;
  • hi: Hindi;
  • fr: French.
  • DstLanguage String No Translation target language. This parameter is valid when Switch is ON.
    If this parameter is not specified or an empty string is entered, it means that only full text recognition is performed without translation. The billing item is the same as that of full text recognition in AsrFullTextConfigure.
    Otherwise, the parameter value range is divided into the following cases:
    When SrcLanguage is zh (Chinese), value range:
  • en: English;
  • ja: Japanese;
  • ko: Korean;
  • fr: French;
  • es: Spanish;
  • it: Italian;
  • de: German;
  • tr: Turkish;
  • ru: Russian;
  • pt: Portuguese;
  • vi: Vietnamese;
  • id: Indonesian;
  • th: Thai;
  • ms: Malay.

  • When SrcLanguage is en, value range:
  • zh: Chinese;
  • ja: Japanese;
  • ko: Korean;
  • fr: French;
  • es: Spanish;
  • it: Italian;
  • de: German;
  • tr: Turkish;
  • ru: Russian;
  • pt: Portuguese;
  • vi: Vietnamese;
  • id: Indonesian;
  • th: Thai;
  • ms: Malay;
  • ar: Arabic;
  • hi: Hindi.

  • When SrcLanguage is ja (Japanese), value range:
  • zh: Chinese;
  • en: English;
  • ko: Korean.

  • When SrcLanguage is ko (Korean), the value range is:
  • zh: Chinese;
  • en: English;
  • ja: Japanese.

  • When SrcLanguage is vi (Vietnamese), ms (Malay), or th (Thai), the value range is:
  • zh: Chinese;
  • en: English.

  • When SrcLanguage is pt (Portuguese), value range:
  • zh: Chinese;
  • en: English;
  • fr: French;
  • es: Spanish;
  • it: Italian;
  • de: German;
  • tr: Turkish;
  • ru: Russian.

  • When SrcLanguage is tr (Turkish), the value ranges from...to...
  • zh: Chinese;
  • en: English;
  • fr: French;
  • es: Spanish;
  • it: Italian;
  • de: German;
  • ru: Russian;
  • pt: Portuguese.

  • When SrcLanguage is es (Spanish), value range:
  • zh: Chinese;
  • en: English;
  • fr: French;
  • it: Italian;
  • de: German;
  • tr: Turkish;
  • ru: Russian;
  • pt: Portuguese.

  • When SrcLanguage is ar (Arabic) or hi (Hindi), value range:
  • en: English.

  • When SrcLanguage is fr (French), value range:
  • zh: Chinese;
  • en: English;
  • es: Spanish;
  • it: Italian;
  • de: German;
  • tr: Turkish;
  • ru: Russian;
  • pt: Portuguese.
  • SubtitleFormats Array of String No Generated subtitle file format list. Leaving it empty or as an empty array means no subtitle file will be generated. Valid values:
  • vtt: Generate a WebVTT subtitle file;
  • srt: generate SRT subtitle file.
  • Note: VOD media asset information only supports adding vtt subtitles. Therefore, when and only when SubtitleFormats includes vtt, VOD will add the generated subtitles to media assets.
    SubtitleName String No Specify subtitle name. Length limited to 64 characters. This value will be used for player display. If left blank, VOD will automatically generate it.
    Note: This field is valid only when SubtitleFormats includes vtt.

    AsrTranslateConfigureInfoForUpdate

    Voice translation recognition control parameters.

    Used by actions: ModifyAIRecognitionTemplate.

    Name Type Required Description
    Switch String No Task switch for speech translation recognition. Value range:
  • ON: enabled
  • OFF: disabled.
  • Note: The voice translation recognition task itself will return the ASR full text recognition result. To avoid duplicate charges, do not enable the voice translation recognition and ASR full text recognition feature items simultaneously.
    SrcLanguage String No Media source language. Valid values:
  • zh: Chinese;
  • en: English;
  • ja: Japanese;
  • ko: Korean;
  • vi: Vietnamese;
  • ms: Malay;
  • th: Thai;
  • pt: Portuguese;
  • tr: Turkish;
  • ar: Arabic;
  • es: Spanish;
  • hi: Hindi;
  • fr: French.
  • DstLanguage String No Target language.
    If this parameter is set to an empty string, it indicates that only full speech recognition is performed without translation (the billing item is the same as AsrFullTextConfigure full speech recognition).
    Otherwise, the value range of this parameter is divided into the following cases:
    When SrcLanguage is zh (Chinese), value range:
  • en: English;
  • ja: Japanese;
  • ko: Korean;
  • fr: French;
  • es: Spanish;
  • it: Italian;
  • de: German;
  • tr: Turkish;
  • ru: Russian;
  • pt: Portuguese;
  • vi: Vietnamese;
  • id: Indonesian;
  • th: Thai;
  • ms: Malay.

  • When SrcLanguage is en, value range:
  • zh: Chinese;
  • ja: Japanese;
  • ko: Korean;
  • fr: French;
  • es: Spanish;
  • it: Italian;
  • de: German;
  • tr: Turkish;
  • ru: Russian;
  • pt: Portuguese;
  • vi: Vietnamese;
  • id: Indonesian;
  • th: Thai;
  • ms: Malay;
  • ar: Arabic;
  • hi: Hindi.

  • When SrcLanguage is ja (Japanese), value ranges from...to...
  • zh: Chinese;
  • en: English;
  • ko: Korean.

  • When SrcLanguage is ko (Korean), value ranges from...to...
  • zh: Chinese;
  • en: English;
  • ja: Japanese.

  • When SrcLanguage is vi (Vietnamese), ms (Malay), or th (Thai), value range:
  • zh: Chinese;
  • en: English.

  • When SrcLanguage is pt (Portuguese), value ranges from...to...
  • zh: Chinese;
  • en: English;
  • fr: French;
  • es: Spanish;
  • it: Italian;
  • de: German;
  • tr: Turkish;
  • ru: Russian.

  • When SrcLanguage is tr (Turkish), value ranges from...to...
  • zh: Chinese;
  • en: English;
  • fr: French;
  • es: Spanish;
  • it: Italian;
  • de: German;
  • ru: Russian;
  • pt: Portuguese.

  • When SrcLanguage is es (Spanish), value range:
  • zh: Chinese;
  • en: English;
  • fr: French;
  • it: Italian;
  • de: German;
  • tr: Turkish;
  • ru: Russian;
  • pt: Portuguese.

  • When SrcLanguage is ar (Arabic) or hi (Hindi), value range:
  • en: English.

  • When SrcLanguage is fr (French), value range:
  • zh: Chinese;
  • en: English;
  • es: Spanish;
  • it: Italian;
  • de: German;
  • tr: Turkish;
  • ru: Russian;
  • pt: Portuguese.
  • SubtitleFormatsOperation SubtitleFormatsOperation No Subtitle format list operation information.
    SubtitleName String No Specify subtitle name, length limited to 64 characters. This value will be used for player display.

    AsrWordsConfigureInfo

    Voice keyword recognition control parameters.

    Used by actions: CreateAIRecognitionTemplate, DescribeAIRecognitionTemplates.

    Name Type Required Description
    Switch String Yes Speech keyword recognition task switch. Available values:
  • ON: enable the speech keyword recognition task;
  • OFF: disables the speech keyword recognition task.
  • LabelSet Array of String No Tag for keyword-based filtering. Specify the tag of keywords to return. If this parameter is not specified or is empty, all results are returned.
    The number of tags can be up to 10, and each tag can contain up to 16 characters.

    AsrWordsConfigureInfoForUpdate

    Voice keyword recognition control parameters.

    Used by actions: ModifyAIRecognitionTemplate.

    Name Type Required Description
    Switch String No Speech keyword recognition task switch. Available values:
  • ON: turn on the speech keyword recognition task;
  • OFF: disables the speech keyword recognition task.
  • LabelSet Array of String No Keyword filtering tag. Specify the tag of keywords to return. If this parameter is left empty or is an empty string, all results are returned.
    The number of tags can be up to 10, and each tag can contain up to 16 characters.

    AudioBeautifyInfo

    Audio beautification configuration.

    Used by actions: CreateTranscodeTemplate, ModifyTranscodeTemplate.

    Name Type Required Description
    Switch String Yes Audio beautification control switch. Available values:
  • ON: enable audio beautification;
  • OFF: disables audio beautification.
  • Types Array of String No Type. Multiple selections allowed. Valid values:
  • declick: noise removal
  • deesser: De-essing

  • Default value: declick.

    AudioDenoiseInfo

    Audio noise reduction control information

    Used by actions: CreateEnhanceMediaTemplate, CreateRebuildMediaTemplate, CreateTranscodeTemplate, DescribeTaskDetail, ModifyEnhanceMediaTemplate, ModifyRebuildMediaTemplate, ModifyTranscodeTemplate, PullEvents, RebuildMedia.

    Name Type Required Description
    Switch String Yes Audio noise reduction control switch. Available values:
  • ON: turn on audio noise reduction;
  • OFF: disable audio noise reduction.
  • Type String No Audio noise reduction type. It is valid only when the audio noise reduction control switch is ON. Available values:
  • normal: Normal audio noise reduction;

  • Default value: normal.

    AudioEnhanceConfig

    Audio enhancement configuration.

    Used by actions: CreateTranscodeTemplate, ModifyTranscodeTemplate.

    Name Type Required Description
    Denoise AudioDenoiseInfo No Audio noise reduction configuration.
    Separate AudioSeparateInfo No Audio separation configuration.
    VolumeBalance AudioVolumeBalanceInfo No Volume equalization configuration.
    Beautify AudioBeautifyInfo No Volume beautification configuration.

    AudioSeparateInfo

    Audio separation configuration.

    Used by actions: CreateTranscodeTemplate, ModifyTranscodeTemplate.

    Name Type Required Description
    Switch String Yes Audio separation control switch. Available values:
  • ON: enable audio separation;
  • OFF: disables audio separation
  • Type String No Scenario type. Valid values:
  • normal: voice and background sound scenario
  • music: singing accompaniment scenario

  • Default value: normal.
    Track String No Output audio track. Available values:
  • vocal: output voice.
  • background: Output background sound when the scenario is normal, and output accompaniment when the scenario is music

  • Default value: vocal.

    AudioTemplateInfo

    Audio stream configuration parameters

    Used by actions: CreateAdaptiveDynamicStreamingTemplate, CreateTranscodeTemplate, DescribeTranscodeTemplates, ModifyAdaptiveDynamicStreamingTemplate.

    Name Type Required Description
    Codec String Yes Audio stream encoding format.
    When the outer parameter Container is mp3, optional values:
  • libmp3lame.

  • When the outer parameter Container is ogg or flac, optional values:
  • flac.

  • When the outer parameter Container is m4a, valid values are:
  • libfdk_aac;
  • libmp3lame;
  • ac3.

  • When the outer parameter Container is mp4 or flv, valid values are:
  • libfdk_aac: more suitable for mp4;
  • libmp3lame: more suitable for flv;
  • mp2.

  • When the outer parameter Container is hls, valid values are:
  • libfdk_aac.

  • When the outer parameter Format is HLS or MPEG-DASH, valid values are:
  • libfdk_aac.

  • When the outer parameter Container is wav, valid values are:
  • pcm16.
  • Bitrate Integer Yes Bitrate of the audio stream. Value range: 0 and [26, 256]. Unit: kbps.
    When the value is 0, it means VOD automatically sets the bitrate.
    SampleRate Integer Yes Sampling rate of the audio stream. Available values:
  • 16000. This is selectable only when Codec is pcm16.
  • 32000
  • 44100
  • 48000

  • Unit: Hz.
    AudioChannel Integer No Audio channel. Valid values:
  • 1: single channel.
  • 2: dual channel.
  • 6: Stereo
  • 0: The number of audio channels remains the same as the original audio

  • When the media encapsulation format is audio (flac, ogg, mp3, and m4a), the number of channels cannot be set to stereo.
    Default value: 2.

    AudioTemplateInfoForUpdate

    Audio stream configuration parameters

    Used by actions: CreateProcedureTemplate, ModifyTranscodeTemplate, ProcessMedia, ResetProcedureTemplate.

    Name Type Required Description
    Codec String No

    Audio stream encoding format.
    When the outer parameter Container is mp3, the valid value is:

  • libmp3lame.
  • When the outer parameter Container is ogg or flac, the valid value is:
  • flac.
  • When the outer parameter Container is m4a, the valid values are:
  • libfdk_aac;
  • libmp3lame;
  • ac3.
  • When the outer parameter Container is mp4 or flv, the valid values are:
  • libfdk_aac: suitable for mp4.
  • libmp3lame: suitable for flv.
  • mp2.
  • When the outer parameter Container is hls, the valid value is:
  • libfdk_aac.
  • When the outer parameter Format is HLS or MPEG-DASH, the valid value is:
  • libfdk_aac.
  • When the outer parameter Container is wav, the valid value is:
  • pcm16.
  • Bitrate Integer No

    Audio stream bitrate, in kbps. Value range: 0 and [26, 256]. When the value is 0, it means VOD automatically sets the bitrate.

    SampleRate Integer No

    Sampling rate of the audio stream. Available values:

  • 16000, selectable only when Codec is pcm16.
  • 32000
  • 44100
  • 48000
  • Unit: Hz.
    AudioChannel Integer No

    Audio channel. Available values:

  • 1: single channel
  • 2: dual-channel
  • 6: stereo
  • 0: the number of audio channels remains consistent with the original audio
  • When the media encapsulation format is an audio format (flac, ogg, mp3, m4a), the number of sound channels cannot be set to stereo.
    StreamSelects Array of Integer No

    Specifies the retained audio tracks for output. All source tracks are retained by default.

    This parameter is valid only when specified in OverrideParameter. In other cases, it does not take effect.

    AudioTrackItem

    Audio segment information on the audio track.

    Used by actions: ComposeMedia.

    Name Type Required Description
    SourceMedia String Yes Media material source of the audio recording clip, which can be:
  • Media file ID for VOD;
  • Download URL of other media files.

  • Note: When using the download URL of another media file as the material source and access control (such as hotlink protection) is enabled, the URL needs to carry access control parameters (such as a hotlink protection signature).
    SourceMediaStartTime Float No Start time of the audio clip in the material file, in seconds. 0 means capturing from the start position of the material. Default value: 0.
    Duration Float No Duration of the audio clip in seconds. Default: same as the material length, which means the entire material is captured.
    TargetDuration Float No Target duration of the audio clip, in seconds.
  • If TargetDuration is not specified or set to 0, it means the target duration is the same as Duration;
  • When TargetDuration is set to a value more than 0, the audio clip will be fast-forwarded or slowed down to make the output segment duration equal to TargetDuration.
  • AudioOperations Array of AudioTransform No Operation performed on the audio clip, for example, audio volume adjustment.

    AudioTransform

    Audio operation

    Used by actions: ComposeMedia.

    Name Type Required Description
    Type String Yes Audio operation type. Valid values:
  • Volume: audio volume adjustment.
  • VolumeParam AudioVolumeParam No Audio volume adjustment parameter. Valid when Type is Volume.

    AudioVolumeBalanceInfo

    Volume equalization configuration.

    Used by actions: CreateTranscodeTemplate, ModifyTranscodeTemplate.

    Name Type Required Description
    Switch String Yes Volume equalization control switch. Available values:
  • ON: enable volume equalization;
  • OFF: disables volume equalization
  • Type String No Type. Valid values:
  • loudNorm: loudness normalization
  • gainControl: reduce abrupt change

  • Default value: loudNorm.

    AudioVolumeParam

    Audio gain adjustment parameter

    Used by actions: ComposeMedia.

    Name Type Required Description
    Mute Integer No Whether to mute. Value range: 0 or 1.
  • 0 means unmuted.
  • 1 means mute.

  • Default value: 0.
    Gain Float No Audio gain. Value range: 0-10.
  • A value greater than 1 means volume increase.
  • Less than 1 means low volume.
  • 0 and 1: means do not change.

  • Default value: 0.

    Authentication

    Timestamp hotlink protection configuration

    Used by actions: CreateCDNDomain, ModifyCDNDomainConfig.

    Name Type Required Description
    Switch String Yes Hotlink protection configuration switch. Value:
  • on: Enable;
  • off: Cache.

  • TypeA AuthenticationTypeA No Timestamp hotlink protection mode A configuration.
    TypeB AuthenticationTypeB No Configuration of timestamp hotlink protection mode B.
    TypeC AuthenticationTypeC No Configuration of timestamp hotlink protection mode C.
    TypeD AuthenticationTypeD No Configuration of timestamp hotlink protection mode D.

    AuthenticationTypeA

    Timestamp hotlink protection mode A configuration;
    The access URL format of timestamp hotlink protection mode A is: http://DomainName/Filename?sign=timestamp-rand-uid-md5hash;
    Among them, timestamp is a decimal UNIX timestamp.
    rand is a random string consisting of 0–100 upper- and lower-case letters and numbers.
    uid is 0;
    md5hash: MD5 (file path-timestamp-rand-uid-custom key).

    Used by actions: CreateCDNDomain, ModifyCDNDomainConfig.

    Name Type Required Description
    SecretKey String Yes Key used for signature calculation.
    Only allow upper- and lower-case letters and digits, with a length of 6–32 characters.
    SignParam String Yes Signature parameter name setting;
    Only allow upper- and lower-case letters, digits, or underscores. The length is 1–100 characters and cannot start with a digit.
    ExpireTime Integer Yes Signature expiration time settings;
    In seconds. Maximum settable value: 630720000.
    FileExtensions Array of String Yes List of filename extensions for authentication/no authentication settings;
    If containing the character *, it indicates all files.
    FilterType String Yes whitelist: allowlist, means to authenticate all types except those in the FileExtensions list.
    blacklist: blocklist, means authentication is only applicable to the types in FileExtensions.
    BackupSecretKey String No Secondary key for signature calculation.
    Only allow upper- and lower-case letters and digits, with a length of 6–32 characters.

    AuthenticationTypeB

    Timestamp hotlink protection mode B configuration

    Used by actions: CreateCDNDomain, ModifyCDNDomainConfig.

    Name Type Required Description
    SecretKey String Yes Key used for signature calculation.
    Only allow upper- and lower-case letters and digits, with a length of 6–32 characters.
    ExpireTime Integer Yes Signature expiration time setting;
    In seconds. The maximum settable value is 630720000.
    FileExtensions Array of String Yes List of filename extensions for authentication/no authentication settings;
    If it contains the character *, it means all files.
    FilterType String Yes whitelist: allowlist, means to authenticate all types except those in the FileExtensions list;
    blacklist: blocklist, means authentication is only applicable to the types in FileExtensions.
    BackupSecretKey String No Secondary key for signature calculation.
    Only allow upper- and lower-case letters and digits, with a length of 6–32 characters.

    AuthenticationTypeC

    Configuration of timestamp hotlink protection mode C.
    The access URL format of timestamp hotlink protection mode C is: http://DomainName/md5hash/timestamp/FileName;
    Among them, timestamp is a hexadecimal UNIX timestamp;
    md5hash: MD5 (custom key + file path + timestamp).

    Used by actions: CreateCDNDomain, ModifyCDNDomainConfig.

    Name Type Required Description
    SecretKey String Yes Key used for signature calculation.
    Only allow upper- and lower-case letters and digits, with a length of 6–32 characters.
    ExpireTime Integer Yes Signature expiration time setting;
    In seconds. The maximum settable value is 630720000.
    FileExtensions Array of String Yes List of filename extensions for authentication/no authentication settings;
    If it contains the character *, it means all files.
    FilterType String Yes whitelist: allowlist, means to authenticate all types except those in the FileExtensions list;
    blacklist: blocklist, means authentication is only applicable to the types in FileExtensions.
    TimeFormat String Yes Timestamp base settings:
  • dec: decimal
  • hex: hexadecimal
  • BackupSecretKey String No Secondary key for signature calculation.
    Only allow upper- and lower-case letters and digits, with a length of 6–32 characters.

    AuthenticationTypeD

    Configuration of timestamp hotlink protection mode D.
    The access URL format of timestamp hotlink protection mode D is: http://DomainName/FileName?sign=md5hash&t=timestamp;
    Among them, timestamp is a decimal or hexadecimal UNIX timestamp;
    md5hash: MD5 (custom key + file path + timestamp).

    Used by actions: CreateCDNDomain, ModifyCDNDomainConfig.

    Name Type Required Description
    SecretKey String Yes Key used for signature calculation.
    Only allow upper- and lower-case letters and digits, with a length of 6–32 characters.
    ExpireTime Integer Yes Signature expiration time setting;
    In seconds. Maximum settable value: 630720000.
    FileExtensions Array of String Yes List of filename extensions for authentication/no authentication settings;
    If it contains the character *, it indicates all files.
    FilterType String Yes whitelist: allowlist, means to authenticate all types except those in the FileExtensions list;
    blacklist: blocklist, means authentication is only applicable to the types in FileExtensions.
    SignParam String Yes Signature parameter name settings;
    Only allow upper- and lower-case letters, digits, or underscores, with a length of 1–100 characters. It cannot start with a digit.
    TimeParam String Yes Timestamp parameter name settings;
    Only allow upper- and lower-case letters, digits, or underscores, with a length of 1–100 characters. It cannot start with a digit.
    TimeFormat String Yes Timestamp base settings:
  • dec: decimal
  • hex: hexadecimal
  • BackupSecretKey String No Secondary key for signature calculation.
    Only allow upper- and lower-case letters and digits, with a length of 6–32 characters.

    AwsPrivateAccess

    Authentication for Aws S3 origin-pull.

    Used by actions: CreateCDNDomain, ModifyCDNDomainConfig.

    Name Type Required Description
    Switch String Yes Toggle for Aws S3 origin-pull authentication. Valid values:
  • on: Enable;
  • off: Cache.
  • AccessKey String No Access ID.
    SecretKey String No Key.
    Region String No Region.
    Bucket String No Bucket Name.

    BeautyEffectItem

    Image beauty effect item.

    Used by actions: CreateProcessImageAsyncTemplate, ModifyProcessImageAsyncTemplate, PullEvents.

    Name Type Required Description
    Switch String No

    Whether to enable beauty effects.

    Enumeration values:

    • ON: On
    • OFF: Off
    Type String No

    Beauty item.

    Value Integer No

    Intensity of beauty effects.

    ResourcePath String No

    Attach a resource path.

    ExtInfo String No

    Additional information.

    BeautyFilterItem

    Beauty filter item.

    Used by actions: CreateProcessImageAsyncTemplate, ModifyProcessImageAsyncTemplate, PullEvents.

    Name Type Required Description
    Switch String No

    Whether the filter is enabled.

    Enumeration values:

    • ON: On
    • OFF: Off
    Type String No

    Filter item.

    Value Integer No

    Filter strength.

    BlackWhiteEdgeConfigureInfo

    Control parameters for video picture black edge, white edge, black screen, and white screen detection.

    Used by actions: CreateQualityInspectTemplate, DescribeQualityInspectTemplates.

    Name Type Required Description
    Switch String Yes Video picture black edge, white edge, black screen, and white screen detection switch. Available values:
  • ON: enabled;
  • OFF: disabled.
  • BlackWhiteEdgeConfigureInfoForUpdate

    Control parameters for video picture black edge, white edge, black screen, and white screen detection.

    Used by actions: ModifyQualityInspectTemplate.

    Name Type Required Description
    Switch String No Video picture black edge, white edge, black screen, and white screen detection switch. Available values:
  • ON: enabled;
  • OFF: disabled
  • BlindWatermarkInput

    Digital watermark parameter type in the MPS task.

    Used by actions: CreateProcedureTemplate, ProcessMedia, ResetProcedureTemplate.

    Name Type Required Description
    Definition Integer Yes Digital watermark template ID.

    BlindWatermarkTemplate

    Digital watermark template details.

    Used by actions: DescribeBlindWatermarkTemplates.

    Name Type Description
    Definition Integer Unique identifier of the digital watermark template.
    Type String Digital watermark type. Valid values:
  • blind-basic: basic copyright digital watermark;
  • blind-nagra: NAGRA forensics watermark.
  • Name String Digital watermark template name.
    TextContent String Text content of the digital watermark template. The length cannot exceed 64 characters.
    Comment String Description information of the digital watermark template.
    CreateTime String Creation time of the digital watermark template in ISO date and time format.
    UpdateTime String Last modification time of the digital watermark template in ISO date and time format.

    BlurConfigureInfo

    Control parameters for video frame blur detection.

    Used by actions: CreateQualityInspectTemplate, DescribeQualityInspectTemplates.

    Name Type Required Description
    Switch String Yes Video frame blur detection switch. Available values:
  • ON: enabled;
  • OFF: disabled.
  • BlurConfigureInfoForUpdate

    Control parameters for video frame blur detection.

    Used by actions: ModifyQualityInspectTemplate.

    Name Type Required Description
    Switch String No Video frame blur detection switch. Available values:
  • ON: enabled
  • OFF: disabled.
  • CDNCertInfo

    https acceleration configuration for the domain name. Disabled by default.

    Used by actions: CreateCDNDomain, ModifyCDNDomainConfig.

    Name Type Required Description
    CertId String No Server certificate ID is automatically generated when hosting a certificate in SSL certificate management.
    Certificate String No Certificate information.
    PrivateKey String No Key information.
    ExpireTime Timestamp ISO8601 No Certificate expiration time;
    No need to fill when used as an input parameter configuration.

    CDNDomainConfig

    Cdn domain configuration information

    Used by actions: CreateCDNDomain, DescribeCDNDomains.

    Name Type Required Description
    Area String Yes Domain acceleration region:
  • mainland: domestic acceleration in China;
  • overseas: acceleration outside China;
  • global: global acceleration.
  • Origin Origin Yes Origin server configuration.
    IpFilter IpFilter No IP allowlist/blocklist configuration.
    UserAgentFilter UserAgentFilter No UA Blocklist/Allowlist Configuration.
    FollowRedirect FollowRedirect No 301/302 origin-pull follow configuration.
    RequestHeader RequestHeader No Request header configuration.
    ResponseHeader ResponseHeader No header configuration.
    Cache Cache No Cache expiration time configuration.
    Https Https No Https configuration.
    Authentication Authentication No Timestamp hotlink protection configuration.
    ForceRedirect ForceRedirect No Forced redirect configuration for access protocols.
    Referer Referer No Referer anti-leech configuration.
    MaxAge MaxAge No Browser cache configuration.
    Ipv6Access Ipv6Access No Ipv6 access configuration.
    Quic Quic No Quic access configuration.
    AwsPrivateAccess AwsPrivateAccess No Authentication configuration for AWS S3 origin-pull.
    OssPrivateAccess OssPrivateAccess No Authentication configuration for origin-pull from Alibaba Cloud OSS.
    HwPrivateAccess HwPrivateAccess No Huawei Cloud object storage origin-pull authentication configuration.
    OthersPrivateAccess OthersPrivateAccess No Authentication configuration for origin-pull from other vendors' object storage.

    CDNDomainConfigForUpdate

    Cdn domain configuration information

    Used by actions: ModifyCDNDomainConfig.

    Name Type Required Description
    Area String No Domain acceleration region:
  • mainland: domestic acceleration in China;
  • overseas: acceleration outside China;
  • global: global acceleration.
  • Origin Origin No Origin server configuration.
    IpFilter IpFilter No IP allowlist/blocklist configuration.
    UserAgentFilter UserAgentFilter No UA Blocklist/Allowlist Configuration.
    FollowRedirect FollowRedirect No 301/302 origin-pull follow configuration.
    RequestHeader RequestHeader No Request header configuration.
    ResponseHeader ResponseHeader No header configuration.
    Cache Cache No Cache expiration time configuration.
    Https Https No Https configuration.
    Authentication Authentication No Timestamp hotlink protection configuration.
    ForceRedirect ForceRedirect No Forced redirect configuration for access protocols.
    Referer Referer No Referer anti-leech configuration.
    MaxAge MaxAge No Browser cache configuration.
    Ipv6Access Ipv6Access No Ipv6 access configuration.
    Quic Quic No Quic access configuration.
    AwsPrivateAccess AwsPrivateAccess No Authentication configuration for AWS S3 origin-pull
    OssPrivateAccess OssPrivateAccess No Authentication configuration for origin-pull from Alibaba Cloud OSS.
    HwPrivateAccess HwPrivateAccess No Huawei Cloud object storage origin-pull authentication configuration.
    OthersPrivateAccess OthersPrivateAccess No Authentication configuration for origin-pull from other vendors' object storage.

    CDNDomainInfo

    cdn domain information

    Used by actions: DescribeCDNDomains.

    Name Type Description
    Domain String Domain name.
    DeployStatus String Deployment state.
    Cname String Cname record.
    CreateTime String Creation time.
    Config CDNDomainConfig cdn domain configuration information.

    CLSLogsetInfo

    CLS logset information

    Used by actions: DescribeCLSLogsets.

    Name Type Description
    LogsetId String Logset ID.
    LogsetName String Logset name.

    CLSTopicInfo

    CLS log topic information.

    Used by actions: DescribeCLSTopics.

    Name Type Description
    TopicId String Log topic ID.
    TopicName String Log topic name.
    LogsetId String Logset ID.

    Cache

    Node cache expiration time configuration

    Used by actions: CreateCDNDomain, ModifyCDNDomainConfig.

    Name Type Required Description
    RuleCache Array of RuleCache No Path cache configuration.

    CacheConfigCache

    Path cache configuration

    Used by actions: CreateCDNDomain, ModifyCDNDomainConfig.

    Name Type Required Description
    Switch String Yes Path cache configuration switch. Valid values:
  • on: Enable;
  • off: Cache.
  • CacheTime Integer Yes Cache expiration time settings. Unit: second. The maximum value is 365 days.
    CompareMaxAge String Yes Advanced cache expiration configuration. When enabled, the max-age value returned by the origin server is compared with the cache expiration time set in CacheRules, and the minimum value is used for node caching. Valid values:
  • on: Enable;
  • off: Cache.
  • IgnoreCacheControl String Yes Force cache. Value:
  • on: Enable;
  • off: Cache.
  • IgnoreSetCookie String Yes Whether to cache the Set-Cookie header and body on the node when the origin server returns the header.
  • on: Enable. Do not cache the header or body;
  • off: disabled, following user-defined node cache rules.
  • CacheConfigFollowOrigin

    Path cache follows the origin server configuration.

    Used by actions: CreateCDNDomain, ModifyCDNDomainConfig.

    Name Type Required Description
    Switch String Yes Path cache follows the origin site configuration switch. Valid values:
  • on: Enable;
  • off: Cache.
  • HeuristicCache HeuristicCache No Heuristic cache configuration.

    CacheConfigNoCache

    Path cache no cache configuration

    Used by actions: CreateCDNDomain, ModifyCDNDomainConfig.

    Name Type Required Description
    Switch String Yes Path cache no cache configuration configuration switch. Value:
  • on: Enable;
  • off: Cache.
  • Revalidate String Yes Always validate with the origin server. Value:
  • on: Enable;
  • off: Cache.
  • Canvas

    Canvas information. In video production, if the source material (video or image) cannot fill the output video window, the set canvas is used to draw the background.

    Used by actions: ComposeMedia, DescribeTaskDetail, PullEvents.

    Name Type Required Description
    Color String No Background color. Valid values:
  • Black: black background
  • White: white background

  • Default value: Black.
    Width Integer No Canvas width, i.e., the output video width. Value range: 0–3840. Unit: px.
    Default value: 0, which means the video width is the same as that of the first video clip on the first video track.
    Height Integer No Canvas height, i.e. the height (or long side) of the output video. Value range: 0–3840. Unit: px.
    Default value: 0, which means the video height is the same as that of the first video clip on the first video track.

    CdnLogInfo

    CDN log information

    Used by actions: DescribeCdnLogs.

    Name Type Description
    Date String

    Date of the log, format: yyyy-MM-dd, for example, 2018-03-01.

    Name String

    Log name, format: date-hour-domain name
    for example, example.com.

    Url String

    Log download link, valid for download within 24 hours.

    StartTime String

    Log start time, in ISO date format.

    EndTime String

    Log end time. Use the ISO date format.

    ChangeClothesConfig

    Parameter configuration for AI outfit change

    Used by actions: CreateSceneAigcImageTask.

    Name Type Required Description
    ClothesFileInfos Array of SceneAigcImageTaskInputFileInfo No

    Input the image list of clothing that need to be replaced. Maximum supported clothing quantity for each type:

    • change_clothes: 4 images;
    • change_clothes_under: 1 image;
    • change_clothes_full_wear: 1 image;
    • change_clothes_top_wear: 1 image;
    • change_clothes_bottom_wear: 1 image;
    Prompt String No

    Prompt for AI clothes changing. Valid only when Type is change_clothes.

    ClassificationConfigureInfo

    Intelligent Classification Task Control Parameters

    Used by actions: CreateAIAnalysisTemplate, DescribeAIAnalysisTemplates.

    Name Type Required Description
    Switch String Yes Intelligent classification task switch. Valid values:
  • ON: enable the intelligent classification task;
  • OFF: disables the intelligent classification task.
  • ClassificationConfigureInfoForUpdate

    Control parameters of intelligent classification tasks

    Used by actions: ModifyAIAnalysisTemplate.

    Name Type Required Description
    Switch String No Intelligent classification task switch. Valid values:
  • ON: enable the intelligent classification task;
  • OFF: Disable the intelligent categorization task.
  • ClipFileInfo2017

    Video clipping result file information (2017 version)

    Used by actions: DescribeTaskDetail, PullEvents.

    Name Type Description
    ErrCode Integer Error code.
  • 0: success;
  • Other values: Failed.
  • Message String Error description.
    FileId String Output the file ID of the target file.
    FileUrl String File address of the output target file.
    FileType String Output file type of the target file.

    ClipTask2017

    Video editing task information. This structure is only used for tasks initiated by the 2017 version of the video editing API.

    Used by actions: DescribeTaskDetail, PullEvents.

    Name Type Description
    TaskId String Video clipping task ID.
    SrcFileId String Video editing task source file ID.
    FileInfo ClipFileInfo2017 Video editing output file information.

    CloneVoiceAsyncInput

    Input for a voice cloning task.

    Used by actions: DescribeTaskDetail.

    Name Type Description
    AudioUrl String

    Cloning audio URL. Valid when AudioData is empty.

    AudioFileId String

    fileId of the input audio

    LanguageBoost String

    Audio language

    ExtParam String

    Extended parameters in the format of a JSON string.

    CloneVoiceAsyncOutput

    Timbre clone task output.

    Used by actions: DescribeTaskDetail.

    Name Type Description
    VoiceId String

    Voice ID.

    DemoAudio String

    Audition audio.

    ExtInfo String

    Extended information.

    CloneVoiceAsyncTask

    Voice cloning task.

    Used by actions: DescribeTaskDetail.

    Name Type Description
    TaskId String

    Task ID.

    Status String

    Task status. Valid values:

  • PROCESSING: Processing;
  • FINISH: Completed.
  • ErrCode Integer

    Error code. 0 indicates success, and other values indicate failure:

  • 40000: Invalid parameters. Check the input parameters.
  • 60000: Source file error (for example, video data corruption). Confirm whether the source file is normal.
  • 70000: Internal service error. Retry is recommended.
  • Message String

    Error message.

    ErrCodeExt String

    Error code. An empty string indicates that the task is successful, while other values indicate that the task has failed. For valid values, see the list of video processing error codes.

    Input CloneVoiceAsyncInput

    Voice type clone task input information.

    Output CloneVoiceAsyncOutput

    Voice type clone task output information.

    SessionId String

    Identifier for deduplication. If a request with the same identifier has been sent within the past seven 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 String

    Source context. This is used to pass user request information. The task status change callback returns the value of this field. The maximum length is 1000 characters.

    Progress Integer

    Pull upload progress. Value range: [0-100].

    ColorEnhanceInfo

    Color enhancement control parameters

    Used by actions: CreateEnhanceMediaTemplate, CreateProcessImageAsyncTemplate, CreateRebuildMediaTemplate, CreateTranscodeTemplate, DescribeTaskDetail, ModifyEnhanceMediaTemplate, ModifyProcessImageAsyncTemplate, ModifyRebuildMediaTemplate, ModifyTranscodeTemplate, PullEvents, RebuildMedia.

    Name Type Required Description
    Switch String Yes

    Color enhancement control switch

    Enumeration values:

    • ON: Enable color enhancement
    • OFF: Disable color enhancement
    Type String No

    Color enhancement type. Valid only when the color enhancement control switch is ON. Available values:

  • weak: light color enhancement;
  • normal: normal color enhancement;
  • strong: strong color enhancement.
  • Default value: weak.

    ComplexAdaptiveDynamicStreamingTask

    Adaptive bitrate task information.

    Used by actions: DescribeTaskDetail, PullEvents.

    Name Type Description
    TaskId String Task ID.
    Status String Task status. Valid values:
  • PROCESSING: Processing;
  • FINISH: completed

  • ComplexAdaptiveDynamicStreamingTaskResultSet Array of ComplexAdaptiveDynamicStreamingTaskResult Execution status and results of the adaptive bitrate stream task. Each element corresponds to an adaptive bitrate template.

    ComplexAdaptiveDynamicStreamingTaskAudioInput

    Input parameter of the multilingual audio stream for an adaptive bitrate streaming task.

    Used by actions: CreateComplexAdaptiveDynamicStreamingTask.

    Name Type Required Description
    FileId String Yes

    Media ID of the audio source. The first audio stream in the media source file is always used, while video streams and other audio streams (if any) will be ignored.

    Name String Yes

    Audio stream name in the output adaptive bitrate stream. Length limit: 16 characters.

    Language String Yes

    Language of the audio stream in the output adaptive bitrate stream. Length limit: 16 characters. It must comply with RFC5646.

    Default String No

    Whether to set as the default audio for adaptive bitrate. Parameter values:

  • YES: set as default audio;
  • NO: not set as default audio (default value).
  • AudioTrackIdx Integer No

    Audio track serial number, indicating which audio track in the audio source to select. Counting begins from 0. The default value is 0, which means selecting the audio track positioned towards the front.

    ComplexAdaptiveDynamicStreamingTaskInput

    Input parameter of an adaptive bitrate streaming task.

    Used by actions: DescribeTaskDetail, PullEvents.

    Name Type Required Description
    StreamPara ComplexAdaptiveDynamicStreamingTaskStreamPara Yes Adaptive bitrate parameters.

    ComplexAdaptiveDynamicStreamingTaskOutput

    Output result of the adaptive bitrate streaming task.

    Used by actions: DescribeTaskDetail, PullEvents.

    Name Type Description
    Definition Integer Adaptive bitrate template ID.
    Format String Adaptive bitrate packaging format. Available values:
  • HLS;
  • MPEG-DASH.
  • DrmType String DRM solution type. Available values:
  • Empty string: unencrypted;
  • SimpleAES;
  • Widevine;
  • FairPlay.
  • Url String Playback address of the adaptive bitrate stream.

    ComplexAdaptiveDynamicStreamingTaskResult

    Adaptive bitrate task information.

    Used by actions: DescribeTaskDetail, PullEvents.

    Name Type Description
    Status String Task status. Valid values:
  • PROCESSING: Processing;
  • SUCCESS: Completed;
  • FAIL: failure.
  • ErrCodeExt String Error code. An empty string indicates success, and other values indicate failure. For values, see Video Processing Error Codes.
    Message String Error message.
    Progress Integer Transcoding progress, with a value range of [0-100].
    Input ComplexAdaptiveDynamicStreamingTaskInput Input of an adaptive bitrate task.
    Output ComplexAdaptiveDynamicStreamingTaskOutput Output of the adaptive bitrate streaming task.

    ComplexAdaptiveDynamicStreamingTaskStreamPara

    Stream parameters of an adaptive bitrate streaming task.

    Used by actions: CreateComplexAdaptiveDynamicStreamingTask, DescribeTaskDetail, PullEvents.

    Name Type Required Description
    Definition Integer Yes Adaptive bitrate template ID.

    ComplexAdaptiveDynamicStreamingTaskSubtitleInput

    Input parameter of adaptive bitrate task multilingual subtitles.

    Used by actions: CreateComplexAdaptiveDynamicStreamingTask.

    Name Type Required Description
    Id String Yes Subtitle ID. This subtitle must belong to the input main media of the adaptive bitrate task.
    Default String No Whether to set as the default subtitle for adaptive bitrate. Value:
  • YES: set as default subtitle;
  • NO: not set as default subtitle (default value).
  • ComposeMediaOutput

    Output media file information.

    Used by actions: ComposeMedia, DescribeTaskDetail, PullEvents.

    Name Type Required Description
    FileName String Yes Filename, up to 64 characters.
    Description String No Description. The maximum length is 128 characters.
    ClassId Integer No Category ID, used to categorize and manage media. You can create a category and obtain the category ID through the create category API.
  • Default value: 0, indicate other categories.
  • ExpireTime String No Expiry date of the output file. The file will be deleted after this time. It never expires by default. The format follows the ISO 8601 standard. For details, see ISO date format description.
    Container String No Muxing format. Available values: mp4 and mp3. Among them, mp3 is for audio-only files.
    VideoStream OutputVideoStream No Output video information.
    AudioStream OutputAudioStream No Output audio content.
    RemoveVideo Integer No Indicates whether to remove video data. Available values:
  • 0: reserved
  • 1: Remove

  • Default value: 0.
    RemoveAudio Integer No Indicates whether to remove audio data. Available values:
  • 0: reserved
  • 1: Remove

  • Default value: 0.

    ComposeMediaTask

    Media file production task information

    Used by actions: DescribeTaskDetail, PullEvents.

    Name Type Description
    TaskId String Task ID.
    Status String Task stream status. Valid values:
  • PROCESSING: Processing;
  • FINISH: completed
  • ErrCode Integer Error code.
  • 0: success;
  • Other value: failure.
  • Message String Error message.
    Progress Integer Progress of the media file creation task, in the range of [0,100].
    Input ComposeMediaTaskInput Input of a media file creation task.
    Output ComposeMediaTaskOutput Output of the media file creation task.
    MetaData MediaMetaData Metadata of the output video.
    SessionId String An identifier for deduplication. If there has been a request with the same identifier within the past seven days, an error will be returned for the current request. The maximum length is 50 characters. Leaving it blank or using a null string indicates no deduplication is required.
    SessionContext String Source context, which is used to pass through the user request information. The callback for task flow status changes will return the value of this field. The maximum length is 1,000 characters.

    ComposeMediaTaskInput

    Input of a media file creation task.

    Used by actions: DescribeTaskDetail, PullEvents.

    Name Type Description
    Tracks Array of MediaTrack Input media track list, including multiple track information composed of materials such as video, audio, and image.
    Canvas Canvas Canvas used when making video files.
    Output ComposeMediaOutput Output media file information.

    ComposeMediaTaskOutput

    Output of the media file creation task.

    Used by actions: DescribeTaskDetail, PullEvents.

    Name Type Description
    FileType String File type, for example, mp4 and mp3.
    FileId String Media file ID.
    FileUrl String Media file playback address.
    MediaName String File name, up to 64 characters.
    ClassId Integer Category ID, used to categorize and manage media. You can create a category and obtain the category ID through the create category API.
  • Default value: 0, indicate other categories.
  • ExpireTime String Expiry date of the output file. The file will be deleted after this time. It never expires by default. The format is based on the ISO 8601 standard. For details, see ISO date format description.

    ConcatFileInfo2017

    Source file information for video stitching (2017)

    Used by actions: DescribeTaskDetail, PullEvents.

    Name Type Description
    ErrCode Integer Error code.
  • 0: success;
  • Other value: failure.
  • Message String Error message.
    FileId String ID of the source file for video splicing.
    FileUrl String Addresses of the source files for video stitching.
    FileType String Format of the source file for video splicing.

    ConcatTask2017

    Video splicing task information. This structure is only used for tasks initiated via the 2017 video splicing API.

    Used by actions: DescribeTaskDetail, PullEvents.

    Name Type Description
    TaskId String Video splicing task ID.
    FileInfoSet Array of ConcatFileInfo2017 Source file information for video splicing.

    ContentReviewTemplateItem

    Audio/video moderation template details

    Used by actions: DescribeContentReviewTemplates.

    Name Type Description
    Definition Integer Unique identifier of an audio and video review template.
    Name String Audio/video moderation template name. Length limit: 64 characters.
    Comment String Description of the audio and video review template, with a length limit of 256 characters.
    PornConfigure PornConfigureInfo Control parameters for authentication involving offensive information.
    TerrorismConfigure TerrorismConfigureInfo Authentication involves control parameters for unsafe information.
    PoliticalConfigure PoliticalConfigureInfo Control parameters for authentication involving inappropriate information.
    ProhibitedConfigure ProhibitedConfigureInfo Prohibited control parameters. Restricted content includes:
  • Abusive language;
  • Drug-related violation.
  • UserDefineConfigure UserDefineConfigureInfo Control parameters of custom audio/video moderation.
    ReviewWallSwitch String Whether the audio/video moderation result enters the audio/video moderation wall (for manual review of the audio/video moderation result).
  • ON: Yes;
  • OFF: no
  • ScreenshotInterval Float Frame interception interval in seconds. If not specified, the default frame interval is 1 second, with a minimum value of 0.5 seconds.
    CreateTime String Template creation time in ISO date format (https://www.tencentcloud.com/document/product/266/11732?from_cn_redirect=1#I).
    UpdateTime String Template last modified time, use ISO date format.

    CopyRightWatermarkInput

    Copyright watermark parameters

    Used by actions: CreateProcedureTemplate, ProcessMedia, ResetProcedureTemplate.

    Name Type Required Description
    Text String Yes Copyright information. Maximum length: 200 characters.

    CoverBySnapshotTaskInput

    Task input parameter type for screencapturing for cover image of a video

    Used by actions: CreateProcedureTemplate, DescribeTaskDetail, ProcessMedia, PullEvents, ResetProcedureTemplate.

    Name Type Required Description
    Definition Integer Yes Time point screenshot template ID.
    PositionType String Yes Screenshot type. Valid values:
  • Time: time point screencapturing
  • Percent: screenshot by percentage
  • PositionValue Float Yes Screenshot position:
  • For time point screenshot taking, this value indicates the second of the specified video to use as the cover
  • For percentage-based screenshots, this value indicates the percentage of the video used as the cover.
  • WatermarkSet Array of WatermarkInput No Watermark list. Multiple image or text watermarks up to a maximum of 10 are supported.

    CoverBySnapshotTaskOutput

    Task output type for screencapturing for cover image of a video

    Used by actions: DescribeTaskDetail, PullEvents.

    Name Type Description
    CoverUrl String URL of a cover.

    CoverConfigureInfo

    Intelligent Cover Task Control Parameters

    Used by actions: CreateAIAnalysisTemplate, DescribeAIAnalysisTemplates.

    Name Type Required Description
    Switch String Yes Intelligent cover task switch. Available values:
  • ON: enable intelligent thumbnail generation;
  • OFF: disables the intelligent thumbnail generation task.
  • CoverConfigureInfoForUpdate

    Intelligent cover task control parameters

    Used by actions: ModifyAIAnalysisTemplate.

    Name Type Required Description
    Switch String No Intelligent cover task switch. Available values:
  • ON: enable intelligent thumbnail generation;
  • OFF: disables the intelligent thumbnail generation task.
  • CrashScreenConfigureInfo

    Control parameters for video screen glitch detection.

    Used by actions: CreateQualityInspectTemplate, DescribeQualityInspectTemplates.

    Name Type Required Description
    Switch String Yes Video image distortion detection switch. Available values:
  • ON: enabled;
  • OFF: disabled.
  • CrashScreenConfigureInfoForUpdate

    Control parameters for distortion detection in video footage.

    Used by actions: ModifyQualityInspectTemplate.

    Name Type Required Description
    Switch String No Screen glitch detection switch for video footage. Available values:
  • ON: enabled;
  • OFF: disabled
  • CreateAigcAdvancedCustomElementInput

    Create a custom user-submitted input.

    Used by actions: DescribeTaskDetail, PullEvents.

    Name Type Description
    ElementName String

    Subject name.

    ElementDescription String

    Subject description.

    ReferenceType String

    Subject reference method.

    ElementVoiceId String

    Main timbre.

    ElementVideoList String

    Subject reference video.

    ElementImageList String

    Main body reference image.

    TagList String

    Subject configuration tag.

    CreateAigcAdvancedCustomElementOutput

    Create custom subject callback output

    Used by actions: DescribeTaskDetail, PullEvents.

    Name Type Description
    InfoList Array of AdvancedElementInfo

    Custom entity list.

    CreateAigcAdvancedCustomElementTask

    Create custom subject task information.

    Used by actions: DescribeTaskDetail, PullEvents.

    Name Type Description
    TaskId String

    Task ID.

    Status String

    Task status.

    Enumeration values:

    • PROCESSING: Processing
    • FINISH: Completed
    ErrCode Integer

    Error code. A non-zero error code is returned when a source error occurs. If 0 is returned, use the ErrCode of each specific task.

    ErrCodeExt String

    Extended error code. An empty string indicates success, while other values indicate failure.

    Message String

    Error message.

    Progress Integer

    Task progress, in the range of [0,100].

    Input CreateAigcAdvancedCustomElementInput

    Input information for creating a custom AIGC subject task.

    Output CreateAigcAdvancedCustomElementOutput

    Create AIGC custom subject task output information.

    SessionId String

    Identifier for deduplication. If a request with the same identifier has been sent within the past seven 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 String

    Source context. This is used to pass user request information. The task status change callback returns the value of this field. The maximum length is 1000 characters.

    CreateAigcAudioCloneInput

    Create AIGC voice clone input information.

    Used by actions: DescribeTaskDetail.

    Name Type Description
    AudioFileInfo AigcAudioCloneInputFileInfo

    Original audio file. The model will use the voice type of the audio passed in this parameter as an example to replicate the timbre.

    VoiceId String

    Custom Voice ID.

    Text String

    Clone the audition parameter.

    PromptAudioFileInfo AigcAudioCloneInputFileInfo

    Sample audio for voice replication.

    PromptText String

    Text content corresponding to the sample audio.

    Payload String

    Pass-through parameter.

    CreateAigcAudioCloneOutput

    Create AIGC voice clone output information.

    Used by actions: DescribeTaskDetail.

    Name Type Description
    TaskId String

    Task ID.

    State String

    Processing status.

    VoiceId String

    User-defined voice_id. It is not returned if the task fails.

    DemoAudio String

    If the trial text is passed in the request body, this parameter returns the audio audition in link format. Otherwise, this parameter is empty.

    Payload String

    Pass-through parameter passed in for this call.

    CreatedAt String

    Task creation time.

    CreateAigcAudioCloneTask

    Create AIGC voice clone task information.

    Used by actions: DescribeTaskDetail.

    Name Type Description
    TaskId String

    Task ID.

    Status String

    Task status. Valid values:

  • PROCESSING: Processing;
  • FINISH: Completed.
  • ErrCode Integer

    Error code. A non-zero error code is returned when a source error occurs. If 0 is returned, please use the ErrCode of each specific task.

    ErrCodeExt String

    Extended error code. A null string indicates success, while other values indicate failure.

    Message String

    Error message.

    Progress Integer

    Task progress. Value range: [0-100].

    Input CreateAigcAudioCloneInput

    Input information of the AIGC audio clone task.

    Output CreateAigcAudioCloneOutput

    Output information of the AIGC audio clone task.

    SessionId String

    Identifier for deduplication. If a request with the same identifier has been sent within the past seven 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 String

    Source context. This is used to pass user request information. The task status change callback returns the value of this field. The maximum length is 1000 characters.

    CreateAigcCustomVoiceInput

    Create custom voice type callback input information.

    Used by actions: DescribeTaskDetail, PullEvents.

    Name Type Description
    VoiceName String

    Timbre name.

    VoiceUrl String

    Link to obtain the timbre data file.

    VideoId String

    Historic work ID, which can provide audio material by referring to historic works.

    CreateAigcCustomVoiceOutput

    Callback output information for creating a custom voice type.

    Used by actions: DescribeTaskDetail, PullEvents.

    Name Type Description
    InfoList Array of CustomVoiceInfo

    Custom timbre list.

    CreateAigcCustomVoiceTask

    Create custom voice type task information.

    Used by actions: DescribeTaskDetail, PullEvents.

    Name Type Description
    TaskId String

    Task ID.

    Status String

    Task status.

    Enumeration values:

    • PROCESSING: Processing
    • FINISH: Completed
    ErrCode Integer

    Error code. A non-zero error code is returned when a source error occurs. If 0 is returned, use the ErrCode of each specific task.

    ErrCodeExt String

    Extended error code. A null string indicates success, while other values indicate failure.

    Message String

    Error message.

    Progress Integer

    Task progress, value ranges from 0 to 100.

    Input CreateAigcCustomVoiceInput

    Create AIGC custom voice type input information.

    Output CreateAigcCustomVoiceOutput

    Create AIGC custom voice type output message.

    SessionId String

    Identifier for deduplication. If a request with the same identifier has been sent within the past seven 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 String

    Source context. This is used to pass user request information. The task status change callback returns the value of this field. The maximum length is 1000 characters.

    CreateAigcSubjectInput

    Input information for creating a principal.

    Used by actions: DescribeTaskDetail.

    Name Type Description
    SubjectName String

    Subject name.

    SubjectImages Array of String

    Main image.

    SubjectVideos Array of String

    Main video.

    VoiceId String

    Main voice ID.

    CreateAigcSubjectOutput

    Create subject output information.

    Used by actions: DescribeTaskDetail.

    Name Type Description
    SubjectId String

    Principal ID.

    SubjectInfo String

    Entity information.

    CreateAigcSubjectTask

    Create principal task information.

    Used by actions: DescribeTaskDetail.

    Name Type Description
    TaskId String

    Task ID.

    Status String

    Task status.

    Enumeration values:

    • PROCESSING: Processing
    • FINISH: Completed
    ErrCode Integer

    Error code. A non-zero error code is returned when a source error occurs. If 0 is returned, use the ErrCode of each specific task.

    ErrCodeExt String

    Extended error code. An empty string indicates success, while other values indicate failure.

    Message String

    Error message.

    Input CreateAigcSubjectInput

    Create AIGC subject input information.

    Output CreateAigcSubjectOutput

    Create AIGC subject output information.

    SessionId String

    Identifier for deduplication. If a request with the same identifier has been sent within the past seven 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 String

    Source context. This is used to pass user request information. The task status change callback returns the value of this field. The maximum length is 1000 characters.

    CreateImageSpriteTask2017

    Video image sprite task. This structure is only used for tasks initiated by the 2017 capture CSS sprites API.

    Used by actions: DescribeTaskDetail, PullEvents.

    Name Type Description
    TaskId String

    Screenshot image sprite task ID.

    ErrCode Integer

    Error code

  • 0: Successful;
  • Other values: Failed.
  • Message String

    Error message.

    FileId String

    Capture the file ID of CSS sprites.

    Definition Integer

    Image sprite specification. See image sprite screenshot template.

    TotalCount Integer

    Total number of small images in the sprite sheet.

    ImageSpriteUrlSet Array of String

    Capture the domain names or IP addresses output by CSS sprites.

    WebVttUrl String

    Sprite sheet sub-image position and temporal relationship WebVtt file address.

    CustomVoiceInfo

    Custom tone information.

    Used by actions: DescribeTaskDetail, PullEvents.

    Name Type Description
    VoiceId String

    Voice ID.

    VoiceInfo String

    Tone information.

    DNSVerifyInfo

    DNS resolution verification info

    Used by actions: CreateDomainVerifyRecord.

    Name Type Description
    SubDomain String Sub-parsing.
    Record String Parse the value.
    RecordType String Parsing type.

    DailyPlayStatInfo

    Playback statistics.

    Used by actions: DescribeDailyMediaPlayStat, DescribeDailyMostPlayedStat.

    Name Type Description
    Date String

    Date of playing the media file, in ISO date format.

    FileId String

    Media file ID.

    PlayTimes Integer

    Number of plays.

    Traffic Integer

    Playback traffic volume, unit: byte.

    DescribeAigcFaceInfoAsyncInput

    Asynchronously fetch AIGC human face information input.

    Used by actions: DescribeTaskDetail, PullEvents.

    Name Type Description
    FileInfos Array of AigcFaceInputFileInfo

    Input video information that requires face information.

    DescribeAigcFaceInfoAsyncOutput

    Asynchronously fetch AIGC human face information output

    Used by actions: DescribeTaskDetail, PullEvents.

    Name Type Description
    FaceInfoSet Array of AigcFaceInfo

    Face information.

    DescribeAigcFaceInfoAsyncTask

    Asynchronously fetch AIGC human face information tasks.

    Used by actions: DescribeTaskDetail, PullEvents.

    Name Type Description
    TaskId String

    Task ID.

    Status String

    Task status. Valid values:

  • PROCESSING: Processing;
  • FINISH: Completed.
  • ErrCode Integer

    Error code. A non-zero error code is returned when a source error occurs. If 0 is returned, use the ErrCode of each specific task.

    ErrCodeExt String

    Expansion error code.

    Parameter format: expansion error code.

    Enumeration values:

    • RequestLimitExceeded: API call exceeds the concurrency limit.
    • InvalidParameterValue: parameter error.
    • InternalError: internal error.
    • FailedOperation: operation failed.
    Message String

    Error message.

    Progress Integer

    Task progress, value ranges from 0 to 100.

    Input DescribeAigcFaceInfoAsyncInput

    Asynchronously fetch the input information of AIGC face information tasks.

    Output DescribeAigcFaceInfoAsyncOutput

    Asynchronously fetch the output information of the AIGC human face information task.

    SessionId String

    Identifier for deduplication. If a request with the same identifier has been sent within the past seven 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 String

    Source context. This is used to pass user request information. The task status change callback returns the value of this field. The maximum length is 1000 characters.

    DescribeFileAttributesTask

    File attribute acquisition task information

    Used by actions: DescribeTaskDetail, PullEvents.

    Name Type Description
    TaskId String Task ID.
    Status String Task status. Valid values are PROCESSING, SUCCESS, and FAIL.
    ErrCode Integer Error code. 0 indicates success. Additional values indicate failure:
  • 40000: Invalid input parameters. Check the input parameters;
  • 60000: Source file error (for example, video data corruption). Confirm whether the source file is normal;
  • 70000: internal service error. Retry is recommended.
  • ErrCodeExt String Error code. An empty string indicates success, and other values indicate failure. For values, see Video Processing Error Codes.
    Message String Error message.
    Progress Integer Task progress. Value range: [0-100].
    FileId String Media file ID.
    Output DescribeFileAttributesTaskOutput Output of a media file attribute retrieval task.
    SessionId String An identifier for deduplication. If there has been a request with the same identifier within the past seven days, an error will be returned for the current request. The maximum length is 50 characters. Leaving it blank or using a null string indicates no deduplication is required.
    SessionContext String Source context, which is used to pass through the user request information. The callback for task flow status changes will return the value of this field. The maximum length is 1,000 characters.

    DescribeFileAttributesTaskOutput

    File attribute retrieval task output

    Used by actions: DescribeTaskDetail, PullEvents.

    Name Type Description
    Md5 String Md5 value of the media file.
    Sha1 String Sha1 value of the media file.

    DesignVoiceAsyncInput

    Timbre design task input.

    Used by actions: DescribeTaskDetail.

    Name Type Description
    Prompt String

    Voice description.

    VoiceSettings VoiceSettings

    Tone information

    PreviewText String

    Trial text.

    ExtParam String

    Extended parameters in the format of a JSON string.

    DesignVoiceAsyncOutput

    Timbre design task output.

    Used by actions: DescribeTaskDetail.

    Name Type Description
    VoiceId String

    Voice ID.

    TrialAudio String

    Audition audio.

    DesignVoiceAsyncTask

    Timbre design task.

    Used by actions: DescribeTaskDetail.

    Name Type Description
    TaskId String

    Task ID.

    Status String

    Task status. Valid values:

  • PROCESSING: Processing;
  • FINISH: Completed.
  • ErrCode Integer

    Error code. 0 indicates success, and additional values indicate failure:

  • 40000: invalid input parameters. Check the input parameters;
  • 60000: source file error (for example, video data damage). Confirm whether the source file is normal;
  • 70000: internal service error. Retry is recommended.
  • Message String

    Error message.

    ErrCodeExt String

    Error code. An empty string indicates success, and other values indicate failure. For values, see Video Processing Error Codes.

    Input DesignVoiceAsyncInput

    Timbre design task input information.

    Output DesignVoiceAsyncOutput

    Timbre design task output information.

    SessionId String

    Identifier for deduplication. If a request with the same identifier has been sent within the past seven 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 String

    Source context. This is used to pass user request information. The task status change callback returns the value of this field. The maximum length is 1000 characters.

    Progress Integer

    Pull upload progress. Value range: [0-100].

    DiffusionEnhanceInfo

    LLM enhancement configuration.

    Used by actions: CreateTranscodeTemplate, ModifyTranscodeTemplate.

    Name Type Required Description
    Switch String Yes Large model enhancement switch. Available values:
  • ON: enabled
  • OFF: disabled.
  • Type String No Strength type. It is valid only when the large model enhancement control switch is ON. Available values:
  • weak: weak;
  • normal: Normal;
  • strong: Strong.

  • Default value: normal.

    DomainCLSTargetInfo

    Push a domain name to a CLS destination.

    Used by actions: DescribeCLSPushTargets.

    Name Type Description
    Domain String Domain name.
    ChineseMainlandCLSTargetInfo AreaCLSTargetInfo Log push target in the Chinese mainland.
    OutsideChineseMainlandCLSTargetInfo AreaCLSTargetInfo Log push targets outside the Chinese mainland.

    DomainDetailInfo

    Domain name information

    Used by actions: DescribeVodDomains.

    Name Type Description
    Domain String

    Domain name.

    AccelerateAreaInfos Array of AccelerateAreaInfo

    Acceleration region information.

    DeployStatus String

    Deployment state. Valid values:

  • Online: online;
  • Deploying: deploying;
  • Locked: locked. In this state, deployment changes cannot be made to that domain name.
  • HTTPSConfig DomainHTTPSConfig

    HTTPS configuration information.

    UrlSignatureAuthPolicy UrlSignatureAuthPolicy

    Key hotlink protection configuration message.

    RefererAuthPolicy RefererAuthPolicy

    Referer hotlink protection configuration message.

    CreateTime String

    The time when the domain name is added to the Tencent Cloud VOD system.

  • Format according to the ISO 8601 standard. For details, see ISO date format description.
  • QUICConfig DomainQUICConfig

    Domain name QUIC configuration message.

    IPFilterPolicy IPFilterPolicy

    IP access restriction configuration information.

    Type String

    Domain type. Valid values:

  • VOD: domain name distributed using the VOD product;
  • EdgeOne: domain name distributed using the EdgeOne product.
  • DomainHTTPSConfig

    HTTPS configuration info of the domain name

    Used by actions: DescribeVodDomains.

    Name Type Required Description
    CertExpireTime String Yes

    Certificate expiration time.

  • Format according to the ISO 8601 standard. For details, see ISO date format description.
  • Parameter format: YYYY-MM-DDThh:mm:ss+08:00

    CloudCertId String No

    Certificate ID in Tencent Cloud SSL product.

    DomainQUICConfig

    QUIC configuration message of the domain name

    Used by actions: DescribeVodDomains, ModifyVodDomainConfig.

    Name Type Required Description
    Status String Yes QUIC configuration status. Available values:
  • Enabled: enablement;
  • Disabled: Disabled.
  • DrmStreamingsInfo

    DRM adaptive bitrate stream playback information

    Used by actions: CreateSuperPlayerConfig, DescribeSuperPlayerConfigs.

    Name Type Required Description
    SimpleAesDefinition Integer No Adaptive bitrate streaming template ID with the protection type SimpleAES.
    WidevineDefinition Integer No Adaptive bitrate streaming template ID with Widevine protection type.
    FairPlayDefinition Integer No Adaptive bitstreaming template ID with FairPlay protection type.

    DrmStreamingsInfoForUpdate

    DRM adaptive bitrate stream playback information modification object

    Used by actions: ModifySuperPlayerConfig.

    Name Type Required Description
    SimpleAesDefinition Integer No Adaptive bitstreaming template ID with SimpleAES protection type.
    WidevineDefinition Integer No Adaptive bitrate streaming template ID with Widevine protection type.
    FairPlayDefinition Integer No Adaptive bitrate streaming template ID with FairPlay protection type.

    DynamicRangeInfo

    Visual dynamic range information.

    Used by actions: LiveRealTimeClip, SimpleHlsClip.

    Name Type Description
    Type String Frame dynamic range information. Valid values:
  • SDR: Standard Dynamic Range;
  • HDR: High Dynamic Range.
  • HDRType String High dynamic range type. Valid when Type is HDR. Currently supports the following valid values:
  • hdr10: refers to the hdr10 standard;
  • hlg: refers to the hlg standard.
  • EditMediaFileInfo

    Edit information of VOD video files

    Used by actions: DescribeTaskDetail, EditMedia, PullEvents.

    Name Type Required Description
    FileId String Yes Video ID.
    StartTimeOffset Float No Start time offset of video editing, in seconds.
    EndTimeOffset Float No End time offset of video editing, in seconds.

    EditMediaOutputConfig

    Output of the result file of video editing.

    Used by actions: EditMedia.

    Name Type Required Description
    MediaName String No Output filename, up to 64 characters. By default, the system generates the filename.
    Type String No Output file format. Available values: mp4, hls. mp4 is selected by default.
    ClassId Integer No Category ID, used to categorize and manage media. You can create a category and obtain the category ID through the create category API.
  • Default value: 0, indicate other categories.
  • ExpireTime String No Expiry date of the output file. The file will be deleted after this time. It never expires by default. The format is according to the ISO 8601 standard. For details, see ISO date format description.
    VideoStream EditMediaVideoStream No Output video information.
    TEHDConfig EditMediaTEHDConfig No TSC transcoding parameters.

    EditMediaStreamInfo

    Edit video stream information.

    Used by actions: DescribeTaskDetail, EditMedia, PullEvents.

    Name Type Required Description
    StreamId String Yes Stream ID of the recording
    StartTime String No Start time of stream clipping in ISO date format.
    EndTime String No End time of stream clipping, in ISO date format.

    EditMediaTEHDConfig

    Parameter configuration for top speed Codec in video editing.

    Used by actions: EditMedia.

    Name Type Required Description
    Type String Yes Top speed Codec type. Available values:
  • TEHD-100: top speed Codec-100;
  • OFF: disables top speed Codec.
  • If not specified, OFF is used.
    MaxVideoBitrate Integer No Maximum video bitrate. Valid when Type is set to top speed Codec.
    Leave it empty or set it to 0 to let VOD automatically set the bitrate cap.

    EditMediaTask

    Edit video task information.

    Used by actions: DescribeTaskDetail, PullEvents.

    Name Type Description
    TaskId String Task ID.
    Status String Task flow status. Valid values:
  • PROCESSING: Processing;
  • FINISH: completed
  • ErrCode Integer Error code. 0 indicates success. Other values indicate failure:
  • 40000: invalid parameters. Check the input parameters;
  • 60000: Source file error (for example, video data corruption). Confirm whether the source file is normal;
  • 70000: internal service error. Retry is recommended.
  • ErrCodeExt String Error code. An empty string indicates that the task is successful, and other values indicate that the task has failed. For specific values, see Video Processing Error Codes.
    Message String Error message.
    Progress Integer Video editing task progress, in the range of [0,100].
    Input EditMediaTaskInput Input for a video editing task.
    Output EditMediaTaskOutput Output of the video editing task.
    MetaData MediaMetaData Metadata of the output video.
    ProcedureTaskId String Task ID of the task type Procedure. If a task flow template (ProcedureName) is specified when initiating a video editing (https://www.tencentcloud.com/document/api/266/34783?from_cn_redirect=1) task, the task is initiated when the task flow template specifies one or more of MediaProcessTask, AiAnalysisTask, and AiRecognitionTask.
    ReviewAudioVideoTaskId String Task ID of the ReviewAudioVideo task type. If a task flow template (ProcedureName) is specified when initiating a video editing task (https://www.tencentcloud.com/document/api/266/34783?from_cn_redirect=1), the task is initiated when the task flow template specifies ReviewAudioVideoTask.
    SessionId String An identifier for deduplication. If there has been a request with the same identifier within the past seven days, an error will be returned for the current request. The maximum length is 50 characters. Leaving it blank or using a null string indicates no deduplication is required.
    SessionContext String Source context, which is used to pass through the user request information. The callback for task flow status changes will return the value of this field. The maximum length is 1,000 characters.

    EditMediaTaskInput

    Input of the video editing task.

    Used by actions: DescribeTaskDetail, PullEvents.

    Name Type Description
    InputType String Source type of the input video. Valid values: File and Stream.
    FileInfoSet Array of EditMediaFileInfo Input video file information. This field has a value when InputType is File.
    StreamInfoSet Array of EditMediaStreamInfo Input stream information. This field has a value when InputType is Stream.

    EditMediaTaskOutput

    Output of video editing tasks.

    Used by actions: DescribeTaskDetail, PullEvents.

    Name Type Description
    FileType String File type, for example, mp4 and flv.
    FileUrl String Media file playback address.
    FileId String Media file ID.
    MediaName String Output filename, up to 64 characters. By default, the system generates a filename.
    ClassId Integer Category ID, used to categorize and manage media. You can create a category and obtain the category ID through the create category API.
  • Default value: 0, indicate other categories.
  • ExpireTime String Expiry date of the output file. The file will be deleted after this time. It never expires by default. The format follows the ISO 8601 standard. For details, see ISO date format description.

    EditMediaVideoStream

    Video stream configuration information

    Used by actions: EditMedia.

    Name Type Required Description
    Codec String No Encoding format for video streams. Optional values:
  • libx264: H.264 encoding;
  • libx265: H.265 encoding;
  • av1: AOMedia Video 1 encoding;
  • H.266: H.266 encoding.
  • Bitrate Integer No Bitrate of video stream. Value range: 0 and [128, 100000]. Unit: kbps.
    When the value is 0 or not specified, VOD automatically sets the bitrate.
    ResolutionAdaptive String No Resolution adaptation. Available values:
  • open: enabled. At this point, Width represents the long side of the video, and Height represents the short side of the video;
  • close: closed. At this point, Width represents the video width, and Height indicates the video height.

  • Default value: open.
    Width Integer No Maximum value of the video stream width (or long edge) in px. Value range: 0 and [128, 4096].
  • If both Width and Height are 0, the base resolution is used.
  • If Width is 0 but Height is not 0, the width will be scaled based on the benchmark resolution ratio.
  • If Width is not 0 but Height is 0, the height will be scaled based on the benchmark resolution ratio.
  • If both Width and Height are not 0, the resolution is as specified by the user.

  • Default value: 0.
    Height Integer No Maximum height (or short side) of the video stream. Value range: 0 and [128, 4096]. Unit: px.
  • If both Width and Height are 0, the base resolution is used.
  • If Width is 0 but Height is not 0, the width will be scaled based on the benchmark resolution ratio.
  • If Width is not 0 but Height is 0, the height will be scaled based on the benchmark resolution ratio.
  • If both Width and Height are not 0, the resolution is as specified by the user.

  • Default value: 0.
    Fps Integer No Video frame rate. Value range: [0, 100]. Unit: Hz.
    When the value is 0, the frame rate is automatically set for the video.
    Default value: 0.

    ElementReferInfo

    Principal reference information.

    Used by actions: CreateAigcCustomElement.

    Name Type Required Description
    ImageUrl String No Reference image URLs of the subject from different perspectives.
    Image format: .jpg, .jpeg, and .png are supported.
    Image file size must not exceed 10 MB. Image width and height must not be less than 300 px. Image aspect ratio must be between 1:2.5 and 2.5:1.

    EmptyTrackItem

    Empty track segment used as a placeholder on the timeline. If a period of silence is required between two audio clips, you can use EmptyTrackItem as a placeholder.

    Used by actions: ComposeMedia.

    Name Type Required Description
    Duration Float Yes Duration, in seconds.

    EnhanceConfig

    Audio/video enhancement configuration

    Used by actions: CreateAdaptiveDynamicStreamingTemplate, CreateTranscodeTemplate, DescribeTranscodeTemplates, ModifyAdaptiveDynamicStreamingTemplate.

    Name Type Required Description
    VideoEnhance VideoEnhanceConfig No Video enhancement configuration.
    AudioEnhance AudioEnhanceConfig No Audio enhancement configuration.

    EnhanceConfigForUpdate

    Audio/video enhancement configuration

    Used by actions: ModifyTranscodeTemplate.

    Name Type Required Description
    VideoEnhance VideoEnhanceConfig No Video enhancement configuration.
    AudioEnhance AudioEnhanceConfig No Audio enhancement configuration.

    EnhanceMediaQualityOutputConfig

    Output file of the rebuild media generation result.

    Used by actions: EnhanceMediaQuality.

    Name Type Required Description
    MediaName String No Output filename, up to 64 characters. By default, the system assigns a generated filename.
    ClassId Integer No Category ID, used to categorize and manage media. You can call the Create Category API to create a category and obtain the category ID.
  • Default value: 0, indicate other categories.
  • ExpireTime String No Expiry date of the output file. The file will be deleted after this time. Default value: permanent, no expiration. Format according to the ISO 8601 standard. For details, see ISO date format description.

    EventContent

    Event notification content. Among them, TranscodeCompleteEvent, ConcatCompleteEvent, ClipCompleteEvent, CreateImageSpriteCompleteEvent, and SnapshotByTimeOffsetCompleteEvent are event notifications for tasks initiated via 2017 API-compatible interfaces.

    Used by actions: PullEvents.

    Name Type Description
    EventHandle String

    Event handler. The caller must call ConfirmEvents to acknowledge that the message has been received. The confirmation is valid for 30 seconds. After expiration, the event can be retrieved again.

    EventType String

    Supported event types:

  • NewFileUpload: video upload completed;
  • ProcedureStateChanged: task flow status change;
  • FileDeleted: video deletion completed;
  • RestoreMediaComplete: video retrieval completion;
  • PullComplete: video pull completion;
  • EditMediaComplete: video editing completed;
  • SplitMediaComplete: video splitting completed;
  • ComposeMediaComplete: media file creation completion;
  • WechatMiniProgramPublishComplete: WeChat Mini Program Publishing Completed.
  • RemoveWatermark: intelligent watermark removal completion.
  • RebuildMediaComplete: audio and video quality rebirth completion event (not recommended).
  • ReviewAudioVideoComplete: audio/video moderation completed;
  • ExtractTraceWatermarkComplete: Traceability watermark extraction completed;
  • ExtractCopyRightWatermarkComplete: Extracting copyright watermark completion;
  • DescribeFileAttributesComplete: file attribute acquisition completion;
  • QualityInspectComplete: audio and video quality inspection completed;
  • QualityEnhanceComplete: audio and video quality rebirth task completion;
  • PersistenceComplete: edit persistence completion;
  • ComplexAdaptiveDynamicStreamingComplete: complex adaptive bitstream task completion.
  • ProcessMediaByMPSComplete: MPS video processing completed.
  • AigcImageTaskComplete: AIGC image generation task completed.
  • AigcVideoTaskComplete: AIGC video generation task completed.
  • AigcHunyuan3DTaskComplete: AIGC Hunyuan 3D task completed.
  • DescribeAigcFaceInfoAsyncComplete: asynchronously fetch AIGC face information task completed.
  • Event types compatible with the 2017 version:
  • TranscodeComplete: video transcoding completion;
  • ConcatComplete: video splicing completion;
  • ClipComplete: video editing completion;
  • CreateImageSpriteComplete: Video thumbnail capture completion;
  • CreateSnapshotByTimeOffsetComplete: video screenshot by time point.
  • FileUploadEvent FileUploadTask

    Video upload completion event. Valid when the event type is NewFileUpload.

    ProcedureStateChangeEvent ProcedureTask

    Task flow status change event. Valid when the event type is ProcedureStateChanged.

    FileDeleteEvent FileDeleteTask

    File deletion event. Valid when the event type is FileDeleted.

    PullCompleteEvent PullUploadTask

    Video pull completion event. Valid when the event type is PullComplete.

    EditMediaCompleteEvent EditMediaTask

    Video editing completion event. Valid when the event type is EditMediaComplete.

    SplitMediaCompleteEvent SplitMediaTask

    Video splitting completion event. Valid when the event type is SplitMediaComplete.

    ComposeMediaCompleteEvent ComposeMediaTask

    Media file creation task completion event. Valid when the event type is ComposeMediaComplete.

    ClipCompleteEvent ClipTask2017

    Video editing completion event. Valid when the event type is ClipComplete.

    TranscodeCompleteEvent TranscodeTask2017

    Video transcoding completion event. Valid when the event type is TranscodeComplete.

    CreateImageSpriteCompleteEvent CreateImageSpriteTask2017

    Video thumbnail capture completion event. Valid when the event type is CreateImageSpriteComplete.

    ConcatCompleteEvent ConcatTask2017

    Video splicing completion event. Valid when the event type is ConcatComplete.

    SnapshotByTimeOffsetCompleteEvent SnapshotByTimeOffsetTask2017

    Video screenshot by time point completion event. Valid when the event type is CreateSnapshotByTimeOffsetComplete.

    WechatPublishCompleteEvent WechatPublishTask

    WeChat Publishing Completion Event, valid when the event type is WechatPublishComplete.

    WechatMiniProgramPublishCompleteEvent WechatMiniProgramPublishTask

    WeChat Mini Program Publishing Task Completion Event. Valid when the event type is WechatMiniProgramPublishComplete.

    RemoveWatermarkCompleteEvent RemoveWatermarkTask

    Intelligent Watermark Removal Completion Event, valid when the event type is RemoveWatermark.

    RestoreMediaCompleteEvent RestoreMediaTask

    Video retrieval completion event. Valid when the event type is RestoreMediaComplete.

    RebuildMediaCompleteEvent RebuildMediaTask

    Audio and video quality rebirth completion event. Valid when the event type is RebuildMediaComplete.

    ExtractTraceWatermarkCompleteEvent ExtractTraceWatermarkTask

    Traceability watermark extraction completion event. Valid when the event type is ExtractTraceWatermarkComplete.

    ExtractCopyRightWatermarkCompleteEvent ExtractCopyRightWatermarkTask

    Copyright watermark extraction completion event, valid when the event type is ExtractCopyRightWatermarkComplete.

    ReviewAudioVideoCompleteEvent ReviewAudioVideoTask

    Audio/video moderation completed event. Valid when the event type is ReviewAudioVideoComplete.

    ReduceMediaBitrateCompleteEvent ReduceMediaBitrateTask

    This field is invalid.

    DescribeFileAttributesCompleteEvent DescribeFileAttributesTask

    File attribute acquisition completion event. Valid when the event type is DescribeFileAttributesComplete.

    QualityInspectCompleteEvent QualityInspectTask

    Audio and video quality detection completion event. Valid when the event type is QualityInspectComplete.

    QualityEnhanceCompleteEvent QualityEnhanceTask

    Audio and video quality rebirth completion event. Valid when the event type is QualityEnhanceComplete.

    MediaCastStatusChangedEvent MediaCastEvent

    Media forwarding status change event, valid when the event type is MediaCastStatusChanged.

    PersistenceCompleteEvent PersistenceCompleteTask

    Editing solidification completion event. Valid when the event type is PersistenceComplete.

    ComplexAdaptiveDynamicStreamingCompleteEvent ComplexAdaptiveDynamicStreamingTask

    Adaptive bitrate task information. Valid only when EventType is ComplexAdaptiveDynamicStreamingComplete.

    ProcessMediaByMPSCompleteEvent ProcessMediaByMPS

    MPS video processing task information. Valid only when EventType is ProcessMediaByMPSComplete.

    AigcImageCompleteEvent AigcImageTask

    AIGC image generation task information. Valid only when EventType is AigcImageTaskComplete.

    AigcVideoCompleteEvent AigcVideoTask

    Information of the AIGC video generation task. Valid only when EventType is AigcVideoTaskComplete.

    ExtractBlindWatermarkComplete ExtractBlindWatermarkTask

    Extract digital watermark information. Valid only when EventType is ExtractBlindWatermarkComplete.

    SceneAigcImageCompleteEvent SceneAigcImageTask

    AIGC scenario-based image generation task info. Valid only when EventType is SceneAigcImageCompleteEvent.

    ProcessImageAsyncCompleteEvent ProcessImageAsyncTask

    Image asynchronous task processing information. Valid only when EventType is ProcessImageAsyncCompleteEvent.

    CreateAigcAdvancedCustomElementCompleteEvent CreateAigcAdvancedCustomElementTask

    AIGC custom entity information. This field has a value only when EventType is CreateAigcAdvancedCustomElementCompleteEvent.

    CreateAigcCustomVoiceCompleteEvent CreateAigcCustomVoiceTask

    AIGC custom tone information. This field has a value only when EventType is CreateAigcCustomVoiceCompleteEvent.

    DescribeAigcFaceInfoAsyncCompleteEvent DescribeAigcFaceInfoAsyncTask

    Asynchronously fetch AIGC face information. This field has a value only when EventType is DescribeAigcFaceInfoAsyncComplete.

    AigcHunyuan3DCompleteEvent AigcHunyuan3DTask

    AIGC Hunyuan 3D task information. This field has a value only when EventType is AigcHunyuan3DTaskComplete.

    ExtractBlindWatermarkInputInfo

    Extraction blind watermark input information

    Used by actions: DescribeTaskDetail, ExtractBlindWatermark, PullEvents.

    Name Type Required Description
    Type String Yes Digital watermark extraction input type. Available values:
  • FILEID: file media asset ID;
  • URL: file URL;
  • FileId String No Media asset file ID to extract
    Url String No url of the video file to extract

    ExtractBlindWatermarkTask

    Extraction task information of video digital watermark

    Used by actions: DescribeTaskDetail, PullEvents.

    Name Type Description
    TaskId String Media processing task ID.
    Status String Task stream status. Valid values:
  • WAITING: waiting.
  • PROCESSING: Processing;
  • FINISH: completed
  • ErrCode Integer Error code. 0: Success. Other values: Failure.
    Message String Error message.
    InputInfo ExtractBlindWatermarkInputInfo File input information for digital watermark extraction.
    Type String Digital watermark type. Available values:
  • blind-basic: basic copyright digital watermark;
  • blind-ab: ab copyright digital watermark.
  • IsDetected Boolean Tag whether a watermark is detected. If this parameter is true, the Result field will return the watermark extraction Result. If this parameter is false, the Result field will not be returned.
    Result String Extracted digital watermark content. This field will not be returned if no watermark is detected.
    ResultUV String Player's ID extracted from the traceability watermark, represented in hexadecimal, 6 digits in total.
    ExtractBlindWatermarkConfig ExtractBlindWatermarkTaskConfig Configuration for digital watermark extraction.
    SessionContext String Source context, which is used to pass through the user request information. The callback for task flow status changes will return the value of this field. The maximum length is 1,000 characters.
    SessionId String Identifier for deduplication. If a request with the same identifier has been sent within the past seven 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.

    ExtractBlindWatermarkTaskConfig

    Extract the digital watermark task configuration for video transcoding

    Used by actions: DescribeTaskDetail, ExtractBlindWatermark, PullEvents.

    Name Type Required Description
    SegmentDuration Integer Yes Valid when the digital watermark extraction type is blind-abseq. Used to specify the segment duration of the input video. Unit: ms.
    If left empty, the default segment duration is 5 seconds.

    ExtractCopyRightWatermarkTask

    Copyright Watermark Extraction Task.

    Used by actions: DescribeTaskDetail, PullEvents.

    Name Type Description
    TaskId String Task ID.
    Status String Task status. Valid values:
  • PROCESSING: Processing;
  • FINISH: completed
  • ErrCode Integer Error code. 0 indicates success, and other values indicate failure:
  • 40000: invalid input parameters. Check the input parameters;
  • 60000: Source file error (for example, video data damage). Confirm whether the source file is normal;
  • 70000: internal service error. Retry is recommended.
  • Message String Error message.
    ErrCodeExt String Error code. An empty string indicates success, and other values indicate failure. For values, see Video Processing Error Codes.
    Input ExtractCopyRightWatermarkTaskInput Input information of the copyright watermark extraction task.
    Output ExtractCopyRightWatermarkTaskOutput Output information of the copyright watermark extraction task.
    SessionId String An identifier for deduplication. If there has been a request with the same identifier within the past seven days, an error will be returned for the current request. The maximum length is 50 characters. Leaving it blank or using a null string indicates no deduplication is required.
    SessionContext String Source context, which is used to pass through the user request information. The callback for task flow status changes will return the value of this field. The maximum length is 1,000 characters.

    ExtractCopyRightWatermarkTaskInput

    Input of the Copyright Watermark Extraction Task

    Used by actions: DescribeTaskDetail, PullEvents.

    Name Type Description
    Url String URL of the media requiring watermark extraction.

    ExtractCopyRightWatermarkTaskOutput

    Extract copyright watermark output information

    Used by actions: DescribeTaskDetail, PullEvents.

    Name Type Description
    Text String Copyright information.

    ExtractTraceWatermarkTask

    Source watermark extraction task.

    Used by actions: DescribeTaskDetail, PullEvents.

    Name Type Description
    TaskId String Task ID.
    Status String Task status. Valid values:
  • PROCESSING: Processing;
  • FINISH: completed
  • ErrCode Integer Error code. 0 indicates success, and other values indicate failure:
  • 40000: Invalid input parameter. Check the input parameter;
  • 60000: source file error (for example, video data damage). Confirm whether the source file is normal;
  • 70000: internal service error. Retry is recommended.
  • Message String Error message.
    ErrCodeExt String Error code. An empty string indicates success, and other values indicate failure. For values, see Video Processing Error Codes.
    Input ExtractTraceWatermarkTaskInput Input information of the source watermark extraction task.
    Output ExtractTraceWatermarkTaskOutput Output information of the source watermark extraction task.
    SessionId String An identifier for deduplication. If there has been a request with the same identifier within the past seven days, an error will be returned for the current request. The maximum length is 50 characters. Leaving it blank or using a null string indicates no deduplication is required.
    SessionContext String Source context, which is used to pass through the user request information. The callback for task flow status changes will return the value of this field. The maximum length is 1,000 characters.

    ExtractTraceWatermarkTaskInput

    Extraction traceability watermark input

    Used by actions: DescribeTaskDetail, PullEvents.

    Name Type Description
    Url String URL of the media requiring watermark extraction.
    FileId String Media file ID. Original media file ID corresponding to the Url.

    ExtractTraceWatermarkTaskOutput

    Extract traceability watermark output information

    Used by actions: DescribeTaskDetail, PullEvents.

    Name Type Description
    Uv String Player's ID, represented in hexadecimal, 6 digits in total.

    FaceConfigureInfo

    Face recognition task control parameter

    Used by actions: CreateAIRecognitionTemplate, DescribeAIRecognitionTemplates.

    Name Type Required Description
    Switch String Yes

    Face recognition task switch. Available values:

  • ON: enable intelligent face recognition task;
  • OFF: disable intelligent face recognition task.
  • Score Float No

    Face recognition filter score. When the recognition result reaches this score or above, the recognition result will be returned. Default: 95 points. Value range: 0-100.

    DefaultLibraryLabelSet Array of String No

    Filter tag for default characters, specifying the tags of default characters to return. If not filled or left empty, all default character results will be returned. Available tag values:

  • entertainment: entertainment star;
  • sport: sports celebrity;
  • politician: relevant people.
  • UserDefineLibraryLabelSet Array of String No

    Filter tags for user-defined characters, specifying the tags of user-defined characters to return. If not specified or empty, all user-defined character results are returned.
    The number of tags can be up to 100, and each tag can be up to 16 characters in length.

    FaceLibrary String No

    Figure library selection. Available values:

  • Default: use the default figure library;
  • UserDefine: use a user-defined figure library.
  • All: use both the default and user-defined figure libraries.
  • Default value: All, use the system default figure library and user-defined figure library.

    FaceConfigureInfoForUpdate

    Face recognition task control parameter

    Used by actions: ModifyAIRecognitionTemplate.

    Name Type Required Description
    Switch String No

    Face recognition task switch. Available values:

  • ON: enable intelligent face recognition task;
  • OFF: disable intelligent face recognition task.
  • Score Float No

    Face recognition filter score. When the recognition result reaches this score or above, the recognition result will be returned. Value range: 0-100.

    DefaultLibraryLabelSet Array of String No

    Default character filter tag, specify the tag of the default character to return. If not filled or empty, all default character results are returned. Available tag values:

  • entertainment: entertainment star;
  • sport: sports celebrity;
  • politician: relevant people.
  • UserDefineLibraryLabelSet Array of String No

    User-defined character filter tag, specify the tag of the user-defined character to return. If not specified or empty, all customized figure results are returned.
    The number of tags can be up to 100, and each tag can contain up to 16 characters.

    FaceLibrary String No

    Figure library selection. Available values:

  • Default: use default figure library;
  • UserDefine: use user-defined figure library.
  • All: use default and user-defined figure libraries at the same time.
  • FaceEnhanceInfo

    Face enhancement control

    Used by actions: CreateEnhanceMediaTemplate, CreateProcessImageAsyncTemplate, CreateRebuildMediaTemplate, DescribeTaskDetail, ModifyEnhanceMediaTemplate, ModifyProcessImageAsyncTemplate, ModifyRebuildMediaTemplate, PullEvents, RebuildMedia.

    Name Type Required Description
    Switch String Yes Face enhancement control switch. Available values:
  • ON: enable face enhancement;
  • OFF: disables face enhancement.
  • Intensity Float No Face enhancement strength. Valid only when the face enhancement control switch is ON. Value range: 0.0-1.0.
    Default value: 0.0.

    FaceRecognitionInfo

    Media information for face recognition

    Used by actions: DescribeMediaInfos, SearchMedia.

    Name Type Description
    FaceRecognitionTasks Array of FaceRecognitionTask

    Face recognition task list

    FaceRecognitionOutputFileInfo

    Face recognition output file information

    Used by actions: DescribeMediaInfos, SearchMedia.

    Name Type Description
    FileType String

    Face recognition output file type

    Enumeration values:

    • Output: Result output of task generation. The file corresponds to the result returned by the face recognition task, generated in JSON format.
    Url String

    URL of the face recognition output file

    FaceRecognitionTask

    Face recognition task

    Used by actions: DescribeMediaInfos, SearchMedia.

    Name Type Description
    Definition Integer

    Face recognition template No.

    OutputFile Array of FaceRecognitionOutputFileInfo

    Output file information

    FastEditMediaFileInfo

    Input media type for quick media edit operations

    Used by actions: FastEditMedia.

    Name Type Required Description
    FileId String Yes Media ID.
    AudioVideoType String Yes Audio and video type for operation. Optional values:
  • Transcode: transcode;
  • Original: original audio/video.

  • Note: The audio and video to operate must be in HLS format.
    TranscodeDefinition Integer No Valid when AudioVideoType is Transcode. It indicates the transcoding template ID for media operation.
    StartTimeOffset Float No Media editing start offset time, in seconds.
    EndTimeOffset Float No Media editing end time offset, in seconds.

    FileContent

    Stored file in VOD.

    Used by actions: ListFiles.

    Name Type Description
    Key String Object key.
    LastModified String Last modification time of the object in ISO 8601 format, for example, 2019-05-24T10:56:40Z.
    ETag String Entity Tag is an information Tag that identifies the object content upon creation. It can be used to check whether the object content has changed.
    Size Integer Object size in bytes.
    StorageClass String For enumeration values, please refer to the storage type document, for example, STANDARD_IA and ARCHIVE.
    FileId String Unique identifier of the media file corresponding to this file.
    Category String File category:
  • Video: video file
  • Audio: audio file
  • Image: image file
  • Other: other files
  • FileType String Optional values:
    -OriginalFiles: source file
    - TranscodeFiles: transcoded file
    -AdaptiveDynamicStreamingFiles: Transcode to an adaptive bitrate stream file
    - SubtitleFiles: subtitle file.
    - SampleSnapshotFiles: sampled screenshot files
    - ImageSpriteFiles: image sprite screenshot files
    - SnapshotByTimeOffsetFiles: time point screenshot files.
    Definition Integer Video template ID. For template definition, see Transcoding Template.
    SubtitleID String Subtitle ID.
    Value only when FileType is SubtitleFiles.

    FileDeleteResultItem

    File deletion result information

    Used by actions: PullEvents.

    Name Type Description
    FileId String File ID deleted.
    DeleteParts Array of MediaDeleteItem Part of the files deleted this time.

    FileDeleteTask

    File deletion task

    Used by actions: PullEvents.

    Name Type Description
    FileIdSet Array of String

    List of file IDs to delete.

    FileDeleteResultInfo Array of FileDeleteResultItem

    List of result information for deleting files.

    FileReviewInfo

    File moderation information.

    Used by actions: DescribeMediaInfos, SearchMedia.

    Name Type Description
    MediaReviewInfo ReviewInfo Media review information*.

    * Only show the review result info initiated by Audio/Video Moderation (ReviewAudioVideo) or Image Moderation (ReviewImage).
    CoverReviewInfo ReviewInfo Media cover review info*.

    * Only show the review result info initiated by Audio/Video Moderation (ReviewAudioVideo) or Image Moderation (ReviewImage).

    FileUploadTask

    File upload task information

    Used by actions: PullEvents.

    Name Type Description
    FileId String Unique file ID.
    MediaBasicInfo MediaBasicInfo Basic information of the media file generated after upload completion.
    ProcedureTaskId String Task ID for the task type Procedure. If A task (Procedure) is specified during video upload, the task is initiated when the task flow template specifies one or more of MediaProcessTask, AiAnalysisTask, or AiRecognitionTask.
    ReviewAudioVideoTaskId String Task ID of the ReviewAudioVideo task type. If a task procedure is specified during video upload (https://www.tencentcloud.com/document/product/266/33475?from_cn_redirect=1#.E4.BB.BB.E5.8A.A1.E5.8F.91.E8.B5.B7), the task is initiated when the task flow template specifies ReviewAudioVideoTask.
    MetaData MediaMetaData Metadata, including size, duration, video stream information, and audio stream information.

    FileVerifyInfo

    File verification information

    Used by actions: CreateDomainVerifyRecord.

    Name Type Description
    FileVerifyUrl String File validation URL guide.
    FileVerifyDomains Array of String File verification domain name list.
    FileVerifyName String File verification file name.

    FollowRedirect

    Automatic Follow Configuration for 301/302 status codes during origin-pull, disabled by default

    Used by actions: CreateCDNDomain, ModifyCDNDomainConfig.

    Name Type Required Description
    Switch String Yes Follow origin configuration switch. Valid values:
  • on: Enable;
  • off: Cache.
  • ForceRedirect

    Forced redirect configuration for access protocols. Disabled by default.

    Used by actions: CreateCDNDomain, ModifyCDNDomainConfig.

    Name Type Required Description
    Switch String Yes Access the forced redirect configuration switch. Value:
  • on: Enable;
  • off: Cache.
  • RedirectType String No Access forced redirect type:
  • http: Force HTTP redirection
  • https: Force HTTPS redirect
  • RedirectStatusCode Integer No Status code returned for forced redirection. Supports 301 and 302.
    CarryHeaders String No Whether to return the added header during forced redirection.

    FrameRateWithDenInfo

    Frame interpolation frame rate configuration.

    Used by actions: CreateTranscodeTemplate, ModifyTranscodeTemplate.

    Name Type Required Description
    Switch String Yes Frame interpolation frame rate configuration control switch. Available values:
  • ON: enabled
  • OFF: disabled
  • FpsNum Integer No Frame rate numerator. Value range: non-negative number, which should be less than 100 when divided by the denominator, and in the unit of Hz. The default value is 0. Note: For transcoding, this parameter will override the Fps in the VideoTemplate.
    FpsDen Integer No Frame rate denominator. Value range: equal to or greater than 1. Default value: 1.

    FrameTagConfigureInfo

    Intelligent frame-specific tagging task control parameter.

    Used by actions: CreateAIAnalysisTemplate, DescribeAIAnalysisTemplates.

    Name Type Required Description
    Switch String Yes Switch for the intelligent frame-specific tagging task. Available values:
  • ON: enable the intelligent frame tagging task;
  • OFF: Disable the intelligent frame-specific tagging task.
  • ScreenshotInterval Float No Frame interception interval in seconds. If not specified, the default frame interval is 1 second. Minimum value: 0.5 seconds.

    FrameTagConfigureInfoForUpdate

    Intelligent frame tagging task control parameter

    Used by actions: ModifyAIAnalysisTemplate.

    Name Type Required Description
    Switch String No Switch for the intelligent frame-specific tagging task. Available values:
  • ON: enable intelligent frame-specific tagging task;
  • OFF: Disable the intelligent frame-specific tagging task.
  • ScreenshotInterval Float No Frame interception interval in seconds. Minimum value: 0.5 seconds.

    HDRInfo

    High dynamic range type control parameter.

    Used by actions: CreateEnhanceMediaTemplate, CreateRebuildMediaTemplate, CreateTranscodeTemplate, DescribeTaskDetail, ModifyEnhanceMediaTemplate, ModifyRebuildMediaTemplate, ModifyTranscodeTemplate, PullEvents, RebuildMedia.

    Name Type Required Description
    Switch String Yes HDR type control switch. Available values:
  • ON: enable high dynamic range type conversion;
  • OFF: Disable high dynamic range type switch.
  • Type String No High dynamic range type. Valid values:
  • hdr10: refers to the hdr10 standard;
  • hlg: refers to the hlg standard.


  • Note:
  • Valid only when the high dynamic range type control switch is ON;
  • Valid when the video stream encoding format Codec of the video output parameter is specified as libx264 or libx265 in the target parameter.
  • HeadTailConfigureInfo

    Control parameter for video opening and closing credits recognition tasks

    Used by actions: CreateAIRecognitionTemplate, DescribeAIRecognitionTemplates.

    Name Type Required Description
    Switch String Yes Video opening and closing credits recognition task switch. Available values:
  • ON: Enable the intelligent video start and end recognition task;
  • OFF: disables intelligent video opening and closing credits recognition tasks.
  • HeadTailConfigureInfoForUpdate

    Control parameter for the video opening and closing credits recognition task

    Used by actions: ModifyAIRecognitionTemplate.

    Name Type Required Description
    Switch String No Video opening and closing credits recognition task switch. Available values:
  • ON: Enable the intelligent video opening and closing credits recognition task;
  • OFF: Disable the intelligent video start and end recognition task.
  • HeadTailTaskInput

    Ending task input type.

    Used by actions: CreateComplexAdaptiveDynamicStreamingTask, CreateProcedureTemplate, ProcessMedia, ResetProcedureTemplate.

    Name Type Required Description
    Definition Integer Yes Opening and ending template ID.

    HeadTailTemplate

    Description of the title and trailer template

    Used by actions: DescribeHeadTailTemplates.

    Name Type Description
    Definition Integer Opening and ending template ID.
    Name String Template name. Supports up to 64 characters.
    Comment String Template description. Supports up to 256 characters.
    HeadCandidateSet Array of String Opening candidate list. When used, the one closest to the main content resolution is selected. If identical candidates exist, the first one is used. Supports up to 5 candidates.
    TailCandidateSet Array of String Ending candidate list. When used, the one closest to the main content resolution is selected. If identical candidates exist, the first one is used. Supports up to 5 candidates.
    FillType String Filling method. When the aspect ratio of the video stream configuration width and height parameters is inconsistent with that of the original video, the processing method for transcoding is "padding". Optional filling methods:
  • stretch: Stretch each frame to fill the entire screen, which may cause the transcoded video to be "squashed" or "stretched";
  • gauss: Gaussian blur, maintain video aspect ratio, and apply Gaussian blur to the remaining edge part;
  • white: leave blank, maintain video aspect ratio, and fill the remaining edges with white;
  • black: Fill with black. Maintain the video aspect ratio and fill the remaining edges with black.

  • Default value: stretch.
    CreateTime String Template creation time in ISO datetime format.
    UpdateTime String Template last modified time in ISO date format.

    HeuristicCache

    Heuristic cache configuration

    Used by actions: CreateCDNDomain, ModifyCDNDomainConfig.

    Name Type Required Description
    Switch String Yes Heuristic cache configuration switch. Valid values:
  • on: Enable;
  • off: Cache.
  • CacheConfig HeuristicCacheConfig No Custom heuristic cache time configuration.

    HeuristicCacheConfig

    Heuristic custom time cache configuration

    Used by actions: CreateCDNDomain, ModifyCDNDomainConfig.

    Name Type Required Description
    HeuristicCacheTimeSwitch String Yes Heuristic custom time cache configuration switch. Valid values:
  • on: Enable;
  • off: Cache.
  • HeuristicCacheTime Integer Yes Unit: seconds.

    HighlightSegmentItem

    List of intelligent highlight clips.

    Used by actions: DescribeTaskDetail, PullEvents.

    Name Type Description
    Confidence Float

    Confidence degree.

    StartTimeOffset Float

    Start time offset of a segment.

    Unit: seconds

    EndTimeOffset Float

    Segment end time offset.

    Unit: seconds

    HighlightsConfigureInfo

    Intelligent highlight task control parameter

    Used by actions: CreateAIAnalysisTemplate, DescribeAIAnalysisTemplates.

    Name Type Required Description
    Switch String Yes Task switch for intelligent highlight. Available values:
  • ON: enable the intelligent highlight task;
  • OFF: disables the intelligent highlight task.
  • HighlightsConfigureInfoForUpdate

    Intelligent highlight task control parameters

    Used by actions: ModifyAIAnalysisTemplate.

    Name Type Required Description
    Switch String No Intelligent highlight task switch. Value range:
  • ON: enable the intelligent highlight task;
  • OFF: disables the intelligent highlight task.
  • HttpHeaderPathRule

    Http header setting rules, with a maximum of 100.

    Used by actions: CreateCDNDomain, ModifyCDNDomainConfig.

    Name Type Required Description
    HeaderMode String Yes http header setting method:
  • set: Set. Update the value of the specified header parameter to the configured value; if the header does not exist, it will be added; if there are multiple duplicate header parameters, all of them will be updated and merged into one header;
  • del: delete. Delete the specified header parameter;
  • add: Add. Add the specified header parameter. Duplicate addition is allowed by default, meaning the same header can be repeatedly added (Note: Duplicate addition may affect browser response. Please prioritize the set operation).
  • HeaderName String Yes http header name, with a maximum of 100 characters.
    HeaderValue String Yes http header value, up to 1000 characters;
    Optional when Mode is del.
    Required if Mode is add/set.
    RuleType String Yes Rule type:
  • all: take effect for all files;
  • file: The specified file suffix takes effect;
  • directory: specify the path to take effect;
  • path: The absolute path takes effect.
  • RulePaths Array of String Yes Matching content under the corresponding type of RuleType:
  • Fill with * when set to all;
  • For file, fill in the extension, such as jpg or txt;
  • For directory, fill in the path, such as /xxx/test/;
  • For path, fill in the absolute path, such as /xxx/test.html.
  • Https

    https acceleration configuration for the domain name. Disabled by default.

    Used by actions: CreateCDNDomain, ModifyCDNDomainConfig.

    Name Type Required Description
    Switch String Yes https configuration switch. Value:
  • on: Enable;
  • off: Cache.
  • Http2 String No http/2 configuration switch. Value:
  • on: Enable;
  • off: Cache.
  • CertInfo CDNCertInfo No Certificate configuration information.

    HwPrivateAccess

    Huawei Cloud object storage origin-pull authentication

    Used by actions: CreateCDNDomain, ModifyCDNDomainConfig.

    Name Type Required Description
    Switch String Yes Huawei Cloud object storage origin-pull authentication configuration switch. Valid values:
  • on: Enable;
  • off: Cache.
  • AccessKey String No Access ID.
    SecretKey String No Key.
    Bucket String No Bucket Name.

    IPFilterPolicy

    IP access restriction rule. It currently supports IP blocklist and allowlist configuration.

    Used by actions: DescribeVodDomains, ModifyVodDomainConfig.

    Name Type Required Description
    Status String Yes IP access restriction status. Available values:
  • Enabled: enabled;
  • Disabled: Disabled.
  • FilterType String No IP access restriction type:
  • Black: blocklist validation. Only IP requests from the IPList are intercepted.
  • White: whitelist method verification. Only IP requests from the IPList will be allowed.
  • When Status is Enabled, FilterType must be assigned a value.
    IPList Array of String No IP list. Supports IPV4 addresses in X.X.X.X format, IPV6 addresses in X:X:X:X:X:X:X:X format, or IP ranges in /N format (IPV4: 1≤N≤32; IPV6: 1≤N≤128). You can fill up to 200 IPs or ranges. When Status is Enabled, IPList must be assigned a value.

    ImageBeautyConfig

    Image beauty configuration.

    Used by actions: CreateProcessImageAsyncTemplate, ModifyProcessImageAsyncTemplate, PullEvents.

    Name Type Required Description
    BeautyEffectItems Array of BeautyEffectItem No

    Beauty effect item.

    BeautyFilterItems Array of BeautyFilterItem No

    Beauty filter item.

    ImageBlur

    Blur an image.

    Used by actions: CreateImageProcessingTemplate.

    Name Type Required Description
    Type String Yes Operation type for blurry images. Optional modes:
  • Gaussian: Gaussian blur.
  • Radius Integer No Blur radius. Value range: 1-50. This field is valid when Type is Gaussian.
    Sigma Integer No Standard deviation of the normal distribution. Must be greater than 0. This field is valid when the value of Type is Gaussian.

    ImageCenterCut

    Crop the image center.

    Used by actions: CreateImageProcessingTemplate.

    Name Type Required Description
    Type String Yes Image cropping type. Selectable values: Circle and Rectangle.
  • Circle: Inscribed circle cropping, with the output image radius as Radius.
  • Rectangle: Rectangular crop. The output image width is Width and height is Height.
  • Width Integer No Width of the output image in pixels. Valid when Type is Rectangle.
    Height Integer No Height of the output image. Unit: pixel. Valid when Type is Rectangle.
    Radius Integer No Radius of the output image. Unit: pixel. Valid when Type is Circle.

    ImageDenoiseConfig

    Image denoising configuration.

    Used by actions: CreateProcessImageAsyncTemplate, ModifyProcessImageAsyncTemplate, PullEvents.

    Name Type Required Description
    Switch String No Capability configuration switch. Valid values:
  • ON: enabled;
  • OFF: disabled.

  • Default value: ON.
    Type String No Type. Valid values:
  • weak
  • strong

  • Default value: weak.

    ImageEncodeConfig

    Image encoding format parameters

    Used by actions: CreateProcessImageAsyncTemplate, ModifyProcessImageAsyncTemplate, PullEvents.

    Name Type Required Description
    Format String No Image format. Valid values: JPEG, PNG, BMP, and WebP. If it is not specified, the original image format is used. Animations are not supported.
    Quality Integer No Relative image quality. Valid range: 1 - 100. The value is based on the original image quality, and the default is the original image quality.

    ImageEnhanceConfig

    Image enhancement parameters

    Used by actions: CreateProcessImageAsyncTemplate, ModifyProcessImageAsyncTemplate, PullEvents.

    Name Type Required Description
    SuperResolution SuperResolutionInfo No Super-resolution configuration.
    AdvancedSuperResolution AdvancedSuperResolutionConfig No Advanced super-resolution configuration.
    Denoise ImageDenoiseConfig No Denoising configuration.
    ImageQualityEnhance ImageQualityEnhanceInfo No Comprehensive enhancement configuration.
    ColorEnhance ColorEnhanceInfo No Color enhancement configuration.
    SharpEnhance SharpEnhanceInfo No Detail enhancement configuration.
    FaceEnhance FaceEnhanceInfo No Face enhancement configuration.
    LowLightEnhance LowLightEnhanceInfo No Low-light enhancement configuration.

    ImageOperation

    One image processing operation.

    Used by actions: CreateImageProcessingTemplate, DescribeImageProcessingTemplates.

    Name Type Required Description
    Type String Yes Image processing type. Optional types:
  • Scale: Image thumbnail processing;
  • CenterCut: image cropping;
  • Blur: fuzzily process an image.
  • Scale ImageScale No Image thumbnail processing. This parameter is valid only when Type is Scale.
    CenterCut ImageCenterCut No Image crop processing. Valid only when Type is CenterCut.
    Blur ImageBlur No Blur the image. This parameter is valid only when Type is Blur.

    ImageProcessingTemplate

    Image processing template supports up to three operations. For example: crop - thumbnail - crop.

    Used by actions: DescribeImageProcessingTemplates.

    Name Type Description
    Definition Integer Unique identifier of the image processing template.
    Type String Template type. Valid values:
  • Preset: system-preset template;
  • Custom: custom template.
  • Name String Image processing template name.
    Comment String Template description information.
    Operations Array of ImageOperation Image processing operation array. Operations are performed in array order.
  • Length limit: 3.
  • CreateTime String Template creation time in ISO date format.

    ImageQualityEnhanceInfo

    Comprehensive enhancement control

    Used by actions: CreateProcessImageAsyncTemplate, CreateTranscodeTemplate, ModifyProcessImageAsyncTemplate, ModifyTranscodeTemplate, PullEvents.

    Name Type Required Description
    Switch String Yes Comprehensive enhancement control switch. Valid values:
  • ON: enable comprehensive enhancement;
  • OFF: disables comprehensive enhancement.
  • Type String No Comprehensive enhancement type. Valid only when the comprehensive enhancement control switch is ON. Available values:
  • weak: light comprehensive enhancement;
  • normal: Normal comprehensive enhancement;
  • strong: Strong comprehensive enhancement.

  • Default value: weak.

    ImageReviewUsageDataItem

    Image moderation count statistics.

    Used by actions: DescribeImageReviewUsageData.

    Name Type Description
    Time String Start time of the time interval where the data resides, using ISO date format. For example, when the time granularity is day, 2018-12-01T00:00:00+08:00 means the interval from December 1, 2018 (inclusive) to December 2, 2018 (exclusive).
    Count Integer Count.

    ImageScale

    Image scaling processing.

    Used by actions: CreateImageProcessingTemplate.

    Name Type Required Description
    Type String Yes Operation type of image scaling. Optional modes:
  • WidthFirst: Set the image width to Width and proportionally scale the height.
  • HeightFirst: specify the image height as Height, and the width will be proportionally scaled.
  • LongEdgeFirst: Specify the long side of the image as LongEdge, and proportionally scale the short side.
  • ShortEdgeFirst: Specify the short edge of the image as ShortEdge, with long edge proportional scaling.
  • Force: Ignore the aspect ratio of the original image, specify the image width as Width and height as Height, and forcefully scale the image, which may cause the target image to deform.
  • Height Integer No Height of the output image. Unit: pixel. This field is valid when Type is HeightFirst or Force.
    Width Integer No Width of the output image in pixels. This field is valid when Type is WidthFirst or Force.
    LongEdge Integer No Long side length of the output image in pixels. This field is valid when Type is LongEdgeFirst.
    ShortEdge Integer No Short side length of the output image, unit: pixel. This field is valid when Type value is ShortEdgeFirst.

    ImageSceneAigcEncodeConfig

    Image encoding format parameters.

    Used by actions: CreateSceneAigcImageTask.

    Name Type Required Description
    Format String No Image format. Valid values: JPEG, PNG. If it is not specified, the original image format is used. Animations are not supported.
    Quality Integer No Relative image quality. Valid range: 1 - 100. The value is based on the original image quality, and the default is the original image quality.

    ImageSpriteTaskInput

    Task input parameter type of sprite sheet capture in a video

    Used by actions: CreateProcedureTemplate, DescribeTaskDetail, ProcessMedia, PullEvents, ResetProcedureTemplate.

    Name Type Required Description
    Definition Integer Yes Image sprite template ID.

    ImageSpriteTemplate

    Sprite sheet template details

    Used by actions: DescribeImageSpriteTemplates.

    Name Type Description
    Definition Integer Sprite template unique identifier.
    Type String Template type. Valid values:
  • Preset: system-preset template;
  • Custom: custom template.
  • Name String Sprite sheet template name.
    Width Integer Maximum width (or long side) of small images in sprite image. Value range: 0 and [128, 4096]. Unit: px.
  • If both Width and Height are 0, the resolution is the same as the source.
  • If Width is 0 but Height is not 0, the width will be proportionally scaled.
  • If Width is not 0 but Height is 0, the height will be proportionally scaled.
  • If both Width and Height are not 0, the resolution is as specified by the user.

  • Default value: 0.
    Height Integer Maximum height (or short side) of small images in the sprite image. Value range: 0 and [128, 4096]. Unit: px.
  • If both Width and Height are 0, the resolution is the same as the source.
  • If Width is 0 but Height is not 0, the width will be proportionally scaled.
  • If Width is not 0 but Height is 0, the height will be proportionally scaled.
  • If both Width and Height are not 0, the resolution is as specified by the user.

  • Default value: 0.
    ResolutionAdaptive String Resolution adaptation. Available values:
  • open: enable. At this point, Width represents the long side of the video, and Height represents the short side.
  • close: closed. At this point, Width represents the video width, and Height indicates the video height.

  • Default value: open.
    SampleType String Sampling type.
    SampleInterval Integer Sampling interval.
    RowCount Integer Number of rows of small images in the sprite image.
    ColumnCount Integer Number of columns of small images in the sprite image.
    CreateTime String Template creation time. Use the ISO date format.
    UpdateTime String Template last modified time in ISO date format (https://www.tencentcloud.com/document/product/266/11732?from_cn_redirect=1#I).
    FillType String Filling method. When the aspect ratio of the video stream configuration width and height parameters is inconsistent with that of the original video, the processing method for transcoding is "padding". Optional filling methods:
  • stretch: Stretch each frame to fill the entire screen, possibly causing the transcoded video to be "squashed" or "stretched";
  • black: Fill with black. Maintain the video aspect ratio and fill the remaining edges with black.

  • Default value: black.
    Comment String Template description information.
    Format String Image format.

    ImageTransform

    Image rotation, flipping, and other operations.

    Used by actions: ComposeMedia.

    Name Type Required Description
    Type String Yes Type. Valid values:
  • Rotate: image rotation.
  • Flip: image flipping.
  • RotateAngle Float No Angle to rotate the image around the center point. Value range: 0-360. Valid when Type is Rotate.
    Flip String No Image flipping action. Valid values:
  • Horizental: Flip horizontally, i.e., left and right mirroring.
  • Vertical: Flip vertically, that is, vertically mirrored.

  • Valid when Type is set to Flip.

    ImageUnderstandingInfo

    Image understanding information.

    Used by actions: DescribeMediaInfos, SearchMedia.

    Name Type Description
    ImageUnderstandingSet Array of ImageUnderstandingItem Collection of image understanding items.

    ImageUnderstandingItem

    Image understanding information item.

    Used by actions: DescribeMediaInfos, SearchMedia.

    Name Type Description
    Definition Integer Template id.
    OutputFile Array of MPSOutputFileInfo Task output file.

    ImageWatermarkInput

    Image watermark template input parameters.

    Used by actions: CreateWatermarkTemplate.

    Name Type Required Description
    ImageContent String Yes Base64-encoded string (https://tools.ietf.org/html/rfc4648) of the watermark image. Supports jpeg, png, and gif image formats.
    Width String No Width of a watermark, supporting two formats: % and px.
  • If a string ends with %, it indicates that the Width of a watermark is a percentage of a video's width. For example, 10% means that Width is 10% of a video's width.
  • If a string ends with px, Width is in pixels. For example, 100px means Width is 100 pixels. Value range: [8, 4096].

  • Default value: 10%.
    Height String No Height of a watermark. Supports two formats: % and px.
  • If a string ends with %, it indicates that the Height of a watermark is a percentage of a video's height. For example, 10% means that Height is 10% of a video's height.
  • If a string ends with px, it means the watermark Height is in pixels. For example, 100px means the Height is 100 pixels. Value range: 0 or [8, 4096].

  • Default value: 0px, which means Height is scaled according to the aspect ratio of the raw watermark image.
    RepeatType String No Watermark repeat type. Usage scenario: the watermark is a dynamic image. Value range:
  • once: The dynamic watermark will no longer appear after it has finished playing;
  • repeat_last_frame: After the watermark finished playing, stay on the last frame;
  • repeat: loop the watermark until the video ends (default value).
  • Transparency Integer No Image transparency. Value range: [0, 100].
  • 0: completely opaque.
  • 100: completely transparent.

  • Default value: 0.

    ImageWatermarkInputForUpdate

    Input parameters of an image watermark template

    Used by actions: ModifyWatermarkTemplate.

    Name Type Required Description
    ImageContent String No Base64-encoded string (https://tools.ietf.org/html/rfc4648) of the watermark image. Supports jpeg and png image formats.
    Width String No Width of a watermark, supporting two formats: % and px.
  • If a string ends with %, it indicates that the Width of a watermark is a percentage of a video's width. For example, 10% means that Width is 10% of a video's width.
  • If a string ends with px, it means the watermark Width is in pixels. For example, 100px means the Width is 100 pixels. Value range: [8, 4096].
  • Height String No Height of a watermark, supporting two formats: % and px.
  • If a string ends with %, it indicates that the Height of a watermark is a percentage of a video's height. For example, 10% means that Height is 10% of a video's height.
  • If a string ends with px, it means the watermark Height is in pixels. For example, 100px means the Height is 100 pixels. Value range: 0 or [8, 4096].
  • RepeatType String No Watermark repeat type. Usage scenario: the watermark is a dynamic image. Value range:
  • once: The dynamic watermark no longer appears after it is finished playing;
  • repeat_last_frame: After the watermark finished playing, stay on the last frame;
  • repeat: The watermark loops until the video ends.
  • Transparency Integer No Image transparency. Value range: [0, 100].
  • 0: completely opaque.
  • 100: completely transparent.
  • ImageWatermarkTemplate

    Image watermark template

    Used by actions: DescribeWatermarkTemplates.

    Name Type Description
    ImageUrl String Watermark image address.
    Width String Width of a watermark, supporting two formats: % and px.
  • If a string ends with %, it indicates that the Width of a watermark is a percentage of a video's width. For example, 10% means that Width is 10% of a video's width.
  • If a string ends with px, it means the watermark Width is in pixels. For example, 100px means the Width is 100 pixels.
  • Height String Height of the watermark. Supports two formats: % and px.
  • If a string ends with %, it indicates that the Height of a watermark is a percentage of a video's height. For example, 10% means that Height is 10% of a video's height.
  • If a string ends with px, it means the watermark Height is in pixels. For example, 100px means the Height is 100 pixels;

  • 0px: means Height is scaled proportionally to the video width according to Width.
    RepeatType String Watermark repeat type. Usage scenario: the watermark is a dynamic image. Value range:
  • once: The dynamic watermark will no longer appear after it has finished playing;
  • repeat_last_frame: After the watermark has finished playing, stay on the last frame;
  • repeat: The watermark loops until the video ends.
  • Transparency Integer Image transparency. Value range: [0, 100].
  • 0: completely opaque.
  • 100: completely transparent.
  • ImportMediaKnowledgeTask

    Media import knowledge base task

    Used by actions: DescribeTaskDetail.

    Name Type Description
    TaskId String

    Task ID.

    FileId String

    Media file ID

    Input ImportMediaKnowledgeTaskInput

    Input of the import knowledge base task.

    Status String

    Task status. Valid values:

  • PROCESSING: Processing;
  • FINISH: Completed.
  • ErrCode Integer

    Error code. 0 indicates success, and other values indicate failure

    Message String

    Error message.

    ImportMediaKnowledgeTaskInput

    Input parameter type for importing an intelligent media assets knowledge base in a task flow template.

    Used by actions: CreateProcedureTemplate, DescribeProcedureTemplates, DescribeTaskDetail, ResetProcedureTemplate.

    Name Type Required Description
    Definition Integer Yes

    Large Model Understanding Template

    KnowledgeBaseIds Array of String No

    List of knowledge base IDs. Leave empty to use the default knowledge base.

    IpFilter

    IP allowlist/blocklist configuration, disabled by default

    Used by actions: CreateCDNDomain, ModifyCDNDomainConfig.

    Name Type Required Description
    Switch String Yes IP allowlist/blocklist configuration switch. Parameter value:
  • on: Enable;
  • off: Cache.
  • FilterType String No IP allowlist/blocklist type:
  • whitelist: allowlist;
  • blocklist: Blocklist.
  • Filters Array of String No IP blocklist and allowlist. Supports IPs in the X.X.X.X format or network segments in the /8, /16, or /24 format.
    You can fill up to 50 allowlist entries or 50 blocklist entries.
    FilterRules Array of IpFilterPathRule No IP blocklist/allowlist path-specific configuration.

    IpFilterPathRule

    IP allowlist/blocklist path-specific configuration

    Used by actions: CreateCDNDomain, ModifyCDNDomainConfig.

    Name Type Required Description
    FilterType String Yes IP allowlist/blocklist type:
  • whitelist: allowlist;
  • blocklist: Blocklist.
  • Filters Array of String Yes IP blocklist/allowlist list, supporting IPs in X.X.X.X format or network segments in /8, /16, or /24 format.
    You can fill up to 50 allowlist entries or 50 blocklist entries.
    RuleType String Yes Rule type:
  • all: All files take effect;
  • file: The specified file suffix takes effect;
  • directory: The specified path takes effect;
  • path: The absolute path takes effect.
  • RulePaths Array of String Yes Matching content under the corresponding type of RuleType:
  • Fill with * when set to all;
  • For file, fill in the extension, such as jpg or txt;
  • For directory, fill in the path, such as /xxx/test/;
  • For path, fill in the absolute path, such as /xxx/test.html.
  • Ipv6Access

    Ipv6 access configuration

    Used by actions: CreateCDNDomain, ModifyCDNDomainConfig.

    Name Type Required Description
    Switch String Yes Domain name activation switch for ipv6 access configuration. Valid values:
  • on: Enable;
  • off: Cache.
  • JitterConfigureInfo

    Control parameters for video frame jitter and ghosting detection.

    Used by actions: CreateQualityInspectTemplate, DescribeQualityInspectTemplates.

    Name Type Required Description
    Switch String Yes Video frame jitter and ghosting detection switch. Value range:
  • ON: enabled
  • OFF: disabled.
  • JitterConfigureInfoForUpdate

    Control parameters for video frame jitter and ghosting detection.

    Used by actions: ModifyQualityInspectTemplate.

    Name Type Required Description
    Switch String No Video frame jitter and ghosting detection switch. Available values:
  • ON: enabled;
  • OFF: disabled
  • JustInTimeTranscodeTemplate

    Details of the just in time transcoding template.

    Used by actions: DescribeJustInTimeTranscodeTemplates.

    Name Type Description
    Type String Template type.
    Name String Template name.
    Comment String Template description.
    VideoConfigure VideoConfigureInfo Video parameter configuration.
    WatermarkConfigure WatermarkConfigureData Watermark parameter configuration.

    KnowledgeAnalysisInfo

    Knowledge base media analysis information.

    Used by actions: DescribeMediaInfos, SearchMedia.

    Name Type Description
    Definition Integer

    Large model parsing template number

    AnalysisResults Array of KnowledgeAnalysisResult

    Large model parsing result

    KnowledgeAnalysisResult

    Media analysis result of the knowledge base.

    Used by actions: DescribeMediaInfos, SearchMedia.

    Name Type Description
    TaskType String

    Processing task type

    Enumeration values:

    • AiAnalysis.DescriptionTask: intelligent summary task
    • AiAnalysis.VideoComprehensionTask: video understanding task
    • SmartSubtitle.AsrFullTextTask: intelligent speech full-text recognition task
    File MPSOutputFileInfo

    Task output file collection

    KnowledgeBaseDetail

    Detailed information about the knowledge base list to which media assets are imported, as well as the parsing template used.

    Used by actions: DescribeMediaInfos, SearchMedia.

    Name Type Description
    KnowledgeBaseId String

    Knowledge base ID

    Definition Integer

    Associated large model parsing template

    ImportTime Timestamp ISO8601

    Storage time

    KnowledgeBaseInfo

    Knowledge base info.

    Used by actions: DescribeKnowledgeBases.

    Name Type Description
    KnowledgeBaseId String

    Knowledge base ID.

    Name String

    Knowledge base name.

    Description String

    Repository description.

    Status String

    Knowledge base status.

    Enumeration values:

    • creating: Creating
    • active: Normal
    • deleting: Deleting
    CreateTime Timestamp ISO8601

    Creation time of the knowledge base.

    KnowledgeBasesInfo

    Media asset intelligent knowledge base information

    Used by actions: DescribeMediaInfos, SearchMedia.

    Name Type Description
    Bases Array of String

    List of knowledge bases currently imported for the media asset

    KnowledgeAnalysisInfos Array of KnowledgeAnalysisInfo

    Media analysis info in the knowledge base

    KnowledgeBaseDetails Array of KnowledgeBaseDetail

    Current repository list imported for the media asset, as well as detailed information such as the parsing template used

    LLMComprehendAsr

    Large model parse text transcription parsing configuration

    Used by actions: CreateLLMComprehendTemplate, DescribeLLMComprehendTemplates.

    Name Type Required Description
    Switch String Yes Text transcription task switch. Available values:
    - ON: Enable the text transcription task.
    -OFF: disables the transcription task.

    LLMComprehendAsrForUpdate

    Large model text transcription parsing configuration

    Used by actions: ModifyLLMComprehendTemplate.

    Name Type Required Description
    Switch String No Text transcription task switch. Available values:
    - ON: Enable the text transcription task.
    - OFF: disables the text transcription task.

    LLMComprehendFaceRecognition

    Large model parsing face recognition configuration

    Used by actions: CreateLLMComprehendTemplate, DescribeLLMComprehendTemplates.

    Name Type Required Description
    Switch String Yes

    Face recognition task switch

    Enumeration values:

    • ON: Enable intelligent face recognition task
    • OFF: Disable intelligent face recognition task

    Default value: OFF

    Score Float No

    Face recognition filter score. When the recognition result reaches this score or above, the recognition result is returned.

    Value range: [0, 100]

    Default value: 95

    DefaultLibraryLabelSet Array of String No

    Default character filter tag, specify the tag of the default character to return. If not filled or empty, all default character results are returned.

    Enumeration values:

    • entertainment: entertainment star
    • sport: sports celebrity
    • politician: political figure
    UserDefineLibraryLabelSet Array of String No

    User-defined character filter tags, specify the tags of user-defined characters to return. If not filled or empty, all customized figure results will be returned.

    Input limits: up to 100 tags, each tag up to 16 characters in length.

    FaceLibrary String No

    Figure library selection

    Enumeration values:

    • Default: Use the default figure library
    • UserDefine: Use a user-defined figure library
    • All: Use both the default and user-defined figure libraries

    Default value: All

    LLMComprehendFaceRecognitionForUpdate

    Large model parsing face identification configuration

    Used by actions: ModifyLLMComprehendTemplate.

    Name Type Required Description
    Switch String No

    Face recognition task switch

    Enumeration values:

    • ON: Enable intelligent face recognition task
    • OFF: Disable intelligent face recognition task

    Default value: OFF

    Score Float No

    Face recognition filter score. When the recognition result reaches this score or above, the recognition result will be returned.

    Value range: [0, 100]

    DefaultLibraryLabelSet Array of String No

    Default character filter tag, specifying the tag of the default character to return. If not filled or empty, all default character results are returned.

    Enumeration values:

    • entertainment: entertainment star
    • sport: sports celebrity
    • politician: political figure
    UserDefineLibraryLabelSet Array of String No

    User-defined character filter tag, specify the tag of the user-defined character to return. If not specified or empty, all customized figure results are returned.

    Input limitation: up to 100 tags, each tag up to 16 characters in length.

    FaceLibrary String No

    Figure library selection

    Enumeration values:

    • Default: Use the default figure library
    • UserDefine: Use a user-defined figure library
    • All: Use both the default and user-defined figure libraries

    Default value: All

    LLMComprehendSummary

    Large model parsing segment summary parsing configuration

    Used by actions: CreateLLMComprehendTemplate, DescribeLLMComprehendTemplates.

    Name Type Required Description
    Switch String Yes Segment summary task switch. Available values:
    - ON: Enable the segment summary task.
    - OFF: disables segment summary.
    ExtendedParameter String No Extended parameter. Its value is a serialized json string. For details, see Extended Parameter description.

    LLMComprehendSummaryForUpdate

    Large model parsing segment summary parsing configuration

    Used by actions: ModifyLLMComprehendTemplate.

    Name Type Required Description
    Switch String No Task switch for segment summary. Available values:
    - ON: enable the segmentation summary task.
    -OFF: disables segment summary.
    ExtendedParameter String No Extended parameter. Its value is a serialized json string. For details, see Extended Parameter description.

    LLMComprehendTemplateItem

    Large model parsing template detail.

    Used by actions: DescribeLLMComprehendTemplates.

    Name Type Description
    Definition Integer

    Unique identifier of the image asynchronous processing template.

    Name String

    Image asynchronous processing template name.

    Comment String

    Description information of the image asynchronous processing template.

    Type String

    Template type

    Enumeration values:

    • Preset: preset template
    • Custom: custom template
    Level String

    Parsing level. Available values are:

    • Audio: audio-level parsing
    • Video: video-level parsing
    Summary LLMComprehendSummary

    Segment summary parsing configuration

    Asr LLMComprehendAsr

    Text transcription parsing configuration

    FaceRecognition LLMComprehendFaceRecognition

    Face recognition parsing configuration

    CreateTime Timestamp ISO8601

    Template creation time, in ISO date format.

    UpdateTime Timestamp ISO8601

    Last template modification time, in ISO date format.

    LicenseUsageDataItem

    License request count statistics.

    Used by actions: DescribeLicenseUsageData.

    Name Type Description
    Time String Start time of the time interval where the data resides, in ISO date format. For example, if the time granularity is day, 2018-12-01T00:00:00+08:00 means the interval from December 1, 2018 (inclusive) to December 2, 2018 (exclusive).
    Count Integer License request count.

    LiveRealTimeClipMediaSegmentInfo

    Segment information of the media after instant clipping.

    Used by actions: LiveRealTimeClip.

    Name Type Description
    StartTime String Segment start time. See ISO date format description for the format.
    EndTime String Segment end time. For the format, see ISO date format description.

    LiveRealTimeClipStreamInfo

    Live streaming Instant Editing stream info

    Used by actions: LiveRealTimeClip.

    Name Type Required Description
    Type String No Live stream type. Valid values:
  • Original (original stream, default value).
  • Transcoding (transcoding stream).
  • TemplateId Integer No Live streaming transcoding template ID.
    Required when Type is "Transcoding".

    LiveRecordInfo

    Live recording information

    Used by actions: DescribeMediaInfos, DescribeTaskDetail, PullEvents, SearchMedia.

    Name Type Description
    Domain String

    Live streaming recording domain name

    Path String

    Live recording Path

    StreamId String

    Live recording stream ID.

    RecordStartTime String

    Recording start time, in ISO date format.

    RecordEndTime String

    Recording end time, in ISO date format.

    LowLightEnhanceInfo

    Low-light enhancement control

    Used by actions: CreateEnhanceMediaTemplate, CreateProcessImageAsyncTemplate, CreateRebuildMediaTemplate, CreateTranscodeTemplate, DescribeTaskDetail, ModifyEnhanceMediaTemplate, ModifyProcessImageAsyncTemplate, ModifyRebuildMediaTemplate, ModifyTranscodeTemplate, PullEvents, RebuildMedia.

    Name Type Required Description
    Switch String Yes Low-light enhancement control switch. Available values:
  • ON: turn on low-light enhancement;
  • OFF: low-light enhancement disabled.
  • Type String No Low-light enhancement type. It is valid only when the low-light enhancement control switch is ON. Available values:
  • normal: Normal low-light enhancement;

  • Default value: normal.

    MPSAIAnalysisConfigureInfo

    Configuration options of MPS intelligent analysis templates

    Used by actions: CreateMPSTemplate, ModifyMPSTemplate.

    Name Type Required Description
    Switch String No

    Intelligent classification task switch. Available values:

  • ON: Enable the intelligent classification task;
  • OFF: Disable the intelligent classification task.
  • MPSAIAnalysisTemplate

    Input for MPS intelligent analysis template

    Used by actions: CreateMPSTemplate.

    Name Type Required Description
    Name String Yes

    Video analysis template name. Length limit: 64 characters.

    Comment String Yes

    Video analysis template description. Length limit: 256 characters.

    ClassificationConfigure MPSAIAnalysisConfigureInfo No

    Intelligent Classification Task Control Parameters.

    TagConfigure MPSAIAnalysisConfigureInfo No

    Control parameters for the intelligent tag task.

    CoverConfigure MPSAIAnalysisConfigureInfo No

    Intelligent Cover Task Control Parameters.

    FrameTagConfigure MPSAIAnalysisConfigureInfo No

    Control parameters for the intelligent frame-specific tagging task.

    SplitConfigure MPSAIAnalysisConfigureInfo No

    Intelligent splitting task control parameters.

    HighlightConfigure MPSAIAnalysisConfigureInfo No

    Control parameters for the intelligent highlights task.

    OpeningAndEndingConfigure MPSAIAnalysisConfigureInfo No

    Intelligent opening and closing credits task control parameters.

    MPSAIAnalysisTemplateForUpdate

    Input of the MPS intelligent analysis template

    Used by actions: ModifyMPSTemplate.

    Name Type Required Description
    Definition Integer Yes

    Unique identifier of the video content analysis template.

    Name String Yes

    Video analysis template name. Length limit: 64 characters.

    Comment String Yes

    Video analysis template description. Length limit: 256 characters.

    ClassificationConfigure MPSAIAnalysisConfigureInfo No

    Intelligent Classification Task Control Parameters.

    TagConfigure MPSAIAnalysisConfigureInfo No

    Control parameters for the intelligent tag task.

    CoverConfigure MPSAIAnalysisConfigureInfo No

    Intelligent Cover Task Control Parameters.

    FrameTagConfigure MPSAIAnalysisConfigureInfo No

    Control parameters for the intelligent frame tagging task.

    SplitConfigure MPSAIAnalysisConfigureInfo No

    Intelligent splitting task control parameter.

    HighlightConfigure MPSAIAnalysisConfigureInfo No

    Control parameters for the intelligent highlights task.

    OpeningAndEndingConfigure MPSAIAnalysisConfigureInfo No

    Control parameters for the intelligent opening and ending sequences task.

    MPSAiAnalysisTaskInput

    Input parameter type for AI smart video analysis

    Used by actions: ProcessMediaByMPS.

    Name Type Required Description
    Definition Integer Yes

    Video content analysis template ID.

    ExtendedParameter String No

    Additional parameters, with the value being a serialized json string. Note: This parameter is a customization requirement parameter. See the following: Intelligent EraseIntelligent SplittingIntelligent HighlightIntelligent Landscape-to-Portrait

    MPSAiMediaInfo

    Intelligent media information after MPS processing

    Used by actions: DescribeMediaInfos, SearchMedia.

    Name Type Description
    AiMediaList Array of MPSAiMediaItem Intelligent media information list after MPS processing

    MPSAiMediaItem

    MPS AI media asset task item

    Used by actions: DescribeMediaInfos, SearchMedia.

    Name Type Description
    TaskType String MPS intelligent processing task type. Valid values:
  • AiAnalysis.ClassificationTask: intelligent classification task.
  • AiAnalysis.CoverTask: Intelligent Cover Task.
  • AiAnalysis.TagTask: intelligent tag task.
  • AiAnalysis.FrameTagTask: intelligent frame-specific tagging task.
  • AiAnalysis.HighlightTask: intelligent highlight task.
  • AiAnalysis.SegmentTask: Intelligent video splitting task.
  • AiAnalysis.HeadTailTask: intelligent opening and closing credits task.
  • AiAnalysis.DescriptionTask: intelligent summary task.
  • AiAnalysis.HorizontalToVerticalTask: Intelligent Landscape to Portrait Task.
  • AiAnalysis.DubbingTask: intelligent dubbing task.
  • AiAnalysis.VideoRemakeTask: Intelligent deduplication task.
  • AiAnalysis.VideoComprehensionTask: video understanding task.
  • SmartSubtitle.AsrFullTextTask: intelligent speech full-text recognition task.
  • SmartSubtitle.TransTextTask: Translation result.
  • SmartSubtitle.PureSubtitleTransTask: returns the translation result of a pure subtitle file.
  • SmartSubtitle.OcrFullTextTask: smart text extraction subtitle task.
  • AiMediaTasks Array of MPSAiMediaTask MPS intelligent processing task result set

    MPSAiMediaTask

    MPS intelligent task

    Used by actions: DescribeMediaInfos, SearchMedia.

    Name Type Description
    Definition Integer Template ID of the MPS intelligent task
    OutputFile Array of MPSOutputFileInfo MPS intelligent task output file collection
    OutputText String Result returned by the MPS intelligent task. This field corresponds to the Output result in the MPS task response, returned in JSON format.
    The output result structures of different MPS tasks are different. For the specific return content, see the MPS task output struct.
    Intelligent classification result
    Intelligent Cover Result
    Intelligent Tag Result
    Intelligent frame tagging classification result
    Intelligent Highlight Result
    Video Splitting Result
    Intelligent opening and ending content result
    Intelligent Summary Result
    Intelligent Landscape-to-Portrait Result
    Intelligent dubbing result
    Intelligent video understanding result
    Smart subtitle speech full text recognition result
    Intelligent caption translation result
    Translation result of pure subtitle file in smart subtitling
    Smart subtitle text extraction subtitle result

    MPSEmbedSubtitleTemplate

    MPS subtitle suppression template

    Used by actions: CreateMPSTemplate.

    Name Type Required Description
    Name String No

    Subtitle suppression template name
    Length limit: 64 characters.

    Comment String No

    Subtitle suppression template description information
    Length limit: 256 characters.

    SubtitleEmbedConfig MPSSubtitleEmbedConfig No

    Subtitle suppression configuration

    MPSEmbedSubtitleTemplateForUpdate

    Subtitle suppression template in MPS

    Used by actions: ModifyMPSTemplate.

    Name Type Required Description
    Definition Integer Yes

    Unique identifier of the subtitle suppression template

    Name String No

    Subtitle suppression name
    Length limit: 64 characters.

    Comment String No

    Subtitle suppression template description information
    Length limit: 256 characters.

    SubtitleEmbedConfig MPSSubtitleEmbedConfig No

    Subtitle suppression configuration

    MPSEraseArea

    Intelligent removal, coordinate configuration of the removal area.
    The region is determined by the coordinates of the top-left and bottom-right corners.
    The coordinate origin is the top-left corner of the frame. Coordinate points can be specified in pixel values or percentages.
    For the auto erase area:
    When the unit is %, the coordinate range is [0,1];
    When the unit is px, the X value range is [0, video image width] and the Y value range is [0, video image height].
    For the specified removal area:
    When the unit is %, the coordinate range is [0,1);
    When the unit is px, the X value range is [0, video image width] and the Y value range is [0, video image height].

    Used by actions: CreateMPSTemplate, ModifyMPSTemplate, ProcessMediaByMPS.

    Name Type Required Description
    LeftTopX Float Yes

    Top-left X-axis coordinate of the region. For example, when Unit is 1, that is, using percentage as the measurement unit, 0.05 means the horizontal distance from the top-left corner of the region to the top-left corner of the entire frame is 5% of the frame width.

    LeftTopY Float Yes

    Y-axis coordinate of the region's top-left corner. For example, when Unit is 1, meaning usage percentage, 0.1 indicates the vertical distance between the region's top-left corner and the frame's top-left corner is 10% of the screen height.

    RightBottomX Float Yes

    X coordinate of the region's bottom-right corner. For example, when Unit is 1, using percentage as the unit, 0.75 means the horizontal distance from the bottom-right corner of the region to the upper left of the entire frame is 75% of the frame width.

    RightBottomY Float Yes

    Y-coordinate of the region's bottom-right corner. For example, when Unit is 1, meaning percentage is used, 0.9 indicates the vertical distance from the bottom-right corner of the region to the upper left corner of the entire frame is 90% of the screen height.

    Unit Integer Yes

    Coordinate unit - 1 Percentage - 2 Pixel values

    MPSEraseTimeArea

    Intelligent removal, specify the removal region configuration.
    Directly erase the specified region within a specified period.
    When both BeginMs and EndMs are 0, directly erase the specified region in the entire video.

    Used by actions: CreateMPSTemplate, ModifyMPSTemplate, ProcessMediaByMPS.

    Name Type Required Description
    BeginMs Integer Yes

    Start time, unit: ms

    EndMs Integer Yes

    End time, unit: ms

    Areas Array of MPSEraseArea Yes

    List of regions removed during the period

    MPSOutputFile

    For description of the returned file result in an MPS video processing task.

    Used by actions: DescribeTaskDetail, PullEvents.

    Name Type Description
    FileType String File type. Used to identify the specific return file in the execution results of MPS video processing tasks.
    Parameter Value:
  • AiAnalysis.DeLogo.Video: video file generated after erasure in an intelligent erasure task, stored in the original file type by default;
  • AiAnalysis.DeLogo.OriginSubtitle: subtitle file extracted from video in an intelligent erasure task;
  • AiAnalysis.DeLogo.TranslateSubtitle: translation file of the subtitle extracted from video in an intelligent erasure task.
  • MediaProcess.Transcode.Video: enhanced audio/video file in an audio and video enhancement task, stored as a transcoded file type by default.
  • AiAnalysis.HorizontalToVerticalTask.Video: Video file generated in a horizontal to vertical task. It is stored as an intelligent media type by default.
  • AiAnalysis.VideoRemakeTaskk.Video: Video file generated in the intelligent deduplication task, stored as an intelligent media type by default.
  • AiAnalysis.SegmentTask.Video: Video file generated in the intelligent splitting task, stored as an intelligent media type by default.
  • SmartErase.Video: Video file generated in the intelligent erasure task, stored as an intelligent media type by default.

  • StorageMode String Storage format. Used to represent the storage format of the result file. Valid values:
  • Permanent: retained permanently;
  • Temporary: temporary storage.
  • FileId String Media file ID. Valid when Type is Permanent. It indicates that the result file is stored as a media asset on the VOD platform, and the field value is the FileId of the media asset.
    Url String Downloadable Url of the result file.
    Definition String Transcoding specification ID. Valid when FileType is equal to MediaProcess.Transcode.Video. A value of 0 represents the original file.
    ExpiredTime Integer Expiration time. Valid when StorageMode is Temporary. It indicates the expiration time of the Url in seconds.

    MPSOutputFileInfo

    MPS output file information

    Used by actions: DescribeMediaInfos, SearchMedia.

    Name Type Description
    FileType String Output file type of MPS. Valid values:
  • Video: generated video file.
  • Cover: cover file generated by the task.
  • Audio: audio file generated by the task.
  • Output: The result output of task generation. The file corresponds to the Output result in the MPS task response, and the file is generated in JSON format.


  • Output type file. Different MPS tasks have different output results. For the specific return content, see the MPS task output struct. The struct is JSON-serialized to generate an Output type file.
    Intelligent Classification Result
    Intelligent Cover Result
    Intelligent Tag Result
    Intelligent frame tagging classification result
    Intelligent Highlight Result
    Video Splitting Result
    Intelligent opening and ending content result
    Intelligent Summary Result
    Intelligent Landscape-to-Portrait Result
    Intelligent dubbing result
    Intelligent video understanding result
    Smart subtitle full speech recognition result
    Intelligent caption translation result
    Translation result of pure subtitle file from smart subtitling
    Smart subtitle text extraction subtitle result
    Url String MPS output file URL

    MPSOverrideEraseParameter

    Custom parameters for smart erasing.

    Used by actions: ProcessMediaByMPS.

    Name Type Required Description
    EraseType String No

    Removal Type

    • subtitle removal
    • watermark removal
    • privacy protection
    EraseSubtitleConfig MPSUpdateSmartEraseSubtitleConfig No

    Subtitle erasing configuration;
    This field is required when the value of EraseType is set to subtitle.

    EraseWatermarkConfig MPSUpdateSmartEraseWatermarkConfig No

    Watermark erasing configuration.
    This field is required when the value of EraseType is set to watermark.

    ErasePrivacyConfig MPSSmartErasePrivacyConfig No

    Privacy protection configuration.
    This field is required when the value of EraseType is privacy.

    SubtitleEmbedId Integer No

    id of the subtitle removal suppression template.

    MPSRawSmartEraseParameter

    Custom parameters for smart erasing.

    Used by actions: ProcessMediaByMPS.

    Name Type Required Description
    EraseType String Yes

    Removal Type

    • subtitle removal
    • watermark removal
    • privacy protection
    EraseSubtitleConfig MPSSmartEraseSubtitleConfig No

    Subtitle erasing configuration;
    This field is required when the value of EraseType is set to subtitle.

    EraseWatermarkConfig MPSSmartEraseWatermarkConfig No

    Watermark erasing configuration.
    This field is required when the value of EraseType is set to watermark.

    ErasePrivacyConfig MPSSmartErasePrivacyConfig No

    Privacy protection configuration.
    This field is required when the value of EraseType is privacy.

    SubtitleEmbedId Integer No

    id of the subtitle removal suppression template.

    UseOriginalPos Integer No

    Suppression configuration, enabled by default, moves subtitles back to the original subtitle position.

    UseOriginalSize Integer No

    Suppression configuration, enabled by default. When enabled, use the original subtitle font size.

    MPSRawSmartSubtitleParameter

    Custom smart subtitle parameter.

    Used by actions: ProcessMediaByMPS.

    Name Type Required Description
    SubtitleType Integer Yes

    Intelligent caption subtitle language type.

    Enumeration values:

    • 0: Source language
    • 1: Target language
    • 2: Source language + target language

    Only 0 is supported when TranslateSwitch is OFF. Only 1 or 2 is supported when TranslateSwitch is ON.

    VideoSrcLanguage String Yes

    Smart subtitling video source language
    OCR recognition supports the following languages:
    zh_en: Chinese-English
    multi: Other
    ASR recognition and pure caption translation currently support the following languages:
    auto: Auto-identification
    zh: Simplified Chinese
    en: English
    ja: Japanese
    ko: Korean
    zh-PY: Chinese-English-Cantonese
    zh_medical: Chinese health care
    vi: Vietnamese
    ms: Malay
    id: Indonesian
    fil: Filipino
    th: Thai
    pt: Portuguese
    tr: Turkish
    ar: Arabic
    es: Spanish
    hi: Hindi
    fr: French
    de: German
    it: Italian
    zh_dialect: Chinese dialect
    zh_en: Chinese-English
    yue: Cantonese
    ru: Russian
    prime_zh: Chinese-English dialect
    af-ZA: Afrikaans (South Africa)
    sq-AL: Albanian (Albania)
    am-ET: Amharic (Ethiopia)
    ar-DZ: Arabic (Algeria)
    ar-BH: Arabic (Bahrain)
    ar-EG: Arabic (Egypt)
    ar-IQ: Arabic (Iraq)
    ar-IL: Arabic (Israel)
    ar-JO: Arabic (Jordan)
    ar-KW: Arabic (Kuwait)
    ar-LB: Arabic (Lebanon)
    ar-MR: Arabic (Mauritania)
    ar-MA: Arabic (Morocco)
    ar-OM: Arabic (Oman)
    ar-QA: Arabic (Qatar)
    ar-SA: Arabic (Saudi Arabia)
    ar-PS: Arabic (State of Palestine)
    ar-SY: Arabic (Syria)
    ar-TN: Arabic (Tunisia)
    ar-AE: Arabic (United Arab Emirates)
    ar-YE: Arabic (Yemen)
    hy-AM: Armenian (Armenia)
    az-AZ: Azerbaijani (Azerbaijan)
    eu-ES: Basque (Spain)
    bn-BD: Bengali (Bangladesh)
    bn-IN: Bengali (India)
    bs-BA: Bosnian (Bosnia and Herzegovina)
    bg-BG: Bulgarian (Bulgaria)
    my-MM: Burmese (Myanmar)
    ca-ES: Catalan (Spain)
    hr-HR: Croatian (Croatia)
    cs-CZ: Czech (Czech Republic)
    da-DK: Danish (Denmark)
    nl-BE: Dutch (Belgium)
    nl-NL: Dutch (Netherlands)
    en-AU: English (Australia)
    en-CA: English (Canada)
    en-GH: English (Ghana)
    en-HK: English (Hong Kong (China))
    en-IN: English (India)
    en-IE: English (Ireland)
    en-KE: English (Kenya)
    en-NZ: English (New Zealand)
    en-NG: English (Nigeria)
    en-PK: English (Pakistan)
    en-PH: English (Philippines)
    en-SG: English (Singapore)
    en-ZA: English (South Africa)
    en-TZ: English (Tanzania)
    en-GB: English (UK)
    en-US: English (United States)
    et-EE: Estonian (Estonia)
    fil-PH: Filipino (Philippines)
    fi-FI: Finnish (Finland)
    fr-BE: French (Belgium)
    fr-CA: French (Canada)
    fr-FR: French (France)
    fr-CH: French (Switzerland)
    gl-ES: Galician (Spain)
    ka-GE: Georgian (Georgia)
    el-GR: Greek (Greece)
    gu-IN: Gujarati (India)
    iw-IL: Hebrew (Israel)
    hi-IN: Hindi (India)
    hu-HU: Hungarian (Hungary)
    is-IS: Icelandic (Iceland)
    id-ID: Indonesian (Indonesia)
    it-IT: Italian (Italy)
    it-CH: Italian (Switzerland)
    ja-JP: Japanese (Japan)
    jv-ID: Javanese (Indonesia)
    kn-IN: Kannada (India)
    kk-KZ: Kazakh (Kazakhstan)
    km-KH: Khmer (Cambodia)
    rw-RW: Kinyarwanda (Rwanda)
    ko-KR: Korean (South Korea)
    lo-LA: Lao (Laos)
    lv-LV: Latvian (Latvia)
    lt-LT: Lithuanian (Lithuania)
    mk-MK: Macedonian (North Macedonia)
    ms-MY: Malay (Malaysia)
    ml-IN: Malayalam (India)
    mr-IN: Marathi (India)
    mn-MN: Mongolian (Mongolia)
    ne-NP: Nepali (Nepal)
    no-NO: Norwegian Bokmål (Norway)
    fa-IR: Persian (Iran)
    pl-PL: Polish (Poland)
    pt-BR: Portuguese (Brazil)
    pt-PT: Portuguese (Portugal)
    ro-RO: Romanian (Romania)
    ru-RU: Russian (Russia)
    sr-RS: Serbian (Serbia)
    si-LK: Sinhalese (Sri Lanka)
    sk-SK: Slovak (Slovakia)
    sl-SI: Slovenian (Slovenia)
    st-ZA: Southern Sotho (South Africa)
    es-AR: Spanish (Argentina)
    es-BO: Spanish (Bolivia)
    es-CL: Spanish (Chile)
    es-CO: Spanish (Colombia)
    es-CR: Spanish (Costa Rica)
    es-DO: Spanish (Dominican Republic)
    es-EC: Spanish (Ecuador)
    es-SV: Spanish (El Salvador)
    es-GT: Spanish (Guatemala)
    es-HN: Spanish (Honduras)
    es-MX: Spanish (Mexico)
    es-NI: Spanish (Nicaragua)
    es-PA: Spanish (Panama)
    es-PY: Spanish (Paraguay)
    es-PE: Spanish (Peru)
    es-PR: Spanish (Puerto Rico)
    es-ES: Spanish (Spain)
    es-US: Spanish (United States)
    es-UY: Spanish (Uruguay)
    es-VE: Spanish (Venezuela)
    su-ID: Sundanese (Indonesia)
    sw-KE: Swahili (Kenya)
    sw-TZ: Swahili (Tanzania)
    sv-SE: Swedish (Sweden)
    ta-IN: Tamil (India)
    ta-MY: Tamil (Malaysia)
    ta-SG: Tamil (Singapore)
    ta-LK: Tamil (Sri Lanka)
    te-IN: Telugu (India)
    th-TH: Thai (Thailand)
    ts-ZA: Tsonga (South Africa)
    tr-TR: Turkish (Türkiye)
    uk-UA: Ukrainian (Ukraine)
    ur-IN: Urdu (India)
    ur-PK: Urdu (Pakistan)
    uz-UZ: Uzbek (Uzbekistan)
    ve-ZA: Venda (South Africa)vi-VN: Vietnamese (Vietnam)
    xh-ZA: Xhosa (South Africa)
    zu-ZA: Zulu (South Africa)

    SubtitleFormat String No

    Intelligent subtitle file format:

    • For ASR recognition translation processing type:
      • vtt: WebVTT format subtitle
      • srt: SRT format subtitle
      • Blank or fill in the blank: no subtitle file generated
    • For pure caption translation processing type:
      • original: consistent with the source file
      • vtt: WebVTT format subtitle
      • srt: SRT format subtitle
    • For OCR recognition translation processing type:
      • vtt: WebVTT format subtitle
      • srt: SRT format subtitle

    Note:

    • For ASR recognition method, passing blank or unspecified is not allowed when translating at least 2 languages.
    • For pure caption translation and OCR recognition translation methods, passing blank or unspecified is not allowed.
    • For OCR type tasks, passing blank or unspecified is allowed when suppression is enabled.
    TranslateSwitch String No

    Subtitle translation switch
    ON: Enable translation
    OFF: Disable translation

    Note: For pure subtitle translation mode, the default value is enabled if the field is unspecified. The field cannot be left blank or set to OFF.

    TranslateDstLanguage String No

    Subtitle target language
    Take effect when TranslateSwitch is ON. Translation language list:
    ab: Abkhaz
    ace: Acehnese
    ach: Acholi
    af: Afrikaans
    ak: Akan
    am: Amharic
    ar: Arabic
    as: Assamese
    ay: Aymara
    az: Azerbaijani
    ba: Bashkir
    ban: Balinese
    bbc: Batak Toba
    bem: Bemba
    bew: Betawi
    bg: Bulgarian
    bho: Bhojpuri
    bik: Bikol
    bm: Bambara
    bn: Bengali
    br: Breton
    bs: Bosnian
    btx: Batak Karo
    bts: Batak Simalungun
    bua: Buryat
    ca: Catalan
    ceb: Cebuano
    cgg: Kiga
    chm: Meadow Mari
    ckb: Kurdish (Sorani)
    cnh: Hakha Chin
    co: Corsican
    crh: Crimean Tatar
    crs: Seychellois Creole
    cs: Czech
    cv: Chuvash
    cy: Welsh
    da: Danish
    de: German
    din: Dinka
    doi: Dogri
    dov: Dombe
    dv: Dhivehi
    dz: Dzongkha
    ee: Ewe
    el: Greek
    en: English
    eo: Esperanto
    es: Spanish
    et: Estonian
    eu: Basque
    fa: Persian
    ff: Fula
    fi: Finnish
    fil: Filipino (Tagalog)
    fj: Fijian
    fr: French
    fr-CA: French (Canada)
    fr-FR: French (France)
    fy: Frisian
    ga: Irish
    gaa: Ga Language
    gd: Scottish Gaelic
    gl: Galician
    gn: Guarani
    gom: Konkani
    gu: Gujarati
    gv: Manx
    ha: Hausa
    haw: Hawaiian
    he: Hebrew
    hi: Hindi
    hil: Hiligaynon
    hmn: Hmong
    hr: Croatian
    hrx: Hunsrik
    ht: Haitian Creole
    hu: Hungarian
    hy: Armenian
    id: Indonesian
    ig: Igbo
    ilo: Ilocano
    is: Icelandic
    it: Italian
    iw: Hebrew
    ja: Japanese
    jv: Javanese
    ka: Georgian
    kk: Kazakh
    km: Khmer
    kn: Kannada
    ko: Korean
    kri: Krio
    ku: Kurdish (Kurmanji)
    ktu: Kituba
    ky: Kyrgyz
    la: Latin
    lb: Luxembourgish
    lg: Ganda (Luganda)
    li: Limburgish
    lij: Ligurian
    lmo: Lombard
    ln: Lingala
    lo: Lao
    lt: Lithuanian
    ltg: Latgalian
    luo: Luo
    lus: Mizo
    lv: Latvian
    mai: Maithili
    mak: Makassar
    mg: Malagasy
    mi: Maori
    min: Minangkabau
    mk: Macedonian
    ml: Malayalam
    mn: Mongolian
    mr: Marathi
    ms: Malay
    mt: Maltese
    my: Burmese
    ne: Nepali
    new: Newari
    nl: Dutch
    no: Norwegian
    nr: Southern Ndebele
    nso: Northern Sotho (Sepedi)
    nus: Nuer
    ny: Chichewa (Nyanja)
    oc: Occitan
    om: Oromo
    or: Odia
    pa: Punjabi
    pag: Pangasinan
    pam: Kapampangan
    pap: Papiamento
    pl: Polish
    ps: Pashto
    pt: Portuguese
    pt-BR: Portuguese (Brazil)
    pt-PT: Portuguese (Portugal)
    qu: Quechua
    ro: Romanian
    rom: Romani
    rn: Rundi
    ru: Russian
    rw: Kinyarwanda
    sa: Sanskrit
    scn: Sicilian
    sd: Sindhi
    sg: Sango
    shn: Shan
    si: Sinhalese
    sk: Slovak
    sl: Slovenian
    sm: Samoan
    sn: Shona
    so: Somali
    sq: Albanian
    sr: Serbian
    ss: Swati
    st: Sesotho
    su: Sundanese
    sv: Swedish
    sw: Swahili
    szl: Silesian
    ta: Tamil
    te: Telugu
    tet: Tetum
    tg: Tajik
    th: Thai
    ti: Tigrinya
    tk: Turkmen
    tn: Tswana
    tr: Turkish
    ts: Tsonga
    tt: Tatar
    ug: Uyghur
    uk: Ukrainian
    ur: Urdu
    uz: Uzbek
    vi: Vietnamese
    xh: Xhosa
    yi: Yiddish
    yo: Yoruba
    yua: Yucatec Maya
    yue: Cantonese
    zh: Simplified Chinese
    zh-TW: Traditional Chinese
    zu: Zulu

    Note: Use the multilingual method. / to separate, such as en/ja, which indicates English and Japanese.

    ExtInfo String No

    Custom parameter

    ProcessType Integer No

    Subtitle processing type:

    • 0: ASR recognition subtitle
    • 1: Pure caption translation
    • 2: OCR recognition subtitle

    Note: The default type is ASR recognition subtitle if the field is unspecified.

    SelectingSubtitleAreasConfig MPSSelectingSubtitleAreasConfig No

    Area configurations for the subtitle OCR extraction box

    SubtitleEmbedId Integer No

    Suppression Template id. Only allowed to fill in when ProcessType is 0 or 2 (task type is ASR or OCR).

    SpeakerMode Integer No

    Speaker identification mode. Valid values:
    0: Speaker identification is disabled.
    1: Speaker identification is enabled.
    Default value: 0.

    SpeakerLabel Integer No

    Indicates whether to output the identified speaker to the subtitle file. Valid values:
    0: The speaker is not output to the subtitle file.
    1: The speaker is output to the VTT subtitle file.
    Note: To use this parameter, the value of SpeakerMode cannot be 0.
    Default value: 0.

    MPSSelectingSubtitleAreasConfig

    Area configurations for the subtitle OCR extraction box.

    Used by actions: CreateMPSTemplate, ModifyMPSTemplate, ProcessMediaByMPS.

    Name Type Required Description
    AutoAreas Array of MPSEraseArea No

    Automatically select a custom region. For the selected areas, the AI model is used to automatically detect and extract the target content.

    SampleWidth Integer No

    Width of the sample video or image, in pixels.

    SampleHeight Integer No

    Height of the sample video or image, in pixels.

    MPSSmartErasePrivacyConfig

    Privacy protection configuration for the smart erasing template.

    Used by actions: CreateMPSTemplate, ModifyMPSTemplate, ProcessMediaByMPS.

    Name Type Required Description
    PrivacyModel String Yes

    Privacy protection removal method.

    Enumeration values:

    • blur: Blurry
    • mosaic: Mosaic
    PrivacyTargets Array of String Yes

    Privacy protection objective (during use in API Explorer, no need to import an array; just add the corresponding item and fill in the value).

    Enumeration values:

    • face: human face
    • plate: license plate

    MPSSmartEraseSubtitleConfig

    Subtitle removal configuration for the smart erasing template.

    Used by actions: CreateMPSTemplate, ModifyMPSTemplate, ProcessMediaByMPS.

    Name Type Required Description
    SubtitleEraseMethod String Yes

    Subtitle erasure method.
    Automatic erasing: Video subtitles are automatically recognized using an AI model and are erased without traces to generate a new video. However, missed or incorrect erasing may occur due to image interference and special subtitle styles. In this case, you can specify the erasing area.
    When using automatic erasing, if you do not specify AutoAreas, the default region (lower middle part of the frame) will be erased automatically. If AutoAreas is specified, the designated region will be erased instead.
    Specified area erasure: If your subtitle position is fixed, it is recommended to directly specify the erasure area to minimize missed erasures.
    When choosing specified area erasure, please input at least one designated region in CustomAreas.

    • auto: Automatic erasing
    • custom: Specified area erasure
    SubtitleModel String Yes

    Subtitle erasure model.
    Standard version (recommended): If your subtitles have a standard style, it is usually recommended to select this version for better effectiveness in seamless detail removal.
    Area edition: If the subtitles have special styles, such as calligraphy, shadow, or motion effects, you are recommended to select this edition to ensure a larger erasing area. However, the erasing effect in the details is not as good as the standard edition.

    • standard Standard model
    • area Regional model
    OcrSwitch String No

    Whether OCR subtitle extraction is enabled. The default value is OFF.
    OCR subtitle extraction is supported if and only if SubtitleEraseMethod is set to auto. When enabled, it identifies the text region that appears most persistently and stably within the automatic erasing area as the subtitle area. The text within the subtitle area is extracted and erased.

    • ON Enable
    • OFF Disable
    SubtitleLang String No

    Subtitle language, used to guide OCR recognition. Default value: zh_en. This parameter is valid only when OcrSwitch is set to "ON".

    • zh_en: Chinese and English
    • multi: other
      Other supported recognition languages are as follows:
      Chinese, English, Japanese, Korean, Spanish, French, German, Portuguese, Vietnamese, Malay, Russian, Italian, Dutch, Swedish, Finnish, Danish, Norwegian, Hungarian, Thai, Hindi, Arabic, India-Bengali, India-Gujarati, India-Kannada, India-Malayalam, India-Tamil, India-Telugu, Slovenian, Polish, Catalan, Bosnian, Czech, Estonian, Croatian, Punjabi, Marathi, Azerbaijani, Indonesian, Luxembourgish, Lithuanian, Latvian, Maltese, Slovak, Turkish, Kazakh, Greek, Irish, Belarusian, Khmer, Tagalog, Pashto, Persian, Tajik
    SubtitleFormat String No

    Subtitle file format. Default value: vtt. This parameter is valid only when OcrSwitch is set to "ON".

    • srt: SRT format
    • vtt: WebVTT format
    • When SubtitleEmbedId is filled in, you can set this parameter to an empty string, which means no subtitle file will be output.
    TransSwitch String No

    Whether caption translation is enabled. Default value: OFF. This parameter is valid only when OcrSwitch is set to "ON".

    • ON: enable
    • OFF: disable
    TransDstLang String No

    Subtitle translation target language, default value: en. This parameter is valid only when TransSwitch is set to "ON".
    Currently supported languages:
    zh: Simplified Chinese
    en: English
    ja: Japanese
    ko: Korean
    fr: French
    es: Spanish
    it: Italian
    de: German
    tr: Turkish
    ru: Russian
    pt: Portuguese
    vi: Vietnamese
    id: Indonesian
    ms: Malay
    th: Thai
    ar: Arabic
    hi: Hindi

    AutoAreas Array of MPSEraseArea No

    Automatically erase custom regions.
    For selected regions, use the AI model to automatically detect and erase existing targets.
    Note: When the erase method is set to custom, this parameter will not take effect. To modify the template, input [] for region cleanup. If not provided, the template region information remains unchanged.

    CustomAreas Array of MPSEraseTimeArea No

    Designate the removal of custom regions.
    For specified regions, directly perform erasure without detection and recognition within a selected time range.
    Note: When modifying the template, import [] to clear regions. The template region information remains unchanged if not imported.

    SubtitleEmbedId Integer No

    Subtitle suppression template id. Only allowed to fill in when OCR translation is enabled.

    UseOriginalPos Integer No

    Suppression configuration, enabled by default, compresses subtitles back to their original position. It can be filled only when OCR translation is turned on. A value of 0 indicates disabled suppression.

    UseOriginalSize Integer No

    Suppression configuration, enabled by default. After being turned on, the original subtitle font size is used. It can only be filled when OCR translation is enabled. Setting it to 0 means non-use of the original font size.

    MPSSmartEraseTaskInput

    Intelligent erasure task

    Used by actions: ProcessMediaByMPS.

    Name Type Required Description
    Definition Integer No

    id of the intelligent erasure template.

    RawParameter MPSRawSmartEraseParameter No

    Custom parameters for smart erasing. When Definition is set to 0, this parameter is valid. This parameter is used in highly customized scenarios. It is recommended to prioritize using Definition to specify smart erasing parameters.

    OverrideParameter MPSOverrideEraseParameter No

    Custom parameters for intelligent erasure. When the value of Definition is not 0, this parameter is valid. When certain erasure parameters in this structure are specified, the specified parameters will be used to overwrite those in the intelligent erasure template. This parameter is used in highly customized scenarios. It is recommended to use only Definition to specify intelligent erasure parameters.

    MPSSmartEraseTemplate

    Intelligent erasure template input for MPS

    Used by actions: CreateMPSTemplate.

    Name Type Required Description
    Name String Yes

    Length limit for the smart erasing template name: 64 characters.

    EraseType String Yes

    Removal Type

    • subtitle removal
    • watermark removal
    • privacy protection
    Comment String No

    Length limit for the description information of the smart erasing template: 256 characters.

    EraseSubtitleConfig MPSSmartEraseSubtitleConfig No

    Subtitle erasing configuration. This parameter is required and valid only when the value of EraseType is set to subtitle.

    EraseWatermarkConfig MPSSmartEraseWatermarkConfig No

    Watermark erasing configuration. This parameter is required and valid only when the value of EraseType is set to watermark.

    ErasePrivacyConfig MPSSmartErasePrivacyConfig No

    Privacy protection configuration. This parameter is required and valid only when the value of EraseType is set to privacy.

    SampleWidth Integer No

    Width of the sample video or image, in pixels.

    SampleHeight Integer No

    Height of the sample video or image, in pixels.

    MPSSmartEraseTemplateForUpdate

    Input for MPS intelligent erasure template

    Used by actions: ModifyMPSTemplate.

    Name Type Required Description
    Definition Integer Yes

    Unique identifier of the intelligent erasure template

    Name String Yes

    Length limit for the smart erasing template name: 64 characters.

    EraseType String Yes

    Removal Type

    • subtitle removal
    • watermark removal
    • privacy protection
    Comment String No

    Length limit for the description information of the smart erasing template: 256 characters.

    EraseSubtitleConfig MPSSmartEraseSubtitleConfig No

    Subtitle erasing configuration. It takes effect when the value of EraseType is set to subtitle, or when the value of EraseType is left unspecified but the original EraseType value of the modified template is subtitle.

    EraseWatermarkConfig MPSSmartEraseWatermarkConfig No

    Watermark erasing configuration. The value of EraseType can be set to watermark or left unspecified. This parameter is valid only when the value of EraseType of the corresponding template is set to watermark.

    ErasePrivacyConfig MPSSmartErasePrivacyConfig No

    Privacy protection configuration. The value of EraseType can be set to privacy or left unspecified. This parameter is valid only when the value of EraseType of the corresponding template is set to privacy.

    SampleWidth Integer No

    Width of the sample video or image, in pixels.

    SampleHeight Integer No

    Height of the sample video or image, in pixels.

    MPSSmartEraseWatermarkConfig

    Watermark removal configuration for the smart erasing template.

    Used by actions: CreateMPSTemplate, ModifyMPSTemplate, ProcessMediaByMPS.

    Name Type Required Description
    WatermarkEraseMethod String Yes

    Watermark removal method. Auto removal: Model A automatically recognizes watermarks in the video and generates a new video after removal. Suitable for dynamic watermarks. When using auto removal, if you do not specify AutoAreas, auto removal will be performed on the full screen of the video; if AutoAreas is specified, auto removal will be performed on your specified areas instead. Specified area removal: For static watermarks with relatively fixed positions, it is recommended to directly specify the removal area. When you choose specified area removal, at least one specified area must be provided. - auto: auto removal - custom: specified area removal

    WatermarkModel String Yes

    Watermark removal model. Basic Edition: provides average effects and high cost performance. It applies to animations or videos with clean backgrounds. Advanced Edition: provides better effectiveness and is suitable for realistic-style videos such as mini-dramas. - basic edition - advanced edition

    AutoAreas Array of MPSEraseArea No

    Automatically erase custom regions. For selected regions, use the AI model to automatically detect and erase existing targets. Note: When the erase method is set to custom, this parameter will not take effect. Input [] for region cleanup. If not provided, the template region information remains unchanged.

    CustomAreas Array of MPSEraseTimeArea No

    Designate the removal of custom regions. For specified regions, directly perform erasure without detection and recognition within a selected time range. Note: Import [] to clear regions. The template region information remains unchanged if not imported.

    MPSSmartSubtitleTemplate

    Intelligent subtitle template input for MPS

    Used by actions: CreateMPSTemplate.

    Name Type Required Description
    Name String Yes

    Intelligent subtitle template name
    Length limit: 64 characters.

    Comment String Yes

    Intelligent caption template description information
    Length limit: 256 characters.

    SubtitleType Integer Yes

    Smart subtitle language type.
    0: source language.
    1: target language.
    2: source language and target language.
    Only 0 is supported when TranslateSwitch is OFF.
    Only 1 or 2 is supported when TranslateSwitch is ON.

    VideoSrcLanguage String No

    Smart subtitling video source language
    OCR recognition supports the following languages:
    zh_en: Chinese-English
    multi: Other
    ASR recognition and pure caption translation currently support the following languages:
    auto: Auto-identification
    zh: Simplified Chinese
    en: English
    ja: Japanese
    ko: Korean
    zh-PY: Chinese-English-Cantonese
    zh_medical: Chinese health care
    vi: Vietnamese
    ms: Malay
    id: Indonesian
    fil: Filipino
    th: Thai
    pt: Portuguese
    tr: Turkish
    ar: Arabic
    es: Spanish
    hi: Hindi
    fr: French
    de: German
    it: Italian
    zh_dialect: Chinese dialect
    zh_en: Chinese-English
    yue: Cantonese
    ru: Russian
    prime_zh: Chinese-English dialect
    af-ZA: Afrikaans (South Africa)
    sq-AL: Albanian (Albania)
    am-ET: Amharic (Ethiopia)
    ar-DZ: Arabic (Algeria)
    ar-BH: Arabic (Bahrain)
    ar-EG: Arabic (Egypt)
    ar-IQ: Arabic (Iraq)
    ar-IL: Arabic (Israel)
    ar-JO: Arabic (Jordan)
    ar-KW: Arabic (Kuwait)
    ar-LB: Arabic (Lebanon)
    ar-MR: Arabic (Mauritania)
    ar-MA: Arabic (Morocco)
    ar-OM: Arabic (Oman)
    ar-QA: Arabic (Qatar)
    ar-SA: Arabic (Saudi Arabia)
    ar-PS: Arabic (State of Palestine)
    ar-SY: Arabic (Syria)
    ar-TN: Arabic (Tunisia)
    ar-AE: Arabic (United Arab Emirates)
    ar-YE: Arabic (Yemen)
    hy-AM: Armenian (Armenia)
    az-AZ: Azerbaijani (Azerbaijan)
    eu-ES: Basque (Spain)
    bn-BD: Bengali (Bangladesh)
    bn-IN: Bengali (India)
    bs-BA: Bosnian (Bosnia and Herzegovina)
    bg-BG: Bulgarian (Bulgaria)
    my-MM: Burmese (Myanmar)
    ca-ES: Catalan (Spain)
    hr-HR: Croatian (Croatia)
    cs-CZ: Czech (Czech Republic)
    da-DK: Danish (Denmark)
    nl-BE: Dutch (Belgium)
    nl-NL: Dutch (Netherlands)
    en-AU: English (Australia)
    en-CA: English (Canada)
    en-GH: English (Ghana)
    en-HK: English (Hong Kong (China))
    en-IN: English (India)
    en-IE: English (Ireland)
    en-KE: English (Kenya)
    en-NZ: English (New Zealand)
    en-NG: English (Nigeria)
    en-PK: English (Pakistan)
    en-PH: English (Philippines)
    en-SG: English (Singapore)
    en-ZA: English (South Africa)
    en-TZ: English (Tanzania)
    en-GB: English (UK)
    en-US: English (United States)
    et-EE: Estonian (Estonia)
    fil-PH: Filipino (Philippines)
    fi-FI: Finnish (Finland)
    fr-BE: French (Belgium)
    fr-CA: French (Canada)
    fr-FR: French (France)
    fr-CH: French (Switzerland)
    gl-ES: Galician (Spain)
    ka-GE: Georgian (Georgia)
    el-GR: Greek (Greece)
    gu-IN: Gujarati (India)
    iw-IL: Hebrew (Israel)
    hi-IN: Hindi (India)
    hu-HU: Hungarian (Hungary)
    is-IS: Icelandic (Iceland)
    id-ID: Indonesian (Indonesia)
    it-IT: Italian (Italy)
    it-CH: Italian (Switzerland)
    ja-JP: Japanese (Japan)
    jv-ID: Javanese (Indonesia)
    kn-IN: Kannada (India)
    kk-KZ: Kazakh (Kazakhstan)
    km-KH: Khmer (Cambodia)
    rw-RW: Kinyarwanda (Rwanda)
    ko-KR: Korean (South Korea)
    lo-LA: Lao (Laos)
    lv-LV: Latvian (Latvia)
    lt-LT: Lithuanian (Lithuania)
    mk-MK: Macedonian (North Macedonia)
    ms-MY: Malay (Malaysia)
    ml-IN: Malayalam (India)
    mr-IN: Marathi (India)
    mn-MN: Mongolian (Mongolia)
    ne-NP: Nepali (Nepal)
    no-NO: Norwegian Bokmål (Norway)
    fa-IR: Persian (Iran)
    pl-PL: Polish (Poland)
    pt-BR: Portuguese (Brazil)
    pt-PT: Portuguese (Portugal)
    ro-RO: Romanian (Romania)
    ru-RU: Russian (Russia)
    sr-RS: Serbian (Serbia)
    si-LK: Sinhalese (Sri Lanka)
    sk-SK: Slovak (Slovakia)
    sl-SI: Slovenian (Slovenia)
    st-ZA: Southern Sotho (South Africa)
    es-AR: Spanish (Argentina)
    es-BO: Spanish (Bolivia)
    es-CL: Spanish (Chile)
    es-CO: Spanish (Colombia)
    es-CR: Spanish (Costa Rica)
    es-DO: Spanish (Dominican Republic)
    es-EC: Spanish (Ecuador)
    es-SV: Spanish (El Salvador)
    es-GT: Spanish (Guatemala)
    es-HN: Spanish (Honduras)
    es-MX: Spanish (Mexico)
    es-NI: Spanish (Nicaragua)
    es-PA: Spanish (Panama)
    es-PY: Spanish (Paraguay)
    es-PE: Spanish (Peru)
    es-PR: Spanish (Puerto Rico)
    es-ES: Spanish (Spain)
    es-US: Spanish (United States)
    es-UY: Spanish (Uruguay)
    es-VE: Spanish (Venezuela)
    su-ID: Sundanese (Indonesia)
    sw-KE: Swahili (Kenya)
    sw-TZ: Swahili (Tanzania)
    sv-SE: Swedish (Sweden)
    ta-IN: Tamil (India)
    ta-MY: Tamil (Malaysia)
    ta-SG: Tamil (Singapore)
    ta-LK: Tamil (Sri Lanka)
    te-IN: Telugu (India)
    th-TH: Thai (Thailand)
    ts-ZA: Tsonga (South Africa)
    tr-TR: Turkish (Türkiye)
    uk-UA: Ukrainian (Ukraine)
    ur-IN: Urdu (India)
    ur-PK: Urdu (Pakistan)
    uz-UZ: Uzbek (Uzbekistan)
    ve-ZA: Venda (South Africa)vi-VN: Vietnamese (Vietnam)
    xh-ZA: Xhosa (South Africa)
    zu-ZA: Zulu (South Africa)

    SubtitleFormat String No

    Intelligent subtitle file format:

    • For ASR recognition translation processing type:
      • vtt: WebVTT format subtitle
      • srt: SRT format subtitle
      • Leave blank or fill in the blank: no subtitle file generated
    • For pure subtitle translation processing type:
      • original: consistent with the source file
      • vtt: WebVTT format subtitle
      • srt: SRT format subtitle
    • For OCR recognition translation processing type:
      • vtt: WebVTT format subtitle
      • srt: SRT format subtitle

    Note:

    • For ASR recognition method, do not leave blank or not pass when translating 2 or more languages.
    • For pure subtitle translation method, do not leave blank or not pass.
    • For OCR tasks, it is allowed to leave blank or not pass when suppression is enabled.
    TranslateSwitch String No

    Subtitle translation switch
    ON: Enable translation
    OFF: Disable translation

    Note: For pure subtitle translation mode, the default value is enabled if the field is unspecified. The field cannot be left blank or set to OFF.

    TranslateDstLanguage String No

    Subtitle target language
    Take effect when TranslateSwitch is ON. Translation language list:
    ab: Abkhaz
    ace: Acehnese
    ach: Acholi
    af: Afrikaans
    ak: Akan
    am: Amharic
    ar: Arabic
    as: Assamese
    ay: Aymara
    az: Azerbaijani
    ba: Bashkir
    ban: Balinese
    bbc: Batak Toba
    bem: Bemba
    bew: Betawi
    bg: Bulgarian
    bho: Bhojpuri
    bik: Bikol
    bm: Bambara
    bn: Bengali
    br: Breton
    bs: Bosnian
    btx: Batak Karo
    bts: Batak Simalungun
    bua: Buryat
    ca: Catalan
    ceb: Cebuano
    cgg: Kiga
    chm: Meadow Mari
    ckb: Kurdish (Sorani)
    cnh: Hakha Chin
    co: Corsican
    crh: Crimean Tatar
    crs: Seychellois Creole
    cs: Czech
    cv: Chuvash
    cy: Welsh
    da: Danish
    de: German
    din: Dinka
    doi: Dogri
    dov: Dombe
    dv: Dhivehi
    dz: Dzongkha
    ee: Ewe
    el: Greek
    en: English
    eo: Esperanto
    es: Spanish
    et: Estonian
    eu: Basque
    fa: Persian
    ff: Fula
    fi: Finnish
    fil: Filipino (Tagalog)
    fj: Fijian
    fr: French
    fr-CA: French (Canada)
    fr-FR: French (France)
    fy: Frisian
    ga: Irish
    gaa: Ga Language
    gd: Scottish Gaelic
    gl: Galician
    gn: Guarani
    gom: Konkani
    gu: Gujarati
    gv: Manx
    ha: Hausa
    haw: Hawaiian
    he: Hebrew
    hi: Hindi
    hil: Hiligaynon
    hmn: Hmong
    hr: Croatian
    hrx: Hunsrik
    ht: Haitian Creole
    hu: Hungarian
    hy: Armenian
    id: Indonesian
    ig: Igbo
    ilo: Ilocano
    is: Icelandic
    it: Italian
    iw: Hebrew
    ja: Japanese
    jv: Javanese
    ka: Georgian
    kk: Kazakh
    km: Khmer
    kn: Kannada
    ko: Korean
    kri: Krio
    ku: Kurdish (Kurmanji)
    ktu: Kituba
    ky: Kyrgyz
    la: Latin
    lb: Luxembourgish
    lg: Ganda (Luganda)
    li: Limburgish
    lij: Ligurian
    lmo: Lombard
    ln: Lingala
    lo: Lao
    lt: Lithuanian
    ltg: Latgalian
    luo: Luo
    lus: Mizo
    lv: Latvian
    mai: Maithili
    mak: Makassar
    mg: Malagasy
    mi: Maori
    min: Minangkabau
    mk: Macedonian
    ml: Malayalam
    mn: Mongolian
    mr: Marathi
    ms: Malay
    mt: Maltese
    my: Burmese
    ne: Nepali
    new: Newari
    nl: Dutch
    no: Norwegian
    nr: Southern Ndebele
    nso: Northern Sotho (Sepedi)
    nus: Nuer
    ny: Chichewa (Nyanja)
    oc: Occitan
    om: Oromo
    or: Odia
    pa: Punjabi
    pag: Pangasinan
    pam: Kapampangan
    pap: Papiamento
    pl: Polish
    ps: Pashto
    pt: Portuguese
    pt-BR: Portuguese (Brazil)
    pt-PT: Portuguese (Portugal)
    qu: Quechua
    ro: Romanian
    rom: Romani
    rn: Rundi
    ru: Russian
    rw: Kinyarwanda
    sa: Sanskrit
    scn: Sicilian
    sd: Sindhi
    sg: Sango
    shn: Shan
    si: Sinhalese
    sk: Slovak
    sl: Slovenian
    sm: Samoan
    sn: Shona
    so: Somali
    sq: Albanian
    sr: Serbian
    ss: Swati
    st: Sesotho
    su: Sundanese
    sv: Swedish
    sw: Swahili
    szl: Silesian
    ta: Tamil
    te: Telugu
    tet: Tetum
    tg: Tajik
    th: Thai
    ti: Tigrinya
    tk: Turkmen
    tn: Tswana
    tr: Turkish
    ts: Tsonga
    tt: Tatar
    ug: Uyghur
    uk: Ukrainian
    ur: Urdu
    uz: Uzbek
    vi: Vietnamese
    xh: Xhosa
    yi: Yiddish
    yo: Yoruba
    yua: Yucatec Maya
    yue: Cantonese
    zh: Simplified Chinese
    zh-TW: Traditional Chinese
    zu: Zulu

    Note: Use the multilingual method. / to separate, such as en/ja, which indicates English and Japanese.

    ProcessType Integer No

    Subtitle processing type:

    • 0: ASR recognition subtitle
    • 1: Pure caption translation
    • 2: OCR recognition subtitle

    Note: The default type is ASR recognition subtitle if the field is unspecified.

    SelectingSubtitleAreasConfig MPSSelectingSubtitleAreasConfig No

    Area configurations for the subtitle OCR extraction box

    SubtitleEmbedId Integer No

    Suppression Template id. Only allowed to fill in when ProcessType is 0 or 2 (task type is ASR or OCR). Cannot fill in when multiple target languages are enabled.

    SpeakerMode Integer No

    Speaker identification switch. Valid values:
    0: Speaker identification is disabled.
    1: Speaker identification is enabled.
    By default, speaker identification is disabled.

    SpeakerLabel Integer No

    Indicates whether to output the identified speaker to the subtitle file. Valid values:
    0: The speaker is not output to the subtitle file.
    1: The speaker is output to the VTT subtitle file.
    Note: To use this parameter, the value of SpeakerMode cannot be 0.
    By default, the speaker is not output to the subtitle file.

    MPSSmartSubtitleTemplateForUpdate

    Input for MPS smart subtitle template

    Used by actions: ModifyMPSTemplate.

    Name Type Required Description
    Definition Integer Yes

    Unique identifier of the smart subtitle template.

    Name String Yes

    Intelligent subtitle template name
    Length limit: 64 characters.

    Comment String Yes

    Intelligent caption template description information
    Length limit: 256 characters.

    SubtitleType Integer Yes

    Smart subtitle language type.
    0: source language.
    1: target language.
    2: source language and target language.
    Only 0 is supported when TranslateSwitch is OFF.
    Only 1 or 2 is supported when TranslateSwitch is ON.

    VideoSrcLanguage String No

    Smart subtitling video source language
    OCR recognition supports the following languages:
    zh_en: Chinese-English
    multi: Other
    ASR recognition and pure caption translation currently support the following languages:
    auto: Auto-identification
    zh: Simplified Chinese
    en: English
    ja: Japanese
    ko: Korean
    zh-PY: Chinese-English-Cantonese
    zh_medical: Chinese health care
    vi: Vietnamese
    ms: Malay
    id: Indonesian
    fil: Filipino
    th: Thai
    pt: Portuguese
    tr: Turkish
    ar: Arabic
    es: Spanish
    hi: Hindi
    fr: French
    de: German
    it: Italian
    zh_dialect: Chinese dialect
    zh_en: Chinese-English
    yue: Cantonese
    ru: Russian
    prime_zh: Chinese-English dialect
    af-ZA: Afrikaans (South Africa)
    sq-AL: Albanian (Albania)
    am-ET: Amharic (Ethiopia)
    ar-DZ: Arabic (Algeria)
    ar-BH: Arabic (Bahrain)
    ar-EG: Arabic (Egypt)
    ar-IQ: Arabic (Iraq)
    ar-IL: Arabic (Israel)
    ar-JO: Arabic (Jordan)
    ar-KW: Arabic (Kuwait)
    ar-LB: Arabic (Lebanon)
    ar-MR: Arabic (Mauritania)
    ar-MA: Arabic (Morocco)
    ar-OM: Arabic (Oman)
    ar-QA: Arabic (Qatar)
    ar-SA: Arabic (Saudi Arabia)
    ar-PS: Arabic (State of Palestine)
    ar-SY: Arabic (Syria)
    ar-TN: Arabic (Tunisia)
    ar-AE: Arabic (United Arab Emirates)
    ar-YE: Arabic (Yemen)
    hy-AM: Armenian (Armenia)
    az-AZ: Azerbaijani (Azerbaijan)
    eu-ES: Basque (Spain)
    bn-BD: Bengali (Bangladesh)
    bn-IN: Bengali (India)
    bs-BA: Bosnian (Bosnia and Herzegovina)
    bg-BG: Bulgarian (Bulgaria)
    my-MM: Burmese (Myanmar)
    ca-ES: Catalan (Spain)
    hr-HR: Croatian (Croatia)
    cs-CZ: Czech (Czech Republic)
    da-DK: Danish (Denmark)
    nl-BE: Dutch (Belgium)
    nl-NL: Dutch (Netherlands)
    en-AU: English (Australia)
    en-CA: English (Canada)
    en-GH: English (Ghana)
    en-HK: English (Hong Kong (China))
    en-IN: English (India)
    en-IE: English (Ireland)
    en-KE: English (Kenya)
    en-NZ: English (New Zealand)
    en-NG: English (Nigeria)
    en-PK: English (Pakistan)
    en-PH: English (Philippines)
    en-SG: English (Singapore)
    en-ZA: English (South Africa)
    en-TZ: English (Tanzania)
    en-GB: English (UK)
    en-US: English (United States)
    et-EE: Estonian (Estonia)
    fil-PH: Filipino (Philippines)
    fi-FI: Finnish (Finland)
    fr-BE: French (Belgium)
    fr-CA: French (Canada)
    fr-FR: French (France)
    fr-CH: French (Switzerland)
    gl-ES: Galician (Spain)
    ka-GE: Georgian (Georgia)
    el-GR: Greek (Greece)
    gu-IN: Gujarati (India)
    iw-IL: Hebrew (Israel)
    hi-IN: Hindi (India)
    hu-HU: Hungarian (Hungary)
    is-IS: Icelandic (Iceland)
    id-ID: Indonesian (Indonesia)
    it-IT: Italian (Italy)
    it-CH: Italian (Switzerland)
    ja-JP: Japanese (Japan)
    jv-ID: Javanese (Indonesia)
    kn-IN: Kannada (India)
    kk-KZ: Kazakh (Kazakhstan)
    km-KH: Khmer (Cambodia)
    rw-RW: Kinyarwanda (Rwanda)
    ko-KR: Korean (South Korea)
    lo-LA: Lao (Laos)
    lv-LV: Latvian (Latvia)
    lt-LT: Lithuanian (Lithuania)
    mk-MK: Macedonian (North Macedonia)
    ms-MY: Malay (Malaysia)
    ml-IN: Malayalam (India)
    mr-IN: Marathi (India)
    mn-MN: Mongolian (Mongolia)
    ne-NP: Nepali (Nepal)
    no-NO: Norwegian Bokmål (Norway)
    fa-IR: Persian (Iran)
    pl-PL: Polish (Poland)
    pt-BR: Portuguese (Brazil)
    pt-PT: Portuguese (Portugal)
    ro-RO: Romanian (Romania)
    ru-RU: Russian (Russia)
    sr-RS: Serbian (Serbia)
    si-LK: Sinhalese (Sri Lanka)
    sk-SK: Slovak (Slovakia)
    sl-SI: Slovenian (Slovenia)
    st-ZA: Southern Sotho (South Africa)
    es-AR: Spanish (Argentina)
    es-BO: Spanish (Bolivia)
    es-CL: Spanish (Chile)
    es-CO: Spanish (Colombia)
    es-CR: Spanish (Costa Rica)
    es-DO: Spanish (Dominican Republic)
    es-EC: Spanish (Ecuador)
    es-SV: Spanish (El Salvador)
    es-GT: Spanish (Guatemala)
    es-HN: Spanish (Honduras)
    es-MX: Spanish (Mexico)
    es-NI: Spanish (Nicaragua)
    es-PA: Spanish (Panama)
    es-PY: Spanish (Paraguay)
    es-PE: Spanish (Peru)
    es-PR: Spanish (Puerto Rico)
    es-ES: Spanish (Spain)
    es-US: Spanish (United States)
    es-UY: Spanish (Uruguay)
    es-VE: Spanish (Venezuela)
    su-ID: Sundanese (Indonesia)
    sw-KE: Swahili (Kenya)
    sw-TZ: Swahili (Tanzania)
    sv-SE: Swedish (Sweden)
    ta-IN: Tamil (India)
    ta-MY: Tamil (Malaysia)
    ta-SG: Tamil (Singapore)
    ta-LK: Tamil (Sri Lanka)
    te-IN: Telugu (India)
    th-TH: Thai (Thailand)
    ts-ZA: Tsonga (South Africa)
    tr-TR: Turkish (Türkiye)
    uk-UA: Ukrainian (Ukraine)
    ur-IN: Urdu (India)
    ur-PK: Urdu (Pakistan)
    uz-UZ: Uzbek (Uzbekistan)
    ve-ZA: Venda (South Africa)vi-VN: Vietnamese (Vietnam)
    xh-ZA: Xhosa (South Africa)
    zu-ZA: Zulu (South Africa)

    SubtitleFormat String No

    Intelligent subtitle file format:

    • For ASR recognition translation processing type:
      • vtt: WebVTT format subtitle
      • srt: SRT format subtitle
      • Leave blank or fill in the blank: no subtitle file generated
    • For pure subtitle translation processing type:
      • original: consistent with the source file
      • vtt: WebVTT format subtitle
      • srt: SRT format subtitle
    • For OCR recognition translation processing type:
      • vtt: WebVTT format subtitle
      • srt: SRT format subtitle

    Note:

    • For ASR recognition method, do not leave blank or not pass when translating 2 or more languages.
    • For pure subtitle translation method, do not leave blank or not pass.
    • For OCR tasks, it is allowed to leave blank or not pass when suppression is enabled.
    TranslateSwitch String No

    Subtitle translation switch
    ON: Enable translation
    OFF: Disable translation

    Note: For pure subtitle translation mode, the default value is enabled if the field is unspecified. The field cannot be left blank or set to OFF.

    TranslateDstLanguage String No

    Subtitle target language
    Take effect when TranslateSwitch is ON. Translation language list:
    ab: Abkhaz
    ace: Acehnese
    ach: Acholi
    af: Afrikaans
    ak: Akan
    am: Amharic
    ar: Arabic
    as: Assamese
    ay: Aymara
    az: Azerbaijani
    ba: Bashkir
    ban: Balinese
    bbc: Batak Toba
    bem: Bemba
    bew: Betawi
    bg: Bulgarian
    bho: Bhojpuri
    bik: Bikol
    bm: Bambara
    bn: Bengali
    br: Breton
    bs: Bosnian
    btx: Batak Karo
    bts: Batak Simalungun
    bua: Buryat
    ca: Catalan
    ceb: Cebuano
    cgg: Kiga
    chm: Meadow Mari
    ckb: Kurdish (Sorani)
    cnh: Hakha Chin
    co: Corsican
    crh: Crimean Tatar
    crs: Seychellois Creole
    cs: Czech
    cv: Chuvash
    cy: Welsh
    da: Danish
    de: German
    din: Dinka
    doi: Dogri
    dov: Dombe
    dv: Dhivehi
    dz: Dzongkha
    ee: Ewe
    el: Greek
    en: English
    eo: Esperanto
    es: Spanish
    et: Estonian
    eu: Basque
    fa: Persian
    ff: Fula
    fi: Finnish
    fil: Filipino (Tagalog)
    fj: Fijian
    fr: French
    fr-CA: French (Canada)
    fr-FR: French (France)
    fy: Frisian
    ga: Irish
    gaa: Ga Language
    gd: Scottish Gaelic
    gl: Galician
    gn: Guarani
    gom: Konkani
    gu: Gujarati
    gv: Manx
    ha: Hausa
    haw: Hawaiian
    he: Hebrew
    hi: Hindi
    hil: Hiligaynon
    hmn: Hmong
    hr: Croatian
    hrx: Hunsrik
    ht: Haitian Creole
    hu: Hungarian
    hy: Armenian
    id: Indonesian
    ig: Igbo
    ilo: Ilocano
    is: Icelandic
    it: Italian
    iw: Hebrew
    ja: Japanese
    jv: Javanese
    ka: Georgian
    kk: Kazakh
    km: Khmer
    kn: Kannada
    ko: Korean
    kri: Krio
    ku: Kurdish (Kurmanji)
    ktu: Kituba
    ky: Kyrgyz
    la: Latin
    lb: Luxembourgish
    lg: Ganda (Luganda)
    li: Limburgish
    lij: Ligurian
    lmo: Lombard
    ln: Lingala
    lo: Lao
    lt: Lithuanian
    ltg: Latgalian
    luo: Luo
    lus: Mizo
    lv: Latvian
    mai: Maithili
    mak: Makassar
    mg: Malagasy
    mi: Maori
    min: Minangkabau
    mk: Macedonian
    ml: Malayalam
    mn: Mongolian
    mr: Marathi
    ms: Malay
    mt: Maltese
    my: Burmese
    ne: Nepali
    new: Newari
    nl: Dutch
    no: Norwegian
    nr: Southern Ndebele
    nso: Northern Sotho (Sepedi)
    nus: Nuer
    ny: Chichewa (Nyanja)
    oc: Occitan
    om: Oromo
    or: Odia
    pa: Punjabi
    pag: Pangasinan
    pam: Kapampangan
    pap: Papiamento
    pl: Polish
    ps: Pashto
    pt: Portuguese
    pt-BR: Portuguese (Brazil)
    pt-PT: Portuguese (Portugal)
    qu: Quechua
    ro: Romanian
    rom: Romani
    rn: Rundi
    ru: Russian
    rw: Kinyarwanda
    sa: Sanskrit
    scn: Sicilian
    sd: Sindhi
    sg: Sango
    shn: Shan
    si: Sinhalese
    sk: Slovak
    sl: Slovenian
    sm: Samoan
    sn: Shona
    so: Somali
    sq: Albanian
    sr: Serbian
    ss: Swati
    st: Sesotho
    su: Sundanese
    sv: Swedish
    sw: Swahili
    szl: Silesian
    ta: Tamil
    te: Telugu
    tet: Tetum
    tg: Tajik
    th: Thai
    ti: Tigrinya
    tk: Turkmen
    tn: Tswana
    tr: Turkish
    ts: Tsonga
    tt: Tatar
    ug: Uyghur
    uk: Ukrainian
    ur: Urdu
    uz: Uzbek
    vi: Vietnamese
    xh: Xhosa
    yi: Yiddish
    yo: Yoruba
    yua: Yucatec Maya
    yue: Cantonese
    zh: Simplified Chinese
    zh-TW: Traditional Chinese
    zu: Zulu

    Note: Use the multilingual method. / to separate, such as en/ja, which indicates English and Japanese.

    ProcessType Integer No

    Subtitle processing type:

    • 0: ASR recognition subtitle
    • 1: Pure caption translation
    • 2: OCR recognition subtitle

    Note: ASR is selected by default if the field is unspecified.

    SelectingSubtitleAreasConfig MPSSelectingSubtitleAreasConfig No

    Area configurations for the subtitle OCR extraction box

    SubtitleEmbedId Integer No

    Suppression Template id. Only allowed to fill in when ProcessType is 0 or 2 (task type is ASR or OCR). Cannot fill in when multiple target languages are enabled.

    SpeakerMode Integer No

    Speaker identification switch. Valid values:
    0: Speaker identification is disabled.
    1: Speaker identification is enabled.

    SpeakerLabel Integer No

    Indicates whether to output the identified speaker to the subtitle file. Valid values:
    0: The speaker is not output to the subtitle file.
    1: The speaker is output to the VTT subtitle file.
    Note: To use this parameter, the value of SpeakerMode cannot be 0.

    MPSSmartSubtitlesTaskInput

    Smart subtitle input struct.

    Used by actions: ProcessMediaByMPS.

    Name Type Required Description
    Definition Integer No

    Smart subtitle template ID.

    RawParameter MPSRawSmartSubtitleParameter No

    Custom smart subtitle parameter. It takes effect when Definition is set to 0. This parameter is used in high customization scenarios. It is recommended that you preferentially use Definition to specify smart subtitle parameters.

    MPSSubTaskResult

    Type of the MPS subtask query result.

    Used by actions: DescribeTaskDetail, PullEvents.

    Name Type Description
    TaskType String Task type. The specific subtask type in the WorkflowTask structure of MPS. Value:
  • MediaProcess.Transcode: audio and video transcoding task.
  • AiAnalysis.DeLogo: intelligent erasure task.
  • AiAnalysis.ClassificationTask: intelligent classification task.
  • AiAnalysis.CoverTask: Intelligent Cover Task.
  • AiAnalysis.TagTask: intelligent tag task.
  • AiAnalysis.FrameTagTask: intelligent frame-specific tagging task.
  • AiAnalysis.HighlightTask: intelligent highlight task.
  • AiAnalysis.SegmentTask: intelligent video splitting task.
  • AiAnalysis.HeadTailTask: intelligent opening and closing credits task.
  • AiAnalysis.DescriptionTask: intelligent summarization task.
  • AiAnalysis.HorizontalToVerticalTask: Intelligent Landscape to Portrait Task.
  • AiAnalysis.DubbingTask: intelligent dubbing task.
  • AiAnalysis.VideoRemakeTask: intelligent deduplication task.
  • AiAnalysis.VideoComprehensionTask: video understanding task.
  • SmartSubtitle.AsrFullTextTask: intelligent speech full-text recognition task.
  • SmartSubtitle.TransTextTask: Translation result.
  • SmartSubtitle.PureSubtitleTransTask: returns the translation result of a pure subtitle file.
  • SmartSubtitle.OcrFullTextTask: intelligent text extraction subtitle task.
  • SmartErase: intelligent erasure task.

  • Status String Task status. It has three values: PROCESSING, SUCCESS, and FAIL.
    ErrCode String Error code. 0 indicates success. Other values indicate failure.
    Message String Error message.
    Input String Input of the MPS video processing task. This field corresponds to the Input result returned by the MPS task, returned in JSON format.
    Output MPSTaskOutput Output of the MPS video processing task.

    MPSSubtitleBoardConfig

    MPS subtitle suppression module background settings

    Used by actions: CreateMPSTemplate, ModifyMPSTemplate.

    Name Type Required Description
    SubtitleBoardConfigSwitch Integer No

    Subtitle suppression module background configuration switch, 0 for off, 1 for on, default 0

    BoardX Integer No

    The X-coordinate position of the subtitle background base plate. Supports pixel and percentage formats: - Pixel: Npx, where N ranges from [-4096, 4096]. - Percentage: N%, where N ranges from [-100, 100]; for example, 10% means the X-coordinate of the subtitle background base plate equals 10% of the source video width. Default value: 0px. Note: The origin of the coordinate axes is at the bottom of the central axis of the source video, and the reference point of the subtitle base plate is at the bottom of its central axis. Refer to the figure below: image

    BoardXUnit Integer No

    BoardX unit, 0 pixel, 1 percentage, default is 0, pixel

    BoardY Integer No

    Y-coordinate position of the subtitle background base plate. Supports pixel and percentage formats: - Pixel: Npx, where N ranges from [0,4096]. - Percentage: N%, where N ranges from [0,100]. For example, 10% means the subtitle background base plate Y-coordinate = 10% * source video height. If not specified, the subtitle background base plate is disabled. Note: The coordinate axis origin is located at the bottom of the central axis of the source video, and the reference point of the subtitle background base plate is at the bottom of its central axis. Refer to the figure below: image

    BoardYUnit Integer No

    BoardY unit, 0 pixel, 1 percentage, default is 0, pixel

    BoardWidth Integer No

    Width of the base plate, a positive integer. - When representing pixels, value ranges from 0 to 4096. - When representing a percentage, value ranges from 0 to 100. If base plate is enabled and this parameter is not specified, the default width is 90% of the source video width.

    BoardWidthUnit Integer No

    Background width measurement unit. 0: pixel, 1: percentage. Default is 0 (pixel).

    BoardHeight Integer No

    Height of the base plate, positive integer. - When representing pixels, value ranges from 0 to 4096. - When representing a percentage, value ranges from 0 to 100. If background is enabled and this parameter is not specified, the default height is 15% of the source video height.

    BoardHeightUnit Integer No

    Base plate height unit, 0 pixel, 1 percentage, defaults to 0, pixel

    BoardColor String No

    Base plate color. Format: 0xRRGGBB. Default value: 0x000000 (black).

    BoardAlpha Float No

    Subtitle background transparency. Value range: [0, 1].

  • 0: completely transparent
  • 1: completely opaque
  • Default value: 0.8.

    MPSSubtitleEmbedConfig

    MPS subtitle suppression module settings

    Used by actions: CreateMPSTemplate, ModifyMPSTemplate.

    Name Type Required Description
    FontType String No

    Font type, supports:

  • hei.ttf: Heiti
  • song.ttf: Song Typeface
  • kai.ttf (recommended) or simkai.ttf: KaiTi
  • msyh.ttf: Microsoft YaHei
  • msyhbd.ttf: Microsoft YaHei in bold
  • hkjgt.ttf: Hwakangangtai
  • dhttx.ttf: Dianheiti Ultra Light
  • xqgdzt.ttf: Xique Ancient Dictionary
  • qpcyt.ttf: Smart Splice Super Round Body
  • arial.ttf: only supports English
  • dinalternate.ttf: DIN Alternate Bold
  • helveticalt.ttf: Helvetica
  • helveticains.ttf: Helvetica Inserat
  • trajanpro.ttf: TrajanPro-Bold
  • korean.ttf: Korean
  • japanese.ttf: Japanese
  • thai.ttf: Thai
  • roboto.ttf: Roboto
  • notosans.ttf: NotoSans
  • notosansthai.ttf: Thai NotoSansThai
  • sarabun.ttf: Thai Sarabun
  • kanit.ttf: Thai Kanit
  • charmonman.ttf: Thai Charmonman
  • notonaskharabic.ttf: Arabic NotoNaskhArabic
  • notosansdevanagari.ttf: India NotoSansDevanagari
  • notosanstc.ttf: Cantonese NotoSansTC
  • notosanskr.ttf: Korean NotoSansKR
  • gothica1.ttf: Korean GothicA1
  • nanummyeongjo.ttf: Korean NanumMyeongjo
  • notosansjp.ttf: Japanese NotoSansJP
  • notoserifjp.ttf: Japanese NotoSerifJP
  • shipporimincho.ttf: Japanese ShipporiMincho
  • Default: hei.ttf Heiti.
    Note:
  • KaiTi is recommended for use with kai.ttf
  • FontPath takes precedence when filled
  • FontPath String No

    Custom font file url address

    FontSize Integer No

    Font size. If not specified, the font size of the subtitle file applies. Pixel and percentage formats are supported:

    • Pixel: Npx, where N ranges from (0,4096].
    • Percentage: N%, where N ranges from (0,100]. For example, 10% means the subtitle font size equals 10% of the source video height.

    If left blank and the subtitle file has no settings, the default is 5% of the source video height.

    FontSizeUnit Integer No

    FontSize unit, 0 pixel, 1 percentage, defaults to 0, pixel

    FontColor String No

    Font color. Format: 0xRRGGBB. Default value: 0xFFFFFF (white).

    FontAlpha Float No

    Text opacity, value ranges from 0 to 1.

  • 0: completely transparent
  • 1: completely opaque
  • Default value: 1.
    PosX Integer No

    The X-coordinate position of subtitles. Specifying this parameter will ignore the built-in coordinates in the subtitle file. Supports pixel and percentage formats:

    • Pixel: Npx, where N ranges from [-4096, 4096].
    • Percentage: N%, where N ranges from [-100, 100]; for example, 10% means the X-coordinate of the subtitle equals 10% of the source video width.

    Default value: 0px.
    Note: The origin of the coordinate axes is at the bottom of the central axis of the source video, and the subtitle reference position is at the bottom of the central axis of the subtitles, as shown in the figure below:
    image

    PosXUnit Integer No

    PosX unit, 0 pixel, 1 percentage, defaults to 0, pixel

    PosY Integer No

    Subtitle Y-coordinate position. Specify this parameter to ignore the built-in coordinates in the subtitle file. Supports pixel and percentage formats:

    • Pixel: Npx, where N ranges from [0,4096].
    • Percentage: N%, where N ranges from [0,100]. For example, 10% means the subtitle Y-coordinate = 10% * source video height.

    Default value: source video height * 4%.
    Note: The coordinate axis origin is at the bottom of the central axis of the source video, and the subtitle reference point is at the bottom of the central axis of the subtitle. Refer to the figure below:
    image

    PosYUnit Integer No

    PosY measurement unit, 0 pixel, 1 percentage, defaults to 0, pixel

    SubtitleBoardConfig MPSSubtitleBoardConfig No

    Background configuration

    SubtitleLayoutConfig MPSSubtitleLayoutConfig No

    Column configuration

    SubtitleOutlineConfig MPSSubtitleOutlineConfig No

    Text stroke configuration

    SubtitleShadowConfig MPSSubtitleShadowConfig No

    Text shadow configuration

    SampleWidth Integer No

    Width of the source video dimensions, in pixels

    SampleHeight Integer No

    Height of the source video dimensions, in unit pixel

    MPSSubtitleLayoutConfig

    Subtitle arrangement configuration for the MPS subtitle suppression module

    Used by actions: CreateMPSTemplate, ModifyMPSTemplate.

    Name Type Required Description
    SubtitleLayoutConfigSwitch Integer No

    Subtitle arrangement configuration switch, 0 for off, 1 for on, default 0

    LineSpacing Integer No

    Line spacing. The value should be a positive integer. - When it represents pixel values, the range is [0, 1000]. - When it represents a percentage, the range is [0, 100]. The default value is 0 if left blank.

    LineSpacingUnit Integer No

    LineSpacing unit, 0 pixel, 1 percentage, defaults to 0, pixel

    Alignment String No

    Alignment mode. Valid values: top: The top position of the subtitle is fixed, while the bottom position changes according to the number of lines. bottom: The bottom position of the subtitle is fixed, while the top position changes according to the number of lines. If this is not specified, bottom alignment is used by default.

    MPSSubtitleOutlineConfig

    Text stroke configuration for the MPS subtitle suppression module

    Used by actions: CreateMPSTemplate, ModifyMPSTemplate.

    Name Type Required Description
    SubtitleOutlineConfigSwitch Integer No

    Text stroke configuration switch, 0 for off, 1 for on, default 0

    OutlineWidth Float No

    Stroke width, default unit pixel, underlying default value is 0.3% of the source video height

    OutlineWidthUnit Integer No

    Stroke width unit, 0 pixel, 1 percentage, defaults to 0, pixel

    OutlineColor String No

    Border color. 6-digit base 16 RGB. Black by default if left blank.

    OutlineAlpha Float No

    Stroke transparency. The value should be a positive floating-point number in the range of (0, 1]. If this is not specified, the default value is 1, which means completely opaque.

    MPSSubtitleShadowConfig

    MPS subtitle suppression module text shadow configuration

    Used by actions: CreateMPSTemplate, ModifyMPSTemplate.

    Name Type Required Description
    SubtitleShadowConfigSwitch Integer No

    Text shadow configuration switch, 0 for off, 1 for on, default 0

    ShadowWidth Float No

    Shadow width, default unit pixel, underlying default value 0, no shading

    ShadowWidthUnit Integer No

    Shadow width unit. 0 for pixel, 1 for percentage. Default is 0 (pixel).

    ShadowColor String No

    Shadow color. 6-digit hexadecimal RGB. Black by default if left blank (when shadow has set)

    ShadowAlpha Float No

    Shadow transparency. The value should be a positive floating-point number in the range of (0, 1]. If this is not specified, the default value is 1, which means completely opaque (with shadow configured).

    MPSTaskOutput

    Output return result of the MPS subtask.

    Used by actions: DescribeTaskDetail, PullEvents.

    Name Type Description
    OutputFiles Array of MPSOutputFile File type result in the task return result. For example, in intelligent removal, the erased video file will be stored in the media asset, and FileId will be provided in this field. The Url of the subtitle file extracted from the video will be provided in this field.
    OutputText String Result returned by the task. This field corresponds to the Output result in the MPS task response, returned in JSON format.
    The output result structures of different MPS tasks are different. For the specific return content, see the MPS task output struct.
    Intelligent Categorization Result
    Intelligent Cover Result
    Intelligent Tag Result
    Intelligent frame tagging classification result
    Intelligent Highlight Result
    Video Splitting Result
    Intelligent opening and ending content result
    Intelligent Summary Result
    Horizontal-to-Vertical Video Transformation Result
    Intelligent dubbing result
    Intelligent video understanding result
    Smart subtitle full speech recognition result
    Intelligent caption translation result
    Translation result of pure subtitle file in smart subtitling
    Smart subtitle text extraction subtitle result

    MPSTemplate

    MPS task template detail.

    Used by actions: DescribeMPSTemplates.

    Name Type Description
    TaskType String MPS template type. Valid values:
  • Transcode: transcoding template.
  • MPSTemplateInfo String Details of the MPS task template.

    MPSUpdateSmartEraseSubtitleConfig

    Subtitle removal configuration for the smart erasing template.

    Used by actions: ProcessMediaByMPS.

    Name Type Required Description
    SubtitleEraseMethod String No

    Subtitle erasure method. Automatic erasing: Video subtitles are automatically recognized using an AI model and are erased without traces to generate a new video. However, missed or incorrect erasing may occur due to image interference and special subtitle styles. In this case, you can specify the erasing area. When using automatic erasing, if you do not specify AutoAreas, the default region (lower middle part of the frame) will be erased automatically. If AutoAreas is specified, the designated region will be erased instead. Specified area erasure: If your subtitle position is fixed, it is recommended to directly specify the erasure area to minimize missed erasures. When choosing specified area erasure, please input at least one designated region in CustomAreas.

    • auto: Automatic erasing -
    • custom: Specified area erasure
    SubtitleModel String No

    Subtitle erasure model. Standard version (recommended): If your subtitles have a standard style, it is usually recommended to select this version for better effectiveness in seamless detail removal. Area edition: If the subtitles have special styles, such as calligraphy, shadow, or motion effects, you are recommended to select this edition to ensure a larger erasing area. However, the erasing effect in the details is not as good as the standard edition. - standard Standard model - area Regional model

    OcrSwitch String No

    Whether OCR subtitle extraction is enabled. The default value is OFF. OCR subtitle extraction is supported if and only if SubtitleEraseMethod is set to auto. When enabled, it identifies the text region that appears most persistently and stably within the automatic erasing area as the subtitle area. The text within the subtitle area is extracted and erased.

    • ON Enable
    • OFF Disable
    SubtitleLang String No

    Subtitle language, for OCR recognition. Default value: zh_en.
    This parameter is valid only when OcrSwitch is set to "ON".

    • zh_en: Chinese and English
    • multi: other. The following languages are supported: Chinese, English, Japanese, Korean, Spanish, French, German, Portuguese, Vietnamese, Malay, Russian, Italian, Dutch, Swedish, Finnish, Danish, Norwegian, Hungarian, Thai, Hindi, Arabic, Bengali, Gujarati, Kannada, Malayalam, Tamil, Telugu, Slovenian, Polish, Catalan, Bosnian, Czech, Estonian, Croatian, Punjabi, Marathi, Azerbaijani, Indonesian, Luxembourgish, Lithuanian, Latvian, Maltese, Slovak, Turkish, Kazakh, Greek, Irish, Belarusian, Khmer, Tagalog, Pashto, Persian, Tajik
    SubtitleFormat String No

    Subtitle file format. Default value: vtt. This parameter is valid only when OcrSwitch is set to "ON".

    • srt: srt format
    • vtt: WebVTT format
    TransSwitch String No

    Whether to enable subtitle translation. Default value: OFF. This parameter is valid only when OcrSwitch is set to "ON".

    • ON: enable
    • OFF: disable
    TransDstLang String No

    Target language for subtitle translation. Default value: en. This parameter is valid only when TransSwitch is set to "ON". Currently supported languages:
    zh: Simplified Chinese
    en: English
    ja: Japanese
    ko: Korean
    fr: French
    es: Spanish
    it: Italian
    de: German
    tr: Turkish
    ru: Russian
    pt: Portuguese
    vi: Vietnamese
    id: Indonesian
    ms: Malay
    th: Thai
    ar: Arabic
    hi: Hindi

    AutoAreas Array of MPSEraseArea No

    Automatically erase custom regions. For selected regions, use the AI model to automatically detect and erase existing targets.
    Note: When the erase method is set to custom, this parameter will not take effect. To modify the template, input [] for region cleanup. If not provided, the template region information remains unchanged.

    CustomAreas Array of MPSEraseTimeArea No

    Designate the removal of custom regions. For specified regions, directly perform erasure without detection and recognition within a selected time range. Note: When modifying the template, import [] to clear regions. The template region information remains unchanged if not imported.

    MPSUpdateSmartEraseWatermarkConfig

    Watermark removal configuration for the smart erasing template.

    Used by actions: ProcessMediaByMPS.

    Name Type Required Description
    WatermarkEraseMethod String No

    Watermark removal method.
    Auto removal: Automatically identifies watermarks in the video through model A and generates a new video after removal. Suitable for dynamic watermarks. When using auto removal, if you do not specify AutoAreas, auto removal will be performed on the full screen of the video; if AutoAreas is specified, auto removal will be performed on your specified areas instead.
    Specified area erasure: For static watermarks with relatively fixed positions, it is recommended to directly specify the erasure area. When you choose specified area erasure, please import at least one specified area. - auto: auto removal - custom: specified area erasure

    WatermarkModel String No

    Watermark removal model. Basic Edition: provides average effects and high cost performance. It applies to animations or videos with clean backgrounds. Advanced Edition: provides better effectiveness and applies to realistic-style videos such as mini-dramas.

    • basic
    • advanced
    AutoAreas Array of MPSEraseArea No

    Automatically erase custom regions. For selected regions, use the AI model to automatically detect and erase existing targets. Note: When the erase method is set to custom, this parameter will not take effect. To clear regions, input []. If not provided, the template region information remains unchanged.

    CustomAreas Array of MPSEraseTimeArea No

    Designate the removal of custom regions. For specified regions, directly perform erasure without detection and recognition within a selected time range. Note: Import [] to clear regions. The template region information remains unchanged if not imported.

    MaxAge

    Browser cache rule configuration, used to set the default MaxAge value. Disabled by default.

    Used by actions: CreateCDNDomain, ModifyCDNDomainConfig.

    Name Type Required Description
    MaxAgeRules Array of MaxAgeRule No MaxAge rule.

    MaxAgeRule

    MagAge rule configuration

    Used by actions: CreateCDNDomain, ModifyCDNDomainConfig.

    Name Type Required Description
    MaxAgeType String Yes

    Rule type:

  • all: takes effect for all files;
  • file: takes effect for a specified file suffix;
  • directory: takes effect for a specified path;
  • path: takes effect for an absolute path.
  • MaxAgeContents Array of String Yes

    Matching content for the corresponding type of MaxAgeType:

  • For all, fill in *;
  • For file, fill in the extension, such as jpg or txt;
  • For directory, fill in the path, such as /xxx/test/;
  • For path, fill in the absolute path, such as /xxx/test.html.
  • Note: The all rule is non-deletable, follows the origin site by default, and is modifiable.
    MaxAgeTime Integer Yes

    MaxAge time setting, in seconds;
    Note: 0 means no cache.

    FollowOrigin String No

    Whether to follow the origin site. Valid values: on, off. When enabled, the time setting is ignored.

    MediaAdaptiveDynamicStreamingInfo

    Adaptive bitrate information.

    Used by actions: DescribeMediaInfos, SearchMedia.

    Name Type Description
    AdaptiveDynamicStreamingSet Array of AdaptiveDynamicStreamingInfoItem Information array of adaptive bitrate streaming.

    MediaAiAnalysisClassificationItem

    Intelligent classification result

    Used by actions: DescribeTaskDetail, PullEvents.

    Name Type Description
    Classification String Category name for intelligent categorization.
    Confidence Float Confidence of the intelligent classification, with a value range from 0 to 100.

    MediaAiAnalysisCoverItem

    Intelligent cover information.

    Used by actions: DescribeTaskDetail, PullEvents.

    Name Type Description
    CoverUrl String Intelligent cover address.
    Confidence Float Confidence of the intelligent cover, with a value range from 0 to 100.

    MediaAiAnalysisFrameTagItem

    Intelligent frame-specific tagging result information.

    Used by actions: DescribeTaskDetail, PullEvents.

    Name Type Description
    Tag String By frame tag name.
    CategorySet Array of String Classification list by frame tag name. CategorySet.N indicates the (N+1)-th level category.
    For example, if Tag is "tower", CategorySet contains two elements: CategorySet.0 is "scenario" and CategorySet.1 is "building", indicating the frame tag is "tower", with "scenario" as the level-1 category and "building" as the level-2 category.
    Confidence Float Confidence of the frame tagging, with a value range from 0 to 100.

    MediaAiAnalysisFrameTagSegmentItem

    Segments by frame tag

    Used by actions: DescribeTaskDetail, PullEvents.

    Name Type Description
    StartTimeOffset Float

    Time offset of frame tagging start.

    Unit: seconds

    EndTimeOffset Float

    Offset time when frame tagging ends.

    Unit: seconds

    TagSet Array of MediaAiAnalysisFrameTagItem

    Tag list in the time segment.

    MediaAiAnalysisHighlightItem

    Intelligent highlight info

    Used by actions: DescribeTaskDetail, PullEvents.

    Name Type Description
    HighlightUrl String

    Intelligent highlight address.

    CovImgUrl String

    Intelligent highlight cover address.

    Confidence Float

    Confidence of the intelligent highlights, with a value range from 0 to 100.

    Duration Float

    Duration of intelligent highlights.

    Unit: seconds

    SegmentSet Array of HighlightSegmentItem

    List of intelligent highlight sub-segments. Highlight clips are generated by concatenating these sub-segments.

    MediaAiAnalysisTagItem

    Intelligent tag result information.

    Used by actions: DescribeTaskDetail, PullEvents.

    Name Type Description
    Tag String Tag name.
    Confidence Float Confidence of the tag, with a value range from 0 to 100.

    MediaAnimatedGraphicsInfo

    VOD file video motion graphic result information

    Used by actions: DescribeMediaInfos, SearchMedia.

    Name Type Description
    AnimatedGraphicsSet Array of MediaAnimatedGraphicsItem Video motion graphic result information

    MediaAnimatedGraphicsItem

    Video motion graphic result information

    Used by actions: DescribeMediaInfos, DescribeTaskDetail, PullEvents, SearchMedia.

    Name Type Description
    Url String File address of the animated image.
    Definition Integer Rotating image template ID. See video-to-animated image conversion parameter template.
    Container String Animated image file format, for example, gif.
    Height Integer Height of the animated image. Measurement unit: px.
    Width Integer Width of the animated image. Unit: px.
    Bitrate Integer Animated image bitrate in bps.
    Size Integer Animated image size. Unit: byte.
    Md5 String md5 value of the animated image.
    StartTimeOffset Float Start time offset of the GIF in the video, in seconds.
    EndTimeOffset Float End time offset of an animated image in the video, in seconds.

    MediaAudioStreamItem

    Audio stream information of VOD files

    Used by actions: DescribeMediaInfos, LiveRealTimeClip, SearchMedia, SimpleHlsClip.

    Name Type Description
    Bitrate Integer

    Audio stream bitrate, in bps.

    SamplingRate Integer

    Sampling rate of the audio stream, unit: hz.

    Codec String

    Audio stream encoding format, for example, aac.

    MediaBasicInfo

    Basic information of an on-demand media file

    Used by actions: DescribeMediaInfos, DescribeTaskDetail, PullEvents, SearchMedia.

    Name Type Description
    Name String Media file name.
    Description String Media file description.
    CreateTime String Media file creation time. Use the ISO date format.
    UpdateTime String Latest update time of the media file (operations such as modifying video attributes and initiating video processing will trigger updates to the media file information), in ISO date format.
    ExpireTime String Expiry date of the media file in ISO date format. After expiry, the media file and its related resources (transcoding results, sprites) will be permanently deleted. "9999-12-31T23:59:59Z" means it never expires.
    ClassId Integer Category ID of the media file.
    ClassName String Category name of the media file.
    ClassPath String Category path of the media file. Categories are separated by "-", for example "new first-level category - new sub-category".
    CoverUrl String Thumbnail URL of the media file.
    Type String Muxing format of the media file, for example, mp4 and flv.
    MediaUrl String URL address of the original media file.
    SourceInfo MediaSourceData Source information of the media file.
    StorageRegion String Media file storage region, such as ap-chongqing. See region list (https://www.tencentcloud.com/document/product/266/9760?from_cn_redirect=1#.E5.B7.B2.E6.94.AF.E6.8C.81.E5.9C.B0.E5.9F.9F.E5.88.97.E8.A1.A8).
    StoragePath String Media storage path.
    TagSet Array of String Tag information of the media file.
    Vid String Unique identifier of the live streaming recording file.
    Category String File type:
  • Video: video file
  • Audio: audio file
  • Image: image file
  • Status String File status: Normal: normal, Forbidden: blocked.
    StorageClass String Storage class of a media file
  • STANDARD: standard storage.
  • STANDARD_IA: Infrequent storage.
  • ARCHIVE: Archive storage.
  • DEEP_ARCHIVE: deep archive storage.
  • MediaCastEvent

    Media forwarding event notification message.

    Used by actions: PullEvents.

    Name Type Required Description
    CastId String No Media forwarding ID.
    Status String No Retweet status. Valid values:
  • Working: running.
  • Scheduled: Wait until the scheduled time is reached and then start up;
  • Stopped: relay stopped;
  • Idle: idle.
  • MediaClassInfo

    Classification information description

    Used by actions: DescribeAllClass.

    Name Type Description
    ClassId Integer Category ID.
    ParentId Integer Parent category ID. The parent category ID of a first-level category is -1.
    Name String Category name.
    Level Integer Category level. The first-level category is 0, and the maximum value is 3, which allows up to 4 category levels.
    SubClassIdSet Array of Integer ID set of level-1 subcategories in the current category.
    ClassName String Category name (this field is not recommended. Use the new category name field Name instead).

    MediaContentReviewAsrTextSegmentItem

    Suspected segment of Asr text in audio/video moderation

    Used by actions: DescribeTaskDetail, PullEvents.

    Name Type Description
    StartTimeOffset Float Start time offset of a suspected segment, in seconds.
    EndTimeOffset Float End time offset of a suspected segment, in seconds.
    Confidence Float Confidence degree of the suspected segment.
    Suggestion String Result suggestion for moderation of suspected audio and video segments. Permissible range:
  • pass.
  • review.
  • block.
  • KeywordSet Array of String List of suspicious keywords.

    MediaContentReviewOcrTextSegmentItem

    Suspected segment of Ocr text in video moderation

    Used by actions: DescribeTaskDetail, PullEvents.

    Name Type Description
    StartTimeOffset Float Start time offset of a suspected segment, in seconds.
    EndTimeOffset Float End time offset of a suspected segment, in seconds.
    Confidence Float Confidence degree of the suspected segment.
    Suggestion String Result suggestion for video moderation of the suspected segment. Value range:
  • pass.
  • review.
  • block.
  • KeywordSet Array of String List of suspect keywords.
    AreaCoordSet Array of Integer Pixel-level coordinates of the area where the suspected text appears, [x1, y1, x2, y2], which are the coordinates of the top-left corner and the bottom-right corner.
    Url String Suspected image URL (images are not retained permanently and will be deleted after reaching
    Images will be deleted after the PicUrlExpireTime time point).
    PicUrlExpireTime String Expiration time of the suspected image URL in ISO date format (https://www.tencentcloud.com/document/product/266/11732?from_cn_redirect=1#I).

    MediaContentReviewPoliticalSegmentItem

    Suspected segments involving inappropriate information in video moderation

    Used by actions: DescribeTaskDetail, PullEvents.

    Name Type Description
    StartTimeOffset Float Time offset of the start of the suspected segment. Unit: second.
    EndTimeOffset Float End time offset of the suspected segment, in seconds.
    Confidence Float Suspected segment score.
    Suggestion String Result suggestions for suspected segments involving inappropriate information. Value range:
  • pass.
  • review.
  • block.
  • Name String Involves inappropriate information and violative icon names.
    Label String Result tag for suspected segments involving inappropriate information. Mapping between the LabelSet parameter in the task control parameter for frames involving inappropriate information in the audio/video moderation template (https://www.tencentcloud.com/document/api/266/31773?from_cn_redirect=1#PoliticalImgReviewTemplateInfo) and the value range of this parameter:
    violation_photo:
  • violation_photo: Violation icon.

  • politician:
  • nation_politician: State leaders;
  • province_politician: provincial and ministerial leaders;
  • bureau_politician: bureau-level official;
  • county_politician: county-level official;
  • rural_politician: township-level official;
  • sensitive_politician: relevant people involved in rule violations;
  • foreign_politician: state leaders of other countries.

  • entertainment:
  • sensitive_entertainment: banned people in the entertainment industry.

  • sport:
  • sensitive_sport: sports celebrity involved in rule violations.

  • entrepreneur:
  • sensitive_entrepreneur: commercial figure involved in rule violation.

  • scholar:
  • sensitive_scholar: Educational scholar with rule violation.

  • celebrity:
  • sensitive_celebrity: rule-violating celebrity;
  • historical_celebrity: historic celebrity.

  • military:
  • sensitive_military: relevant people involved in rule violation.
  • Url String Suspected image URL (images are not retained permanently and will reach
    Images will be deleted after the PicUrlExpireTime time point).
    AreaCoordSet Array of Integer Coordinates of the area where inappropriate information or violation icons appear (pixel-level), [x1, y1, x2, y2], i.e., coordinates of the top-left corner and bottom-right corner.
    PicUrlExpireTime String Expiration time of the suspected image URL in ISO date format.

    MediaContentReviewSegmentItem

    Moderated segments involving offensive or unsafe content.

    Used by actions: DescribeTaskDetail, PullEvents.

    Name Type Description
    StartTimeOffset Float Start time offset of a suspected segment, in seconds.
    EndTimeOffset Float End time offset of a suspected segment, in seconds.
    Confidence Float Score of offensive information involved in suspected clips.
    Label String Tag of the result that the suspected segment involves offensive content.
    Suggestion String Result suggestions for identifying offensive content in suspected segments. Value range:
  • pass.
  • review.
  • block.
  • Url String Suspected image URL (images are not retained permanently and will reach
    Images will be deleted after the PicUrlExpireTime time point).
    PicUrlExpireTime String Expiration time of the suspected image URL in ISO date format (https://www.tencentcloud.com/document/product/266/11732?from_cn_redirect=1#I).

    MediaDeleteItem

    Deletion content when specifying deletion of on-demand videos

    Used by actions: DeleteMedia, PullEvents.

    Name Type Required Description
    Type String Yes

    The specified deletion part. If this field is not filled in, the parameter is invalid. Optional values:

  • OriginalFiles (delete the original file. Once deleted, you cannot initiate any video processing operations such as transcoding or publishing on WeChat);
  • TranscodeFiles (delete transcoded files);
  • AdaptiveDynamicStreamingFiles (delete adaptive bitrate stream files);
  • WechatPublishFiles (delete files published on WeChat);
  • WechatMiniProgramPublishFiles (delete WeChat Mini Program publishing files).
  • MpsAiMediaAiAnalysisFiles (delete AI analysis products generated by ProcessMediaByMPS).
  • MpsAiMediaSmartEraseFiles (delete intelligent erasure products generated by ProcessMediaByMPS).
  • MpsAiMediaSmartSubtitleFiles (delete smart subtitling products generated by ProcessMediaByMPS).
  • Note:
  • When the value is OriginalFiles, the cover file carried during file upload will be deleted;
  • When the value is TranscodeFiles, the cover file generated by media processing will be deleted.
  • Definition Integer No

    Delete the video template ID of the type specified by the Type parameter. For template definition, see Transcoding Template.
    Default value: 0, which means to delete all videos of the type specified by the Type parameter.

    MediaImageSpriteInfo

    Sprite image information of VOD files

    Used by actions: DescribeMediaInfos, SearchMedia.

    Name Type Description
    ImageSpriteSet Array of MediaImageSpriteItem Collection of sprite image information for a specific spec. Each element represents a set of sprite images with the same spec.

    MediaImageSpriteItem

    Sprite image information

    Used by actions: DescribeMediaInfos, DescribeTaskDetail, PullEvents, SearchMedia.

    Name Type Description
    Definition Integer

    Sprite sheet specification. See sprite sheet parameter template.

    Height Integer

    Height of the small image in the sprite sheet.

    Width Integer

    Width of the small image in the sprite sheet.

    TotalCount Integer

    The number of small images in each large sprite sheet.

    ImageUrlSet Array of String

    Address of each sprite sheet.

    WebVttUrl String

    Address of the WebVtt file that describes the positional and temporal relationship of sprite subimages. The WebVtt file indicates the time point corresponding to each sprite and its coordinates in the sprite sheet. It is generally used by the player to implement preview.

    MediaInfo

    VOD file information

    Used by actions: DescribeMediaInfos, SearchMedia.

    Name Type Description
    BasicInfo MediaBasicInfo

    Basic information, including video name, category, playback address, cover image, and more.

    MetaData MediaMetaData

    Meta information, including size, duration, video stream information, and audio stream information.

    TranscodeInfo MediaTranscodeInfo

    Transcoding result information, including the domain names or IP addresses, specifications, bitrates, and resolutions of the videos generated by transcoding this video at various bitrates.

    AnimatedGraphicsInfo MediaAnimatedGraphicsInfo

    Animated graphics information. Information related to the animated graphics after converting a video to gif (for example, gif).

    SampleSnapshotInfo MediaSampleSnapshotInfo

    Sampling screenshot information. After sampling video screenshots, the related screenshot information.

    ImageSpriteInfo MediaImageSpriteInfo

    Sprite image information. Relevant information about the sprite after capturing CSS sprites from the video.

    SnapshotByTimeOffsetInfo MediaSnapshotByTimeOffsetInfo

    Screenshot information at the specified time point. Information of each screenshot after capturing screenshots of the video at the specified time point.

    KeyFrameDescInfo MediaKeyFrameDescInfo

    Video timestamp information. Each timestamp information set for the video.

    AdaptiveDynamicStreamingInfo MediaAdaptiveDynamicStreamingInfo

    Adaptive bitrate streaming information, including specification, encryption type, and packaging format.

    MiniProgramReviewInfo MediaMiniProgramReviewInfo

    Mini program review information.

    SubtitleInfo MediaSubtitleInfo

    Subtitle information.

    FileId String

    Media file unique identifier ID.

    ReviewInfo FileReviewInfo

    Review information.

    MPSAiMediaInfo MPSAiMediaInfo

    MPS intelligent media asset information

    ImageUnderstandingInfo ImageUnderstandingInfo

    Image understanding information.

    KnowledgeBasesInfo KnowledgeBasesInfo

    Intelligent knowledge base information.

    FaceRecognitionInfo FaceRecognitionInfo

    Facial recognition information.

    MediaInputInfo

    Source video information to be processed, including video name and custom video ID.

    Used by actions: ProcessMediaByUrl.

    Name Type Required Description
    Url String Yes Video URL.
    Name String No Video name.
    Id String No Video custom ID.

    MediaKeyFrameDescInfo

    Video timestamp information

    Used by actions: DescribeMediaInfos, SearchMedia.

    Name Type Description
    KeyFrameDescSet Array of MediaKeyFrameDescItem Array of video timestamp information.

    MediaKeyFrameDescItem

    Video timestamp information

    Used by actions: DescribeMediaInfos, ModifyMediaInfo, SearchMedia.

    Name Type Required Description
    TimeOffset Float Yes Video offset time of the timestamp, in seconds.
    Content String Yes Content string for marking points. Limited to 1-128 characters.

    MediaMetaData

    Meta-information of on-demand media files

    Used by actions: DescribeMediaInfos, DescribeTaskDetail, LiveRealTimeClip, PullEvents, SearchMedia, SimpleHlsClip.

    Name Type Description
    Size Integer Size of the uploaded media file (for HLS videos, the size is the sum of the m3u8 and ts file sizes), unit: byte.
    Container String Container type, such as m4a, mp4.
    Bitrate Integer Sum of the average video stream bitrate and average audio stream bitrate, in bps.
    Height Integer Maximum value of the video stream height in px.
    Width Integer Maximum value of the video stream width in px.
    Duration Float Video duration, unit: seconds.
    Rotate Integer Selection angle during video shooting. Unit: degree.
    VideoStreamSet Array of MediaVideoStreamItem Video stream information.
    AudioStreamSet Array of MediaAudioStreamItem Audio stream information.
    VideoDuration Float Video duration, unit: seconds.
    AudioDuration Float Audio duration, in seconds.
    Md5 String Md5 value of the media file.
  • Note: To get the Md5 of a media file, call the DescribeFileAttributes API and get it after the task is completed.
  • MediaMiniProgramReviewElem

    Mini Program Audio and Video review overview meta information

    Used by actions: DescribeMediaInfos, SearchMedia.

    Name Type Description
    Type String Audio and video moderation type.
  • Porn: The visual involves offensive content,
  • Porn.Ocr: The text involves offensive content,
  • Porn.Asr: Sound involves offensive content,
  • Terrorism: The visual involves unsafe information,
  • Political: The visual involves inappropriate information,
  • Political.Ocr: The text involves inappropriate information,
  • Political.Asr: The sound involves inappropriate information.
  • Suggestion String Audio/video moderation feedback.
  • pass: confirm normal,
  • block: confirmed violation,
  • review: suspected violation.
  • Confidence Float Confidence of the audio/video moderation result. Value range: 0-100.

    MediaMiniProgramReviewInfo

    Mini Program Audio and Video moderation information

    Used by actions: DescribeMediaInfos, SearchMedia.

    Name Type Description
    MiniProgramReviewList Array of MediaMiniProgramReviewInfoItem Audio/video moderation information list.

    MediaMiniProgramReviewInfoItem

    Mini Program Audio and Video review information unit

    Used by actions: DescribeMediaInfos, SearchMedia.

    Name Type Description
    Definition Integer Template ID. The transcoding template ID corresponding to the video released in the mini program. 0 indicates the original video.
    MetaData MediaMetaData Video metadata.
    Url String Video playback address for Mini Program Audio and Video review.
    ReviewResult String Mini program video publishing status:
  • Pass: Succeeded.
  • Rejected: failed.
  • ReviewSummary Array of MediaMiniProgramReviewElem Mini Program Audio and Video review element.

    MediaOutputInfo

    Output file information parameters for video processing.

    Used by actions: ProcessMediaByUrl.

    Name Type Required Description
    Region String No Region of the output file Bucket, for example, ap-guangzhou.
    Bucket String No Output file Bucket.
    Dir String No Output file directory. The directory name must end with "/".

    MediaProcessTaskAdaptiveDynamicStreamingResult

    Result type of the video to adaptive streaming task

    Used by actions: DescribeTaskDetail, PullEvents.

    Name Type Description
    Status String Task status. Valid values are PROCESSING, SUCCESS, and FAIL.
    ErrCodeExt String Error code. An empty string indicates success, and other values indicate failure. For values, see Video Processing Error Codes.
    ErrCode Integer Error code. 0 indicates that the task is successful, and other values indicate that the task has failed. (This field is not recommended. Use the new error code field ErrCodeExt instead.)
    Message String Error message.
    Progress Integer Adaptive bitrate streaming task progress, value ranges from 0 to 100.
    Input AdaptiveDynamicStreamingTaskInput Input for a video to adaptive streaming task.
    Output AdaptiveDynamicStreamingInfoItem Output of a video to adaptive streaming task.
    BeginProcessTime String Adaptive bitrate streaming task start execution time in ISO datetime format.
    FinishTime String Task completion time of transcoding to adaptive bitstream in ISO datetime format.

    MediaProcessTaskAnimatedGraphicResult

    Result type of the rotating image task.

    Used by actions: DescribeTaskDetail, PullEvents.

    Name Type Description
    Status String Task status. Valid values are PROCESSING, SUCCESS, and FAIL.
    ErrCodeExt String Error code. An empty string indicates success, and other values indicate failure. For values, see Video Processing Error Codes.
    ErrCode Integer Error code. 0 indicates that the task is successful, and other values indicate that the task has failed. (This field is not recommended. Use the new error code field ErrCodeExt instead.)
    Message String Error message.
    Input AnimatedGraphicTaskInput Input of the rotating image task.
    Output MediaAnimatedGraphicsItem Output of rotating image tasks.
    Progress Integer Rotating image task progress, value ranges from 0 to 100.
    BeginProcessTime String Rotating image task start time in ISO datetime format.
    FinishTime String Animated image task completion time in ISO datetime format.

    MediaProcessTaskCoverBySnapshotResult

    Result type of the screencapturing for cover image task

    Used by actions: DescribeTaskDetail, PullEvents.

    Name Type Description
    Status String Task status. Valid values are PROCESSING, SUCCESS, and FAIL.
    ErrCodeExt String Error code. An empty string indicates success, and other values indicate failure. For values, see Video Processing Error Codes.
    ErrCode Integer Error code. 0 indicates that the task is successful, and other values indicate that the task has failed. (This field is not recommended. Use the new error code field ErrCodeExt instead.)
    Message String Error message.
    Input CoverBySnapshotTaskInput Input of the screencapturing for cover image task.
    Output CoverBySnapshotTaskOutput Output of the screencapturing for cover image task for videos.
    Progress Integer Task progress of screencapturing for cover image from a video. Value ranges from 0 to 100.
    BeginProcessTime String Screencapturing for cover image task start execution time in ISO date format.
    FinishTime String Task completion time for screencapturing for cover image, in ISO date format.

    MediaProcessTaskImageSpriteResult

    Result type of the image sprite task for a video

    Used by actions: DescribeTaskDetail, PullEvents.

    Name Type Description
    Status String Task status. Valid values are PROCESSING, SUCCESS, and FAIL.
    ErrCodeExt String Error code. An empty string indicates success, and other values indicate failure. For values, see Video Processing Error Codes.
    ErrCode Integer Error code. 0 indicates that the task is successful, and other values indicate that the task has failed. (This field is not recommended. Use the new error code field ErrCodeExt instead.)
    Message String Error message.
    Input ImageSpriteTaskInput Input of the image sprite task for a video.
    Output MediaImageSpriteItem Output of the image sprite task for videos.
    Progress Integer Progress of the image sprite task for videos. Value range: 0-100.
    BeginProcessTime String Image sprite task start execution time in ISO datetime format.
    FinishTime String Task completion time of sprite sheet capture in ISO datetime format.

    MediaProcessTaskInput

    Video processing task type

    Used by actions: CreateProcedureTemplate, DescribeProcedureTemplates, ProcessMedia, ResetProcedureTemplate.

    Name Type Required Description
    TranscodeTaskSet Array of TranscodeTaskInput No List of video transcoding tasks.
    AnimatedGraphicTaskSet Array of AnimatedGraphicTaskInput No List of video-to-GIF tasks.
    SnapshotByTimeOffsetTaskSet Array of SnapshotByTimeOffsetTaskInput No List of time point screenshot tasks for videos.
    SampleSnapshotTaskSet Array of SampleSnapshotTaskInput No List of sampled screenshot tasks for videos.
    ImageSpriteTaskSet Array of ImageSpriteTaskInput No List of image sprite tasks for videos.
    CoverBySnapshotTaskSet Array of CoverBySnapshotTaskInput No Task list of screencapturing for cover images from videos.
    AdaptiveDynamicStreamingTaskSet Array of AdaptiveDynamicStreamingTaskInput No List of video to adaptive streaming tasks.

    MediaProcessTaskResult

    Task query result type.

    Used by actions: DescribeTaskDetail, PullEvents.

    Name Type Description
    Type String Task type. Valid values:
  • Transcode: transcode
  • AnimatedGraphics: animated image
  • SnapshotByTimeOffset: time point screenshot.
  • SampleSnapshot: sampled screenshot.
  • ImageSprites: sprite sheet
  • CoverBySnapshot: screencapturing for cover image
  • AdaptiveDynamicStreaming: adaptive bitrate streaming
  • TranscodeTask MediaProcessTaskTranscodeResult Query result of a video transcoding task. Valid when the task type is Transcode.
    AnimatedGraphicTask MediaProcessTaskAnimatedGraphicResult Query result of a video-to-GIF task. Valid when the task type is AnimatedGraphics.
    SnapshotByTimeOffsetTask MediaProcessTaskSnapshotByTimeOffsetResult Query result of a video time point screenshot task. Valid when the task type is SnapshotByTimeOffset.
    SampleSnapshotTask MediaProcessTaskSampleSnapshotResult Query result of the video sampling screenshot task. Valid when the task type is SampleSnapshot.
    ImageSpriteTask MediaProcessTaskImageSpriteResult Query result of the image sprite task for a video. Valid when the task type is ImageSprite.
    CoverBySnapshotTask MediaProcessTaskCoverBySnapshotResult Query result of the video screencapturing for cover image task. Valid when the task type is CoverBySnapshot.
    AdaptiveDynamicStreamingTask MediaProcessTaskAdaptiveDynamicStreamingResult Query result of the video to adaptive streaming task. Valid when the task type is AdaptiveDynamicStreaming.

    MediaProcessTaskSampleSnapshotResult

    Result type of the sampling screenshot task for a video

    Used by actions: DescribeTaskDetail, PullEvents.

    Name Type Description
    Status String Task status. Valid values are PROCESSING, SUCCESS, and FAIL.
    ErrCodeExt String Error code. An empty string indicates success, and other values indicate failure. For values, see video processing error code list.
    ErrCode Integer Error code. 0 indicates that the task is successful, and other values indicate that the task has failed. (This field is not recommended. Use the new error code field ErrCodeExt instead.)
    Message String Error message.
    Input SampleSnapshotTaskInput Input of the sampling screenshot task for a video.
    Output MediaSampleSnapshotItem Output of the sampling screenshot task for videos.
    Progress Integer Progress of the sampling screenshot task for video, in the range of [0,100].
    BeginProcessTime String Start execution time of the sampling screenshot task in ISO date format.
    FinishTime String Task completion time of sampling screenshot taking in ISO date format.

    MediaProcessTaskSnapshotByTimeOffsetResult

    Task result type of screenshot taking at specified time points in a video

    Used by actions: DescribeTaskDetail, PullEvents.

    Name Type Description
    Status String Task status. Valid values are PROCESSING, SUCCESS, and FAIL.
    ErrCodeExt String Error code. An empty string indicates success, and other values indicate failure. For values, see Video Processing Error Codes.
    ErrCode Integer Error code. 0 indicates that the task is successful, and other values indicate that the task has failed. (This field is not recommended. Use the new error code field ErrCodeExt instead.)
    Message String Error message.
    Input SnapshotByTimeOffsetTaskInput Task input of screenshot taking at specified time points in a video.
    Output MediaSnapshotByTimeOffsetItem Output of the time point screenshot task for videos.
    Progress Integer Progress of the screenshot taking task at specified time points, in the range of [0,100].
    BeginProcessTime String Time point screenshot task start execution time in ISO datetime format.
    FinishTime String Time point screenshot task completion time in ISO datetime format.

    MediaProcessTaskTranscodeResult

    Result type of transcoding task

    Used by actions: DescribeTaskDetail, PullEvents.

    Name Type Description
    Status String Task status. Valid values are PROCESSING, SUCCESS, and FAIL.
    ErrCodeExt String Error code. An empty string indicates success, and other values indicate failure. For values, see video processing error code list.
    ErrCode Integer Error code. 0 indicates that the task is successful, and other values indicate that the task has failed. (This field is not recommended. Use the new error code field ErrCodeExt instead.)
    Message String Error message.
    Input TranscodeTaskInput Input of a transcoding task.
    Output MediaTranscodeItem Transcoding task output.
    Progress Integer Transcoding progress, with a value range of [0-100].
    BeginProcessTime String Transcoding task start execution time in ISO date format.
    FinishTime String Transcoding task completion time in ISO datetime format.

    MediaSampleSnapshotInfo

    Sampling screenshot information of VOD files

    Used by actions: DescribeMediaInfos, SearchMedia.

    Name Type Description
    SampleSnapshotSet Array of MediaSampleSnapshotItem A collection of sampling screenshot information for a specific specification, where each element represents a set of sampled screenshots of the same spec.

    MediaSampleSnapshotItem

    Sampling screenshot information

    Used by actions: DescribeMediaInfos, DescribeTaskDetail, PullEvents, SearchMedia.

    Name Type Description
    Definition Integer Sampling screenshot specification ID. See Sampling Screenshot Parameter Template.
    SampleType String Sampling method. Valid value:
  • Percent: interval sampling based on percentage.
  • Time: sampling based on time interval.
  • Interval Integer Sampling interval
  • When SampleType is Percent, this value indicates the percentage of images.
  • When SampleType is Time, this value indicates how many time intervals between images, in seconds. The first image is always the first video frame.
  • ImageUrlSet Array of String List of generated screenshot URLs.
    WaterMarkDefinition Array of Integer List of template IDs if the screenshot is watermarked.

    MediaSnapshotByTimeOffsetInfo

    Screenshot information of a VOD file at the specified time point

    Used by actions: DescribeMediaInfos, SearchMedia.

    Name Type Description
    SnapshotByTimeOffsetSet Array of MediaSnapshotByTimeOffsetItem Collection of screenshot information at the specified time point for a specific specification. Currently, each specification can have only one set of screenshots.

    MediaSnapshotByTimeOffsetItem

    Screenshot information of a VOD file at the specified time point

    Used by actions: DescribeMediaInfos, DescribeTaskDetail, PullEvents, SearchMedia.

    Name Type Description
    Definition Integer SnapshotByTimeOffset specification. See SnapshotByTimeOffset parameter template.
    PicInfoSet Array of MediaSnapshotByTimePicInfoItem Screenshot information set of the same specification. Each element represents a screenshot.

    MediaSnapshotByTimePicInfoItem

    Screenshot information at the specified time point

    Used by actions: DescribeMediaInfos, SearchMedia.

    Name Type Description
    TimeOffset Float The time offset of this screenshot in the video file, in ms.
    Url String URL address of the screenshot.
    WaterMarkDefinition Array of Integer List of template IDs if the screenshot is watermarked.

    MediaSourceData

    Source file information

    Used by actions: DescribeMediaInfos, DescribeTaskDetail, PullEvents, SearchMedia.

    Name Type Description
    SourceType String Media file source category:
  • Record: comes from recording, for example, live recording and live streaming time shift recording.
  • Upload: comes from upload, such as pull upload, server-side upload, and client UGC upload.
  • VideoProcessing: comes from video processing, such as video splicing and video editing.
  • TrtcRecord: comes from TRTC simultaneous recording.
  • WebPageRecord: comes from panoramic recording.
  • Unknown: Unknown source.
  • SourceContext String Field passed through when the user creates a file.
    LiveRecordInfo LiveRecordInfo Live recording information is valid when the file source is Record.
    TrtcRecordInfo TrtcRecordInfo TRTC Companion Recording Information. Valid when the file source is TrtcRecord.
    WebPageRecordInfo WebPageRecordInfo Panoramic recording information. Valid when the file source is WebPageRecord.

    MediaSubStreamInfoItem

    Substream info of transcoding to adaptive bitstream.

    Used by actions: DescribeMediaInfos, SearchMedia.

    Name Type Description
    Type String Sub-stream type. Valid values:
  • audio: audio-only;
  • video: video (may contain audio stream).
  • Width Integer Video image width when the substream is a video stream. Unit: px.
    Height Integer Video image height when the substream is a video stream. Measurement unit: px.
    Size Integer Substream media file size. Measurement unit: Byte.
    Note: This field is 0 for adaptive bitrate stream files generated before 2023-02-09T16:00:00Z.

    MediaSubtitleInfo

    Subtitle information.

    Used by actions: DescribeMediaInfos, SearchMedia.

    Name Type Description
    SubtitleSet Array of MediaSubtitleItem Subtitle information list.

    MediaSubtitleInput

    Subtitle information input parameter.

    Used by actions: ModifyMediaInfo.

    Name Type Required Description
    Name String Yes Subtitle name. Length limit: 64 characters.
    Language String Yes Subtitle language. Common values are as follows:
  • zh: Chinese;
  • en: English;
  • ja: Japanese;
  • ko: Korean;
  • vi: Vietnamese;
  • ms: Malay;
  • th: Thai;
  • pt: Portuguese;
  • tr: Turkish;
  • ar: Arabic;
  • es: Spanish;
  • hi: Hindi;
  • fr: French.

  • For other values, see RFC5646.
    Format String Yes Subtitle format. Valid values:
  • vtt
  • Content String Yes Caption content as an encoded string after Base64 encoding.
    Id String No Unique identifier of the subtitle. The length cannot exceed 16 characters. It can contain upper- and lower-case letters, digits, underscores (_), and hyphens (-). It cannot duplicate the unique identifier of an existing subtitle in the media file.

    MediaSubtitleItem

    Subtitle information.

    Used by actions: DescribeMediaInfos, ModifyMediaInfo, SearchMedia.

    Name Type Description
    Id String Unique identifier of the subtitle.
    Name String Subtitle name.
    Language String Subtitle language. Common values are as follows:
  • zh: Chinese;
  • en: English;
  • ja: Japanese;
  • ko: Korean;
  • vi: Vietnamese;
  • ms: Malay;
  • th: Thai;
  • pt: Portuguese;
  • tr: Turkish;
  • ar: Arabic;
  • es: Spanish;
  • hi: Hindi;
  • fr: French.

  • For other values, see RFC5646.
    Format String Subtitle format. Valid values:
  • vtt
  • Url String Subtitle URL.
    Source String Subtitle source. Value range:
  • UserUploaded: user upload;
  • AIRecognition: AI recognition through speech recognition or speech translation generation.
  • MediaTrack

    Track information

    Used by actions: ComposeMedia, DescribeTaskDetail, PullEvents.

    Name Type Required Description
    Type String Yes Track type. Valid values:

    • Video: video track. A video track consists of the following items:
      • VideoTrackItem
      • MediaTransitionItem
      • EmptyTrackItem
    • Audio: Audio track. An audio track consists of the following items:
      • AudioTrackItem
      • MediaTransitionItem
      • EmptyTrackItem
    • Sticker: Texture track. The texture track consists of the following items:
      • StickerTrackItem
      • EmptyTrackItem

    TrackItems Array of MediaTrackItem Yes List of media segments on track.

    MediaTrackItem

    Segment information of the media track.

    Used by actions: ComposeMedia.

    Name Type Required Description
    Type String Yes Fragment type. Valid values:
  • Video: video clip.
  • Audio: audio recording clip.
  • Sticker: texture segment.
  • Transition: transition.
  • Empty: empty segment.
  • VideoItem VideoTrackItem No Video clip. Valid when Type is Video.
    AudioItem AudioTrackItem No Audio clip. Valid when Type is Audio.
    StickerItem StickerTrackItem No Texture segment. Valid when Type is Sticker.
    TransitionItem MediaTransitionItem No Transition. Valid when Type is Transition.
    EmptyItem EmptyTrackItem No Empty segment. Valid when Type = Empty. The empty segment is used as a placeholder on the timeline.
  • If a period of silence is required between two audio clips, you can use EmptyTrackItem as a placeholder.
  • Use EmptyTrackItem as a placeholder to locate a certain Item.
  • MediaTranscodeInfo

    Transcoding information of a VOD file

    Used by actions: DescribeMediaInfos, SearchMedia.

    Name Type Description
    TranscodeSet Array of MediaTranscodeItem Transcoding information collection for each specification. Each element represents the transcoding result of a specification.

    MediaTranscodeItem

    Transcoding information

    Used by actions: DescribeMediaInfos, DescribeTaskDetail, PullEvents, SearchMedia.

    Name Type Description
    Url String

    File URL of the video after transcoding.

    Definition Integer

    Transcoding specification ID. See transcoding parameter template.
    Note: The value 0 means the raw file.

    Bitrate Integer

    Sum of the average video stream bitrate and average audio stream bitrate. Unit: bps.

    Height Integer

    Maximum height of the video stream. Unit: px.

    Width Integer

    Maximum value of the video stream width. Unit: px.

    Size Integer

    Total size of media files, unit: byte.

  • If the media file is HLS, the size is the sum of the m3u8 and ts file sizes.
  • Duration Float

    Video duration, unit: seconds.

    Md5 String

    md5 value of the video.

    Container String

    Container type, for example, m4a, mp4.

    VideoStreamSet Array of MediaVideoStreamItem

    Video stream information.

    AudioStreamSet Array of MediaAudioStreamItem

    Audio stream information.

    DigitalWatermarkType String

    Digital watermark type. Available values:

  • Trace: traceability watermark processed;
  • CopyRight: copyright watermark processed;
  • None: no digital watermark processed.
  • CopyRightWatermarkText String

    Copyright information.

    BlindWatermarkDefinition Integer

    Digital watermark template id.

    FileId String

    New FileId generated by transcoding. Valid when requesting to turn on standalone media asset output.

    MediaTransitionItem

    Transition information

    Used by actions: ComposeMedia.

    Name Type Required Description
    Duration Float Yes Transition duration in seconds. For two media segments with transition processing, the start time of the second segment on the track is automatically adjusted to the end time of the previous segment minus the transition duration.
    MediaTransitions Array of TransitionOperation No Transition operation list. A maximum of one image transition and one audio transition are supported respectively.

    MediaVideoStreamItem

    Video stream information of VOD files

    Used by actions: DescribeMediaInfos, LiveRealTimeClip, SearchMedia, SimpleHlsClip.

    Name Type Description
    Bitrate Integer Bitrate of the video stream. Unit: bps.
    Height Integer Height of the video stream in px.
    Width Integer Video stream width in px.
    Codec String Video stream encoding format, for example, h264.
    Fps Integer Frame rate. Unit: hz.
    CodecTag String Encoding tag. Valid only when Codec is hevc.
    DynamicRangeInfo DynamicRangeInfo Visual dynamic range information.
  • Note: This field is valid for transcoded files processed after 2023-01-10T00:00:00Z.
  • MosaicConfigureInfo

    Control parameters for video frame mosaic detection.

    Used by actions: CreateQualityInspectTemplate, DescribeQualityInspectTemplates.

    Name Type Required Description
    Switch String Yes Video frame mosaic detection switch. Available values:
  • ON: enabled;
  • OFF: disabled
  • MosaicConfigureInfoForUpdate

    Control parameters for video frame mosaic detection.

    Used by actions: ModifyQualityInspectTemplate.

    Name Type Required Description
    Switch String No Video frame mosaic detection switch. Available values:
  • ON: enabled;
  • OFF: disables it.
  • MosaicInput

    Mosaic parameter type in a video processing task

    Used by actions: CreateProcedureTemplate, ProcessMedia, ResetProcedureTemplate.

    Name Type Required Description
    CoordinateOrigin String No Origin position. Currently only support:
  • TopLeft: indicates that the coordinate origin is at the top left corner of the video image and the mosaic origin is at the top left corner of the image or text.

  • Default value: TopLeft.
    XPos String No Horizontal position of the mosaic origin relative to the origin of coordinates of the video image. Supports two formats: % and px.
  • If a string ends with %, it indicates that the XPos of a mosaic is a specified percentage of a video's width. For example, 10% means that XPos is 10% of a video's width.
  • If a string ends with px, it means the mosaic XPos is specified in pixels. For example, 100px means XPos is 100 pixels.

  • Default value: 0px.
    YPos String No Vertical position of the mosaic origin relative to the origin of coordinates of the video image. Supports two formats: % and px.
  • If a string ends with %, it indicates that the YPos of a mosaic is a specified percentage of a video's height. For example, 10% means that YPos is 10% of a video's height.
  • If a string ends with px, it means the mosaic YPos is specified in pixels. For example, 100px means the YPos is 100 pixels.

  • Default value: 0px.
    Width String No Width of the mosaic, supporting two formats: % and px.
  • If a string ends with %, it indicates that the Width of a mosaic is a percentage of a video's width. For example, 10% means that Width is 10% of a video's width.
  • If a string ends with px, it means the mosaic Width unit is pixel. For example, 100px means the Width is 100 pixels.

  • Default value: 10%.
    Height String No Height of a mosaic, supporting two formats: % and px.
  • If a string ends with %, it indicates that the Height of a mosaic is a percentage of a video's height. For example, 10% means that Height is 10% of a video's height.
  • If a string ends with px, it means the mosaic Height unit is pixel. For example, 100px means the Height is 100 pixels.

  • Default value: 10%.
    StartTimeOffset Float No Start time offset of a mosaic, in seconds. If not set or set to 0, a mosaic starts appearing when a video starts.
  • If not set or set to 0, a mosaic appears when a video starts.
  • If the value is greater than 0 (for example, n), a mosaic will appear at second n of a frame.
  • When the value is less than 0 (assuming -n), it means the mosaic appears n seconds before the end of a video.
  • EndTimeOffset Float No End time offset of a mosaic, in seconds.
  • If not set or set to 0, mosaic will last until the end of a frame.
  • If the value is greater than 0 (for example, n), a mosaic will disappear at second n.
  • When the value is less than 0 (assuming -n), it means the mosaic lasts until n seconds before the end of a video.
  • NoiseConfigureInfo

    Control parameters for video frame noise detection.

    Used by actions: CreateQualityInspectTemplate, DescribeQualityInspectTemplates.

    Name Type Required Description
    Switch String Yes Video frame noise detection switch. Available values:
  • ON: enabled;
  • OFF: disabled.
  • NoiseConfigureInfoForUpdate

    Control parameters for video frame noise detection.

    Used by actions: ModifyQualityInspectTemplate.

    Name Type Required Description
    Switch String No Video frame noise detection switch. Available values:
  • ON: enabled;
  • OFF: disabled.
  • ObjectConfigureInfo

    Object recognition task control parameters

    Used by actions: CreateAIRecognitionTemplate, DescribeAIRecognitionTemplates.

    Name Type Required Description
    Switch String Yes Object recognition task switch. Available values:
  • ON: enable the intelligent object recognition task;
  • OFF: Disable the intelligent object recognition task.
  • ObjectLibrary String No Object library selection. Valid values:
  • Default: use the default object library;
  • UserDefine: use the user-defined object library.
  • All: use both the default object library and the user-defined object library.

  • Default value: All. Use both the default object library and the user-defined object library.

    ObjectConfigureInfoForUpdate

    Object recognition task control parameters

    Used by actions: ModifyAIRecognitionTemplate.

    Name Type Required Description
    Switch String No Object recognition task switch. Available values:
  • ON: enable the intelligent object recognition task;
  • OFF: Disable the intelligent object recognition task.
  • ObjectLibrary String No Object library selection. Valid values:
  • Default: use the default object library;
  • UserDefine: Use the user-defined object library.
  • All: use both the default object library and the user-defined object library.
  • OcrFullTextConfigureInfo

    Task control parameters for full text recognition

    Used by actions: CreateAIRecognitionTemplate, DescribeAIRecognitionTemplates.

    Name Type Required Description
    Switch String Yes Switch for the full text recognition task. Available values:
  • ON: Enable the intelligent full text recognition task;
  • OFF: Disable the intelligent full text recognition task.
  • OcrFullTextConfigureInfoForUpdate

    Text Full-text Recognition Task Control Parameters.

    Used by actions: ModifyAIRecognitionTemplate.

    Name Type Required Description
    Switch String No Full text recognition task switch. Available values:
  • ON: enable the intelligent full text recognition task;
  • OFF: disables intelligent full text recognition task.
  • OcrWordsConfigureInfo

    Text keyword recognition control parameters.

    Used by actions: CreateAIRecognitionTemplate, DescribeAIRecognitionTemplates.

    Name Type Required Description
    Switch String Yes Text keyword recognition task switch. Available values:
  • ON: enable the text keyword recognition task;
  • OFF: Disable the text keyword recognition task.
  • LabelSet Array of String No Keyword filtering tag. Specify the tag of the keyword to return. If this parameter is left empty, all results are returned.
    The number of tags can be up to 10, and each tag can contain up to 16 characters.

    OcrWordsConfigureInfoForUpdate

    Text keyword recognition control parameters.

    Used by actions: ModifyAIRecognitionTemplate.

    Name Type Required Description
    Switch String No Text keyword recognition task switch. Available values:
  • ON: enable the text keyword recognition task
  • OFF: Disable the text keyword recognition task.
  • LabelSet Array of String No Keyword filtering tag. Specify the tag of keywords to return. If this parameter is not specified or is empty, all results are returned.
    The number of tags can be up to 10, and each tag can contain up to 16 characters.

    Origin

    Origin server configuration

    Used by actions: CreateCDNDomain, ModifyCDNDomainConfig.

    Name Type Required Description
    Origins Array of String No Primary origin server list.
    When modifying the primary origin server, fill in the corresponding OriginType at the same time.
    OriginType String No Primary origin server type. The input parameter supports the following types:
  • domain: Domain type;
  • ip: IP list as the origin server;
  • third_party: third-party object storage origin.
  • ServerName String No Host header when accessing the primary origin server. If not filled, the acceleration domain name is used by default.
    When the origin server type is COS, the ServerName field is required.
    OriginPullProtocol String No Origin-pull protocol configuration.
  • http: Force HTTP origin-pull.
  • follow: follow protocol for origin-pull;
  • https: Switch HTTP requests to HTTPS. This only supports port 443 on the origin server.
  • BackupOrigins Array of String No Backup origin list.
    When modifying the backup origin server, fill in the corresponding OriginType at the same time.
    BackupOriginType String No Secondary origin type. Input supports the following types:
  • domain: Domain type;
  • ip: IP list as the origin server;
  • third_party: third-party object storage origin.
  • BackupServerName String No Host header when accessing the backup origin server. If not filled, the ServerName of the primary origin server is used by default.
    OriginCompany String No Object storage origin service vendor. Required when the origin server type is third-party object storage origin (third_party). Optional values include the following:
  • aws_s3:AWS S3;
  • ali_oss: Alibaba Cloud OSS;
  • hw_obs: Huawei OBS;
  • others: other vendor's object storage. Only object storage compatible with the AWS signature algorithm is supported, such as Tencent Cloud COS.
  • OssPrivateAccess

    Authentication for origin-pull from Alibaba Cloud OSS

    Used by actions: CreateCDNDomain, ModifyCDNDomainConfig.

    Name Type Required Description
    Switch String Yes Switch for authentication configuration for origin-pull from Alibaba Cloud OSS. Valid values:
  • on: Enable;
  • off: Cache.
  • AccessKey String No Access ID.
    SecretKey String No Key.
    Region String No Region.
    Bucket String No Bucket Name.

    OthersPrivateAccess

    Origin-pull authentication for object storage from other vendors

    Used by actions: CreateCDNDomain, ModifyCDNDomainConfig.

    Name Type Required Description
    Switch String Yes Switch for origin-pull authentication configuration of other vendor object storage. Valid values:
  • on: Enable;
  • off: Cache.
  • AccessKey String No Access ID.
    SecretKey String No Key.
    Region String No Region.
    Bucket String No Bucket Name.

    OutputAudioStream

    Output audio stream information

    Used by actions: ComposeMedia.

    Name Type Required Description
    Codec String No Encoding format for audio streams. Optional values:
  • libfdk_aac: suitable for mp4 files.

  • Default value: libfdk_aac.
    SampleRate Integer No Sampling rate of the audio stream. Available values:
  • 16000
  • 32000
  • 44100
  • 48000

  • Unit: Hz.
    Default value: 16000.
    AudioChannel Integer No Number of audio channels. Available values:
  • 1: mono.
  • 2: stereo

  • Default value: 2.
    Bitrate Integer No Bitrate of the audio stream. Value range: 0 and [26, 256]. Unit: kbps.
    When the value is 0, the audio bitrate is set automatically.

    OutputVideoStream

    Output video stream information.

    Used by actions: ComposeMedia.

    Name Type Required Description
    Codec String No Encoding format for video streams. Optional values:
  • libx264: H.264 encoding.

  • Default value: libx264.
    Fps Integer No Video frame rate. Value range: [0, 60]. Unit: Hz.
    Default value: 0, which means the frame rate is the same as that of the first video clip in the first video track.

    OverrideTranscodeParameter

    Custom video transcoding parameters.

    Used by actions: CreateProcedureTemplate, ProcessMedia, ResetProcedureTemplate.

    Name Type Required Description
    Container String No

    Container format. Valid values: mp4, flv, hls, mp3, flac, ogg, m4a, and wav. Among them, mp3, flac, ogg, m4a, and wav are for audio-only files.

    RemoveVideo Integer No

    Indicates whether to remove video data. Valid values:
    <li>0: Data is reserved;<\li>
    <li>1: Data is removed.<\li>

    RemoveAudio Integer No

    Indicates whether to remove audio data. Valid values:
    <li>0: Data is reserved;<\li>
    <li>1: Data is removed.<\li>

    VideoTemplate VideoTemplateInfoForUpdate No

    Video stream configuration parameters.

    AudioTemplate AudioTemplateInfoForUpdate No

    Audio stream configuration parameters.

    TEHDConfig TEHDConfigForUpdate No

    Top Speed Codec transcoding configuration parameters.

    StdExtInfo String No

    Standard extended fields for special usage.

    PatternConfig

    Stamp extraction configuration.

    Used by actions: CreateProcessImageAsyncTemplate, ModifyProcessImageAsyncTemplate, PullEvents.

    Name Type Required Description
    TransparencyThreshold Integer No

    Transparency threshold

    Value range: [0, 255]

    Default value: 30

    OpaqueThreshold Integer No

    Opaque threshold, must be greater than TransparencyThreshold

    Value range: [0, 255]

    Default value: 127

    EdgeSamplingStep Integer No

    Edge sampling steps

    Value range: [1, 10]

    Default value: 5

    EdgeExpansionStep Integer No

    Edge expansion steps

    Default value: 5

    EdgeBlendingIntensity Float No

    Edge fusion strength

    Value range: [0.0, 1.0]

    Default value: 0.5

    PersistenceCompleteTask

    Clipping solidification task information.

    Used by actions: PullEvents.

    Name Type Description
    FileId String Fixed generated media ID.
    PersistenceSource String Sources of clipping solidification are as follows.
  • SimpleHlsClip: comes from simple HLS edit;
  • FastEditMedia: comes from rapid media editing;
  • LiveRealTimeClip: comes from live stream clipping.
  • PlayStatFileInfo

    Playback statistics file information

    Used by actions: DescribeDailyPlayStatFileList.

    Name Type Description
    Date String Date of the playback statistics in ISO date format (https://www.tencentcloud.com/document/product/266/11732?from_cn_redirect=1#I).
    Url String URL address of the playback statistics file. The playback statistics file contains:
  • date: Playback date.
  • file_id: Video file ID.
  • ip_count: Number of client IPs after deduplication.
  • flux: playback traffic volume, unit: byte.
  • play_times: total number of plays.
  • pc_play_times: Number of plays on PC.
  • mobile_play_times: Mobile playback count.
  • iphone_play_times: Number of plays on iPhone.
  • android_play_times: Number of plays on Android.
  • host_name Domain name.
  • PlayStatInfo

    Playback statistical information.

    Used by actions: DescribeMediaPlayStatDetails.

    Name Type Description
    Time String Start time of the time interval where the data resides, in ISO date format. For example, when the time granularity is day, 2018-12-01T00:00:00+08:00 means the interval from December 1, 2018 (inclusive) to December 2, 2018 (exclusive).
  • For hour-level data, 2019-08-22T00:00:00+08:00 refers to the stats from 0:00 to 1:00 on August 22, 2019.
  • When representing day-level data, 2019-08-22T00:00:00+08:00 refers to the stats for 2019-08-22.
  • FileId String Media file ID.
    PlayTimes Integer Number of plays.
    Traffic Integer Playback traffic volume. Measurement unit: byte.

    PlayerConfig

    Player configuration details.

    Used by actions: DescribeSuperPlayerConfigs.

    Name Type Description
    Name String

    Player configuration name.

    Type String

    Player configuration type. Valid values:

  • Preset: system predefined configuration.
  • Custom: user-customized configuration.
  • AudioVideoType String

    Played Audio and Video Type. Optional values:

  • AdaptiveDynamicStream: AdaptiveBitrateStreaming;
  • Transcode: transcoding output;
  • Original: original audio/video.
  • DrmSwitch String

    Switch for playing DRM-protected adaptive bitstream:

  • ON: Turn on, indicates only playback of DRM-protected adaptive bitstream output;
  • OFF: Turn off, indicates playback of unencrypted adaptive bitstream output.
  • AdaptiveDynamicStreamingDefinition Integer

    Allowed output of unencrypted adaptive bitstream template ID.

    DrmStreamingsInfo DrmStreamingsInfo

    Allowed output of DRM adaptive bitstream template content.

    TranscodeDefinition Integer

    Allowed output transcoding template ID.

    ImageSpriteDefinition Integer

    Allowed output sprite template ID.

    ResolutionNameSet Array of ResolutionNameInfo

    The player displays names for substreams of different resolutions.

    CreateTime String

    Player configuration creation time, in ISO date format.

    UpdateTime String

    Last player configuration modification time, in ISO date format.

    Domain String

    Domain name used during playback. If the value is Default, it indicates usage of the domain name in the default distribution configuration.

    Scheme String

    Scheme used during playback. Value range:

  • Default: use the scheme in the default distribution configuration;
  • HTTP;
  • HTTPS.
  • Comment String

    Template description information.

    PoliticalAsrReviewTemplateInfo

    Task control parameters for ASR-based recognition involving inappropriate information

    Used by actions: CreateContentReviewTemplate, DescribeContentReviewTemplates.

    Name Type Required Description
    Switch String Yes Task switch for ASR-based recognition involving inappropriate information. Available values:
  • ON: enable the ASR-based recognition task involving inappropriate information;
  • OFF: Disable the task involving ASR-based recognition of inappropriate information.
  • ReviewConfidence Integer No Threshold score for determining whether manual review is required for violations. When the audio/video moderation score reaches or exceeds this threshold, manual review is deemed necessary. If not specified, it defaults to 75 points. Value range: 0–100.
    BlockConfidence Integer No Threshold score for determining suspected violations. When the audio/video moderation score reaches or exceeds this threshold, it is considered a suspected violation. If not specified, it defaults to 100 points. Value range: 0–100.

    PoliticalAsrReviewTemplateInfoForUpdate

    Task control parameter for ASR-based recognition involving inappropriate information.

    Used by actions: ModifyContentReviewTemplate.

    Name Type Required Description
    Switch String No Task switch for ASR-based recognition involving inappropriate information. Available values:
  • ON: enable the task involving ASR-based recognition of inappropriate information;
  • OFF: disables the task involving inappropriate content in ASR-based recognition.
  • BlockConfidence Integer No Threshold score for suspected violations. If the audio/video moderation score reaches or exceeds this value, the content is deemed as suspected violation. Value range: 0–100.
    ReviewConfidence Integer No Threshold score for determining whether manual review is required for violations. When the audio/video moderation score reaches or exceeds this threshold, manual review is considered necessary. Value range: 0–100.

    PoliticalConfigureInfo

    Task control parameters for authentication involving inappropriate information

    Used by actions: CreateContentReviewTemplate, DescribeContentReviewTemplates.

    Name Type Required Description
    ImgReviewInfo PoliticalImgReviewTemplateInfo No Image recognition involves control parameters for inappropriate information.
    AsrReviewInfo PoliticalAsrReviewTemplateInfo No Control parameters for inappropriate information involved in ASR-based recognition.
    OcrReviewInfo PoliticalOcrReviewTemplateInfo No Control parameters for text recognition involving inappropriate information.

    PoliticalConfigureInfoForUpdate

    Control parameters for authentication involving inappropriate information.

    Used by actions: ModifyContentReviewTemplate.

    Name Type Required Description
    ImgReviewInfo PoliticalImgReviewTemplateInfoForUpdate No Image recognition involves control parameters for inappropriate information.
    AsrReviewInfo PoliticalAsrReviewTemplateInfoForUpdate No Control parameters for inappropriate information involved in ASR-based recognition.
    OcrReviewInfo PoliticalOcrReviewTemplateInfoForUpdate No Control parameters for text recognition involving inappropriate information.

    PoliticalImgReviewTemplateInfo

    Image recognition involves task control parameters for inappropriate information.

    Used by actions: CreateContentReviewTemplate, DescribeContentReviewTemplates.

    Name Type Required Description
    Switch String Yes

    Task switch for image recognition involving inappropriate information. Available values:

  • ON: Enable the task of image recognition involving inappropriate information;
  • OFF: Disable the task of image recognition involving inappropriate information.
  • LabelSet Array of String No

    Filter tags for image recognition involving inappropriate information. The review results including the selected tags are returned. If the filter tag is empty, all review results will be returned. Available values are:

  • violation_photo: violation icon;
  • politician: relevant people;
  • entertainment: people in the entertainment industry;
  • sport: sports celebrity;
  • entrepreneur: commercial figure;
  • scholar: educational scholars;
  • celebrity: celebrity;
  • military: relevant people.
  • BlockConfidence Integer No

    Threshold score for determining suspected violations. When the review score reaches or exceeds this threshold, it is considered a suspected violation. If not specified, it defaults to 97 points. Value range: 0–100.

    ReviewConfidence Integer No

    Threshold score for determining whether manual review is required for violations. When the review score reaches or exceeds this threshold, manual review is deemed necessary. If not specified, it defaults to 95 points. Value range: 0–100.

    PoliticalImgReviewTemplateInfoForUpdate

    Image recognition involves task control parameters for inappropriate information.

    Used by actions: ModifyContentReviewTemplate.

    Name Type Required Description
    Switch String No

    Task switch for image recognition involving inappropriate information. Available values:

  • ON: Enable the task of image recognition involving inappropriate information;
  • OFF: Disable the task of image recognition involving inappropriate information.
  • LabelSet Array of String No

    Filter tags for inappropriate information detected in image recognition. The auditing results including the selected tags are returned. If the filter tag is empty, all auditing results will be returned. Valid values:

  • violation_photo: violation icon;
  • politician: relevant people;
  • entertainment: people in the entertainment industry;
  • sport: sports celebrity;
  • entrepreneur: commercial figure;
  • scholar: educational scholars;
  • celebrity: celebrity;
  • military: relevant people.
  • BlockConfidence Integer No

    Threshold score for determining suspected violations. When the review score reaches or exceeds this threshold, it is considered a suspected violation. Value range: 0–100.

    ReviewConfidence Integer No

    Threshold score for determining whether manual review is required for violations. When the review score reaches or exceeds this threshold, manual review is deemed necessary. Value range: 0–100.

    PoliticalOcrReviewTemplateInfo

    Task control parameters for text recognition involving inappropriate information.

    Used by actions: CreateContentReviewTemplate, DescribeContentReviewTemplates.

    Name Type Required Description
    Switch String Yes Task switch for text recognition involving inappropriate information. Available values:
  • ON: enable the task involving text recognition of inappropriate information;
  • OFF: Disable the task involving inappropriate information in text recognition.
  • BlockConfidence Integer No Threshold score for determining suspected violations. When the review score reaches or exceeds this threshold, it is considered a suspected violation. If not specified, it defaults to 100 points. Value range: 0-100.
    ReviewConfidence Integer No Threshold score for determining whether manual review is required for violations. When the review score reaches or exceeds this threshold, manual review is deemed necessary. If not specified, the default is 75. Value range: 0–100.

    PoliticalOcrReviewTemplateInfoForUpdate

    Task control parameter for text recognition involving inappropriate content.

    Used by actions: ModifyContentReviewTemplate.

    Name Type Required Description
    Switch String No Task switch for text recognition involving inappropriate information. Available values:
  • ON: enable the task involving text recognition of inappropriate information;
  • OFF: disables the task involving inappropriate content in text recognition.
  • BlockConfidence Integer No Threshold score for suspected violations. If the review score reaches or exceeds this value, the content is deemed as suspected violation. Value range: 0–100.
    ReviewConfidence Integer No Threshold score for determining whether manual review is required for violations. When the moderation score reaches or exceeds this threshold, manual review is considered necessary. Value range: 0–100.

    PornAsrReviewTemplateInfo

    Task control parameter for ASR-based recognition involving offensive content

    Used by actions: CreateContentReviewTemplate, DescribeContentReviewTemplates.

    Name Type Required Description
    Switch String Yes Task switch for ASR-based recognition involving offensive content. Available values:
  • ON: enable the ASR-based recognition task involving offensive content;
  • OFF: disables the task involving offensive content in ASR-based recognition.
  • BlockConfidence Integer No Threshold score for suspected violations. If the review score reaches or exceeds this value, the content is deemed as suspected violation. Default value: 100. Value range: 0–100.
    ReviewConfidence Integer No Threshold score for determining whether manual review is required for violations. When the review score reaches or exceeds this threshold, manual review is considered necessary. If not specified, the default is 75 points. Value range: 0–100.

    PornAsrReviewTemplateInfoForUpdate

    Task control parameter for ASR-based recognition involving offensive content.

    Used by actions: ModifyContentReviewTemplate.

    Name Type Required Description
    Switch String No Task switch for ASR-based recognition involving offensive content. Available values:
  • ON: enable the task involving ASR-based recognition of offensive content;
  • OFF: disables the task involving offensive content in ASR-based recognition.
  • BlockConfidence Integer No Threshold score for suspected violations. If the review score reaches or exceeds this value, the content is deemed as suspected violation. Value range: 0–100.
    ReviewConfidence Integer No Threshold score for determining whether manual review is required for violations. When the review score reaches or exceeds this threshold, manual review is considered necessary. Value range: 0–100.

    PornConfigureInfo

    Task control parameter for authentication involving offensive content

    Used by actions: CreateContentReviewTemplate, DescribeContentReviewTemplates.

    Name Type Required Description
    ImgReviewInfo PornImgReviewTemplateInfo No Image recognition involves control parameters for offensive information.
    AsrReviewInfo PornAsrReviewTemplateInfo No Control parameters for offensive information involved in ASR-based recognition.
    OcrReviewInfo PornOcrReviewTemplateInfo No Control parameters for text recognition involving offensive information.

    PornConfigureInfoForUpdate

    Task control parameters for authentication involving offensive content.

    Used by actions: ModifyContentReviewTemplate.

    Name Type Required Description
    ImgReviewInfo PornImgReviewTemplateInfoForUpdate No Image recognition involves control parameters for offensive information.
    AsrReviewInfo PornAsrReviewTemplateInfoForUpdate No Control parameters for offensive information involved in ASR-based recognition.
    OcrReviewInfo PornOcrReviewTemplateInfoForUpdate No Control parameters for text recognition involving offensive content.

    PornImgReviewTemplateInfo

    Task control parameter for image recognition involving offensive content

    Used by actions: CreateContentReviewTemplate, DescribeContentReviewTemplates.

    Name Type Required Description
    Switch String Yes

    Task switch for image recognition involving offensive content. Available values:

  • ON: Turn on the task for image recognition involving offensive content;
  • OFF: Turn off the task for image recognition involving offensive content.
  • LabelSet Array of String No

    Filter tags for offensive content involved in image recognition. The review results including the selected tags are returned. If the filter tag is empty, all review results will be returned. Available values are:

  • porn: pornography;
  • vulgar: vulgarity;
  • intimacy: intimate behavior;
  • sexy: sexiness.
  • BlockConfidence Integer No

    Threshold score for determining suspected violations. When the review score reaches or exceeds this threshold, it is considered a suspected violation. If not specified, it defaults to 90 points. Value range: 0–100.

    ReviewConfidence Integer No

    Threshold score for determining whether manual review is required for violations. When the review score reaches or exceeds this threshold, manual review is considered necessary. If not specified, it defaults to 0 points. Value range: 0–100.

    PornImgReviewTemplateInfoForUpdate

    Image recognition involves task control parameters for offensive information.

    Used by actions: ModifyContentReviewTemplate.

    Name Type Required Description
    Switch String No

    Task switch for image recognition involving offensive content. Available values:

  • ON: Turn on the task for image recognition involving offensive content;
  • OFF: Turn off the task for image recognition involving offensive content.
  • LabelSet Array of String No

    Filter tags for offensive content involved in image recognition. The auditing results including the selected tags are returned. If the filter tag is empty, all auditing results will be returned. Valid values:

  • porn: Pornography;
  • vulgar: Vulgarity;
  • intimacy: Intimate behavior;
  • sexy: Sexiness.
  • BlockConfidence Integer No

    Threshold score for determining suspected violations. When the review score reaches this threshold or above, it is considered a suspected violation. Value range: 0–100.

    ReviewConfidence Integer No

    Threshold score for determining whether manual review is required for violations. When the review score reaches or exceeds this threshold, manual review is considered necessary. Value range: 0–100.

    PornOcrReviewTemplateInfo

    Task control parameters for text recognition involving offensive content

    Used by actions: CreateContentReviewTemplate, DescribeContentReviewTemplates.

    Name Type Required Description
    Switch String Yes Task switch for text recognition involving offensive content. Available values:
  • ON: enable the task of text recognition involving offensive content;
  • OFF: Disable the task involving text recognition of offensive content.
  • BlockConfidence Integer No Threshold score for determining suspected violations. When the review score reaches or exceeds this threshold, it is considered a suspected violation. If not specified, it defaults to 100 points. Value range: 0–100.
    ReviewConfidence Integer No Threshold score for determining whether manual review is required for violations. When the review score reaches or exceeds this threshold, manual review is deemed necessary. If not specified, it defaults to 75 points. Value range: 0–100.

    PornOcrReviewTemplateInfoForUpdate

    Task control parameter for text recognition involving offensive content.

    Used by actions: ModifyContentReviewTemplate.

    Name Type Required Description
    Switch String No Task switch for text recognition involving offensive content. Available values:
  • ON: enable the task involving text recognition of offensive content;
  • OFF: disables the task involving offensive content in text recognition.
  • BlockConfidence Integer No Threshold score for suspected violations. If the intelligent review score reaches or exceeds this value, the content is deemed as suspected violation. Value range: 0–100.
    ReviewConfidence Integer No Threshold score for determining whether manual review is required for violations. When the intelligent review score reaches or exceeds this threshold, manual review is considered necessary. Value range: 0–100.

    ProcedureReviewAudioVideoTaskInput

    Input parameter type for audio/video moderation in the task flow template.

    Used by actions: CreateProcedureTemplate, DescribeProcedureTemplates, ResetProcedureTemplate.

    Name Type Required Description
    Definition Integer Yes Moderation template.
    ReviewContents Array of String No Content for review. Available values:
  • Media: original audio/video;
  • Cover: cover.

  • If this parameter is not specified or is set to an empty array, Media is reviewed by default.

    ProcedureTask

    Audio/Video processing task information

    Used by actions: DescribeTaskDetail, PullEvents.

    Name Type Description
    TaskId String Media processing task ID.
    Status String Task flow status. Valid values:
  • PROCESSING: Processing;
  • FINISH: completed
  • FileId String Media file ID
  • If the process is initiated by ProcessMedia, this field represents the FileId of MediaInfo;
  • If the process is initiated by ProcessMediaByUrl, this field represents the Id of MediaInputInfo.
  • FileName String Media file name
  • If the process is initiated by ProcessMedia, this field represents BasicInfo.Name of MediaInfo;
  • If the process is initiated by ProcessMediaByUrl, this field represents the Name of MediaInputInfo.
  • FileUrl String Media file address
  • If the process is initiated by ProcessMedia, this field represents BasicInfo.MediaUrl of MediaInfo;
  • If the process is initiated by ProcessMediaByUrl, this field represents the Url of MediaInputInfo.
  • MetaData MediaMetaData Metadata of the original audio/video.
    MediaProcessResultSet Array of MediaProcessTaskResult Execution status and results of the audio/video processing task.
    AiContentReviewResultSet Array of AiContentReviewResult Execution status and results of a video moderation task.
    AiAnalysisResultSet Array of AiAnalysisResult Execution status and results of an audio/video content analysis task.
    AiRecognitionResultSet Array of AiRecognitionResult Execution status and results of an audio/video content recognition task.
    TasksPriority Integer Priority of the task flow, with a value range of [-10, 10].
    TasksNotifyMode String Task flow status change notification mode.
  • Finish: Initiate an event notification only when all task flows are completed;
  • Change: As long as the state of each subtask in the task flow changes, an event notification will be sent;
  • None: non-acceptance of the task flow callback.
  • SessionContext String Source context, which is used to pass through the user request information. The callback for task flow status changes will return the value of this field. The maximum length is 1,000 characters.
    SessionId String An identifier for deduplication. If there has been a request with the same identifier within the past seven days, an error will be returned for the current request. The maximum length is 50 characters. Leaving it blank or using a null string indicates no deduplication is required.
    Operator String Operator. Value range:
  • System: indicates a system trigger.
  • OperationType String Operation type. Valid values:
  • TSC: indicates usage of top speed Codec for smart bitrate reduction.
  • ProcedureTemplate

    Task flow template details

    Used by actions: DescribeProcedureTemplates.

    Name Type Description
    Name String

    Task flow name.

    Type String

    Task flow template type. Valid values:

  • Preset: system preset task flow template.
  • Custom: user-defined task flow template.
  • Comment String

    Transcoding template description. Length limit: 256 characters.

    MediaProcessTask MediaProcessTaskInput

    Video processing type task parameters.

    AiContentReviewTask AiContentReviewTaskInput

    AI intelligent review type task parameter .
    : This parameter is used to initiate legacy review and is not recommended. It is recommended to use the ReviewAudioVideoTask parameter to initiate review.

    AiAnalysisTask AiAnalysisTaskInput

    Parameters for the AI intelligent content analysis task.

    AiRecognitionTaskSet Array of AiRecognitionTaskInput

    Parameters for the AI content recognition task.

    MiniProgramPublishTask WechatMiniProgramPublishTaskInput

    WeChat Mini Program publishing task parameter.

    ReviewAudioVideoTask ProcedureReviewAudioVideoTaskInput

    Parameters for the audio and video moderation task.

    ImportMediaKnowledgeTaskSet Array of ImportMediaKnowledgeTaskInput

    Parameters for importing the Intelligent Media Assets knowledge base task.

    CreateTime String

    Template creation time, in ISO date format.

    UpdateTime String

    Template last modified time, in ISO date format.

    ProcessImageAsync

    Information of the image asynchronous processing task.

    Used by actions: DescribeTaskDetail.

    Name Type Description
    TaskId String Task ID.
    Status String Task status. Valid values:
  • PROCESSING: Processing;
  • FINISH: Completed.
  • ErrCode Integer Error code. A non-zero error code is returned when a source error occurs. If 0 is returned, use the ErrCode of each specific task.
    Message String Error message.
    Progress Integer Task progress. Value range: [0-100].
    Input ProcessImageAsyncInput Input information of the image asynchronous processing task.
    Output ProcessImageAsyncOutput Output information of the image asynchronous task processing.
    SessionId String An identifier for deduplication. If there has been a request with the same identifier within the past seven days, an error will be returned for the current request. The maximum length is 50 characters. Leaving it blank or using a null string indicates no deduplication is required.
    SessionContext String Source context, which is used to pass through the user request information. The callback for task flow status changes will return the value of this field. The maximum length is 1,000 characters.

    ProcessImageAsyncInput

    Information of an image asynchronous processing task.

    Used by actions: DescribeTaskDetail.

    Name Type Description
    FileId String

    FileId for image processing.

    Url String

    Image URL.

    ImageTaskInput ProcessImageAsyncTaskInput

    Image processing parameter.

    OutputConfig ProcessImageAsyncOutputConfig

    Configuration of the output media file for an image processing task.

    ProcessImageAsyncInputExtendedParameter

    Additional parameters for image asynchronous processing.

    Used by actions: ProcessImageAsync.

    Name Type Required Description
    Prompts Array of String No Prompt input to the model.

    ProcessImageAsyncOutput

    Output of an image asynchronous processing task.

    Used by actions: DescribeTaskDetail.

    Name Type Description
    FileInfo ProcessImageAsyncOutputFileInfo Output file information for an asynchronous image processing task.
    OutputText String Image understanding result.

    ProcessImageAsyncOutputConfig

    Output media file configuration of an asynchronous image processing task.

    Used by actions: DescribeTaskDetail, ProcessImageAsync.

    Name Type Required Description
    MediaName String No Output filename, up to 64 characters. By default, the system specifies the generated filename.
    ClassId Integer No Category ID, used to categorize and manage media. You can create a category and obtain the category ID through the create category API.
  • Default value: 0, indicate other categories.
  • ExpireTime String No Expiry date of the output file. The file will be deleted after this time. It never expires by default. The format is based on ISO 8601. For details, see ISO date format description.

    ProcessImageAsyncOutputFileInfo

    Output file information of an asynchronous image processing task.

    Used by actions: DescribeTaskDetail.

    Name Type Description
    MediaName String Output filename, up to 64 characters. By default, the system specifies the generated filename.
    ClassId Integer Category ID, used to categorize and manage media. You can create a category and obtain the category ID through the Create Category API. Valid when StorageMode is Permanent.
    ExpireTime String Expiry date of the output file. The file will be deleted after this time. It never expires by default. The format is based on ISO 8601. For details, see ISO date format description.
    FileType String File type, for example, mp4, flv.
    FileUrl String Media file playback address.
    FileId String Media file ID. Valid when StorageMode is Permanent.
    MetaData MediaMetaData Meta information of the output video. Valid when StorageMode is Permanent.

    ProcessImageAsyncTask

    Asynchronous image processing configuration.

    Used by actions: CreateProcessImageAsyncTemplate, DescribeProcessImageAsyncTemplates, ModifyProcessImageAsyncTemplate, PullEvents.

    Name Type Required Description
    EncodeConfig ImageEncodeConfig No

    Image transcoding output configuration.

    EnhanceConfig ImageEnhanceConfig No

    Image enhancement configuration.

    BeautyConfig ImageBeautyConfig No

    Image beauty effect configuration.

    AiCutOutConfig AiCutOutConfig No

    Ai cutout configuration

    ProcessImageAsyncTaskInput

    Image processing configuration.

    Used by actions: DescribeTaskDetail, ProcessImageAsync.

    Name Type Required Description
    Definition Integer Yes Image async processing template ID.
    ExtendedParameter ProcessImageAsyncInputExtendedParameter No Extended parameters for asynchronous image processing.

    ProcessImageAsyncTemplateItem

    Image async processing template details.

    Used by actions: DescribeProcessImageAsyncTemplates.

    Name Type Description
    Definition Integer Template unique identifier for asynchronous image processing.
    Type String Template type.
    Name String Image async processing template name.
    Comment String Description information of the image async processing template.
    CreateTime String Template creation time in ISO date format.
    UpdateTime String Template last modified time, use ISO date format.
    ProcessImageConfigure ProcessImageAsyncTask Image async processing template configuration.

    ProcessMediaByMPS

    MPS media processing task information.

    Used by actions: DescribeTaskDetail, PullEvents.

    Name Type Description
    TaskId String Task ID.
    Status String Task status. Valid values:
  • PROCESSING: Processing;
  • FINISH: Completed.
  • ErrCode Integer Error code. A non-zero error code is returned when a source error occurs. If 0 is returned, use the ErrCode of each specific task.
    Message String Error information. If a source error occurs, the corresponding exception Message is returned. Otherwise, use the Message of each specific task.
    SubTaskSet Array of MPSSubTaskResult MPS video processing task.

    ProductImageConfig

    Parameter configuration for AI-generated product images

    Used by actions: CreateSceneAigcImageTask.

    Name Type Required Description
    Prompt String No Prompt for generating the image background. If this field is default, inspiration is generated automatically.
    NegativePrompt String No Prompt used to prevent the model from image generation.
    ProductDesc String No A detailed product description helps generate images that better meet requirements.
    MoreRequirement String No Special requirements. If any, input them through this field.
    OutputImageCount Integer No Number of images expected to be generated. Default value: 1. Maximum valid value: 10.

    ProductShowcaseConfig

    Parameter configuration for AI-generated 360-degree product showcase videos

    Used by actions: CreateSceneAigcVideoTask.

    Name Type Required Description
    CameraMovement String No Lens movement method. Supported values: AutoMatch, ZoomIn, ZoomOut, GlideRight, GlideLeft, CraneDown.

    ProhibitedAsrReviewTemplateInfo

    Speech prohibition task control parameter

    Used by actions: CreateContentReviewTemplate, DescribeContentReviewTemplates.

    Name Type Required Description
    Switch String Yes Speech prohibition task switch. Available values:
  • ON: Turn on the speech prohibition task;
  • OFF: disables the speech prohibition task.
  • BlockConfidence Integer No Threshold score for determining suspected violations. When the review score reaches or exceeds this threshold, it is considered a suspected violation. If not specified, it defaults to 100 points. Value range: 0–100.
    ReviewConfidence Integer No Threshold score for determining whether manual review is required for violations. When the review score reaches or exceeds this threshold, manual review is deemed necessary. If not specified, it defaults to 75 points. Value range: 0–100.

    ProhibitedAsrReviewTemplateInfoForUpdate

    Control parameters of the speech prohibition task

    Used by actions: ModifyContentReviewTemplate.

    Name Type Required Description
    Switch String No Speech prohibition task switch. Available values:
  • ON: Turn on the speech prohibition task;
  • OFF: disables the speech prohibition task.
  • BlockConfidence Integer No Threshold score for suspected violations. If the review score reaches or exceeds this value, the content is deemed as suspected violation. Default value: 100. Value range: 0–100.
    ReviewConfidence Integer No Threshold score for determining whether manual review is required for violations. When the review score reaches or exceeds this threshold, manual review is considered necessary. If not specified, the default is 75 points. Value range: 0–100.

    ProhibitedConfigureInfo

    Prohibited task control parameter

    Used by actions: CreateContentReviewTemplate, DescribeContentReviewTemplates.

    Name Type Required Description
    AsrReviewInfo ProhibitedAsrReviewTemplateInfo No Voice prohibition control parameter.
    OcrReviewInfo ProhibitedOcrReviewTemplateInfo No Prohibited control parameters for text.

    ProhibitedConfigureInfoForUpdate

    Prohibited task control parameters.

    Used by actions: ModifyContentReviewTemplate.

    Name Type Required Description
    AsrReviewInfo ProhibitedAsrReviewTemplateInfoForUpdate No Voice prohibition control parameter.
    OcrReviewInfo ProhibitedOcrReviewTemplateInfoForUpdate No Prohibited control parameters for text.

    ProhibitedOcrReviewTemplateInfo

    Text prohibition task control parameter

    Used by actions: CreateContentReviewTemplate, DescribeContentReviewTemplates.

    Name Type Required Description
    Switch String Yes Text prohibition task switch. Available values:
  • ON: enable the text prohibition task;
  • OFF: disables the text prohibition task.
  • BlockConfidence Integer No Threshold score for determining suspected violations. When the review score reaches or exceeds this threshold, it is considered a suspected violation. If not specified, it defaults to 100 points. Value range: 0–100.
    ReviewConfidence Integer No Threshold score for determining whether manual review is required for violations. When the review score reaches or exceeds this threshold, manual review is deemed necessary. If not specified, it defaults to 75 points. Value range: 0–100.

    ProhibitedOcrReviewTemplateInfoForUpdate

    Prohibited task control parameters for text.

    Used by actions: ModifyContentReviewTemplate.

    Name Type Required Description
    Switch String No Text prohibition task switch. Value range:
  • ON: enable the text prohibition task;
  • OFF: disables the text prohibition task.
  • BlockConfidence Integer No Threshold score for determining suspected violations. When the review score reaches this threshold or above, it is considered a suspected violation. Default value: 100. Value range: 0–100.
    ReviewConfidence Integer No Threshold score for determining whether manual review is required for violations. When the review score reaches or exceeds this threshold, manual review is required. Default value: 75. Value range: 0-100.

    PullUploadTask

    Pull upload task information

    Used by actions: DescribeTaskDetail, PullEvents.

    Name Type Description
    TaskId String

    Pull the upload task ID.

    Status String

    Task flow status. Valid values:

  • PROCESSING: Processing;
  • FINISH: Completed.
  • ErrCode Integer

    Error code. 0 indicates success, and other values indicate failure:

  • 40000: invalid input parameters. Check input parameters;
  • 60000: source file error (for example, video data corruption). Confirm whether the source file is normal;
  • 70000: internal service error. Retry is recommended.
  • Message String

    Error message.

    FileId String

    Pull the video ID generated after upload completion.

    MediaBasicInfo MediaBasicInfo

    Pull basic information of the generated media file after upload completion.

    MetaData MediaMetaData

    Meta information of the output video.

    FileUrl String

    Get the playback address generated after upload completion.

    ProcedureTaskId String

    Task ID of the task type Procedure. If a media subsequent task operation (Procedure) is specified during pull upload, the task is initiated when the task flow template specifies one or more of MediaProcessTask, AiAnalysisTask, and AiRecognitionTask.

    ReviewAudioVideoTaskId String

    Task ID of the task type ReviewAudioVideo. If a media subsequent task operation (Procedure) is specified during pull upload, the task is initiated when the task flow template specifies ReviewAudioVideoTask.

    SessionContext String

    Source context, used to pass through user request information. URL pull video upload completed will return the value of this field, up to 1000 characters.

    SessionId String

    Identifier for deduplication. If a request with the same identifier has been sent within the past seven 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.

    Progress Integer

    Pull upload progress, in the range of [0,100].

    QRCodeConfigureInfo

    Control parameters for video frame QR code detection.

    Used by actions: CreateQualityInspectTemplate, DescribeQualityInspectTemplates.

    Name Type Required Description
    Switch String Yes QR code detection switch for video frames. Available values:
  • ON: enabled;
  • OFF: disabled
  • QRCodeConfigureInfoForUpdate

    Control parameters for video frame QR code detection.

    Used by actions: ModifyQualityInspectTemplate.

    Name Type Required Description
    Switch String No QR code detection switch for video frames. Available values:
  • ON: enabled;
  • OFF: disabled
  • QualityEnhanceTask

    Audio and video quality regeneration task

    Used by actions: DescribeTaskDetail, PullEvents.

    Name Type Description
    TaskId String Task ID.
    Status String Task stream status. Valid values:
  • PROCESSING: Processing;
  • FINISH: completed
  • ErrCode Integer Error code. 0 indicates success, and other values indicate failure:
  • 40000: invalid parameters. Check the input parameters;
  • 60000: Source file error (for example, video data corruption). Confirm whether the source file is normal;
  • 70000: internal service error. Retry is recommended.
  • Message String Error message.
    ErrCodeExt String Error code. An empty string indicates success, and other values indicate failure. For values, see Video Processing Error Codes.
    Progress Integer Audio and video quality regeneration task progress. Value range: [0-100].
    Input QualityEnhanceTaskInput Input of the audio and video quality regeneration task.
    Output QualityEnhanceTaskOutput Output of the audio and video quality regeneration task.
    MetaData MediaMetaData Meta-information of the output video after audio and video quality revival.
    SessionId String An identifier for deduplication. If there has been a request with the same identifier within the past seven days, an error will be returned for the current request. The maximum length is 50 characters. Leaving it blank or using a null string indicates no deduplication is required.
    SessionContext String Source context, which is used to pass through the user request information. The callback for task flow status changes will return the value of this field. The maximum length is 1,000 characters.

    QualityEnhanceTaskInput

    Input of the audio and video quality regeneration task.

    Used by actions: DescribeTaskDetail, PullEvents.

    Name Type Description
    FileId String Media file ID.
    Definition Integer Audio-visual quality rebirth template ID.

    QualityEnhanceTaskOutput

    Output of the audio and video quality regeneration task

    Used by actions: DescribeTaskDetail, PullEvents.

    Name Type Description
    FileType String File type, for example, mp4 or flv.
    FileUrl String Media file playback address.
    FileId String Media file ID.
    MediaName String Output filename, up to 64 characters. By default, the system generates the filename.
    ClassId Integer Category ID, used to categorize and manage media. You can create a category and obtain the category ID through the create category API.
  • Default value: 0, indicate other categories.
  • ExpireTime String Expiry date of the output file. The file will be deleted after this time. It never expires by default. The format is according to the ISO 8601 standard. For details, see ISO date format description.

    QualityEvaluationConfigureInfo

    Control parameters for video frame quality evaluation.

    Used by actions: CreateQualityInspectTemplate, DescribeQualityInspectTemplates.

    Name Type Required Description
    Switch String Yes Video quality evaluation detection switch. Available values:
  • ON: enabled
  • OFF: disabled
  • Score Integer No Video quality evaluation filter threshold. Only return time periods below this value. Default value: 60.

    QualityEvaluationConfigureInfoForUpdate

    Control parameters for video frame quality evaluation.

    Used by actions: ModifyQualityInspectTemplate.

    Name Type Required Description
    Switch String No Video quality evaluation switch. Available values:
  • ON: enabled;
  • OFF: disabled
  • Score Integer No Video quality rating filter threshold. Only time periods with values below this threshold are returned.

    QualityInspectConfig

    Configuration of control parameters for audio and video quality detection.

    Used by actions: CreateQualityInspectTemplate, DescribeQualityInspectTemplates, ModifyQualityInspectTemplate.

    Name Type Required Description
    Type String Yes

    Detection item name.

    Enumeration values:

    • LowEvaluation: No-reference video score (MOS)
    • AudioEvaluation: No-reference audio score (MOS)
    • Mosaic: Mosaic detection
    • CrashScreen: Screen glitch detection
    • Blur: Blur detection
    • Jitter: Jitter detection
    • Noise: Noise detection
    • QRCode: QR code detection
    • BarCode: BarCode detection
    • AppletCode: Mini program code detection
    • BlackWhiteEdge: Black and white edge detection
    • SolidColorScreen: Solid color screen detection
    • LowLighting: Low illumination
    • HighLighting: Overexposure
    • NoVoice: Silence detection
    • LowVoice: Bass detection
    • HighVoice: Explosion sound detection
    • AudioNoise: Audio Noise detection
    • VideoResolutionChanged: Video resolution change
    • AudioSampleRateChanged: Audio sampling rate change
    • AudioChannelsChanged: Audio channels changed
    • ParameterSetsChanged: Stream parameter set information changed
    • DarOrSarInvalid: Abnormal video aspect ratio
    • TimestampFallback: DTS timestamp fallback
    • DtsJitter: Excessive DTS Jitter
    • PtsJitter: Excessive PTS Jitter
    • AACDurationDeviation: Unreasonable AAC frame timestamp interval
    • AudioDroppingFrames: Audio frame loss
    • VideoDroppingFrames: Video frame loss
    • AVTimestampInterleave: Improper audio-video interleaving
    • PtsLessThanDts: media stream PTS less than DTS
    • ReceiveFpsJitter: Excessive network received frame rate Jitter
    • ReceiveFpsTooSmall: Network received video frame rate too small
    • FpsJitter: Excessive stream frame rate Jitter calculated by PTS
    • StreamOpenFailed: Stream open failure
    • StreamEnd: Stream end
    • StreamParseFailed: Stream parsing failure
    • VideoFirstFrameNotIdr: First frame not an IDR frame
    • StreamNALUError: NALU start code error
    • TsStreamNoAud: H26x stream in MPEG-TS missing AUD NALU
    • AudioStreamLack: No audio stream
    • VideoStreamLack: No video stream
    • LackAudioRecover: Missing audio stream recovery
    • LackVideoRecover: Missing video stream recovery
    • VideoBitrateOutofRange: Video stream bitrate (kbps) out of range
    • AudioBitrateOutofRange: Audio stream bitrate (kbps) out of range
    • VideoDecodeFailed: Video decoding error
    • AudioDecodeFailed: Audio decoding error
    • AudioOutOfPhase: Opposite phase in dual-channel audio
    • VideoDuplicatedFrame: Duplicate frames in video streams
    • AudioDuplicatedFrame: Duplicate frames in audio streams
    • VideoRotation: Video rotation
    • TsMultiPrograms: MPEG2-TS stream has multiple programs
    • Mp4InvalidCodecFourcc: codec fourcc in Mp4 does not meet Apple HLS requirements
    • HLSBadM3u8Format: Invalid m3u8 file
    • HLSInvalidMasterM3u8: Invalid main m3u8 file
    • HLSInvalidMediaM3u8: Invalid media m3u8 file
    • HLSMasterM3u8Recommended: main m3u8 lacks standard Recommended parameters
    • HLSMediaM3u8Recommended: media m3u8 lacks standard Recommended parameters
    • HLSMediaM3u8DiscontinuityExist: media m3u8 has EXT-x-DISCONTINUITY
    • HLSMediaSegmentsStreamNumChange: Number of streams in segments changes
    • HLSMediaSegmentsPTSJitterDeviation: PTS jump between slices without EXT-x-DISCONTINUITY
    • HLSMediaSegmentsDTSJitterDeviation: DTS jump between slices without EXT-x-DISCONTINUITY
    • TimecodeTrackExist: Mp4 has tmcd track
    • BodyPoseCheck: Abnormal human body pose
    • BodyDetailCheck: Abnormal human body detail
    • PhysicRulesCheck: Physics rule violation
    • ObjectConsistencyCheck:
    Object consistency anomaly
  • FormatCheck: Format exception
  • AudioReverb: Reverb level
  • AudioDiscontinuity: Audio discontinuity
  • AudioSpeechQuality: Speech clarity
  • AudioHighLoudness: Loudness distortion
  • AudioLoudnessJitter: Severe volume change
  • BackgroundMusic: Background music exists
  • NoBackgroundMusic: Background music does not exist
  • VideoAesthetic: Video aesthetic score
  • AudioVideoAsync: Audio and video out of sync
  • AudioSubtitleAsync: Audio and subtitle out of sync
  • Switch String No

    Capability configuration switch.

    Enumeration values:

    • ON: Enable.
    • OFF: Disable.

    Default value: ON

    Sampling String No

    Sampling method

    Enumeration values:

    • Time: Sampling based on time interval.
    IntervalTime Integer No

    Sampling interval time

    Unit: ms.

    Duration Integer No

    Duration of abnormality.

    Measurement unit: ms.

    Threshold String No

    Threshold corresponding to the detection item. Different detection items have different thresholds.

    QualityInspectContainerDiagnoseResultItem

    Format diagnosis of audio and video quality inspection detects abnormal items.

    Used by actions: DescribeTaskDetail, PullEvents.

    Name Type Description
    Category String

    Diagnosed exception category

    Enumeration values:

    • DecodeParamException: Decoding parameter exception.
    • TimeStampException: Timestamp exception.
    • FrameException: Frame rate exception.
    • StreamStatusException: Stream status anomaly.
    • StreamInfo: Stream information exception.
    • StreamAbnormalCharacteristics: Stream characteristic exception.
    • DecodeException: Decoding anomaly.
    • HLSRequirements: HLS format exception.
    Type String

    Specific exception type diagnosed.

    Enumeration values:

    • VideoResolutionChanged: Video resolution change.
    • AudioSampleRateChanged: Audio sampling rate change.
    • AudioChannelsChanged: Audio channels changed.
    • ParameterSetsChanged: Stream parameter set information has changed.
    • DarOrSarInvalid: Abnormal video aspect ratio.
    • TimestampFallback: DTS timestamp fallback.
    • DtsJitter: Excessive DTS jitter.
    • PtsJitter: Excessive PTS jitter.
    • AACDurationDeviation: Unreasonable AAC frame timestamp interval.
    • AudioDroppingFrames: Audio frame loss.
    • VideoDroppingFrames: Video frame loss.
    • AVTimestampInterleave: Improper audio-video interleaving.
    • PtsLessThanDts: media stream PTS is less than DTS.
    • ReceiveFpsJitter: Excessive network received frame rate jitter.
    • ReceiveFpsTooSmall: Network received video frame rate too small.
    • FpsJitter: Excessive stream frame rate jitter calculated by PTS.
    • StreamOpenFailed: Failed to open stream.
    • StreamEnd: Stream end.
    • StreamParseFailed: Stream parsing failure.
    • VideoFirstFrameNotIdr: First frame not an IDR frame.
    • StreamNALUError: NALU Start Code Error.
    • TsStreamNoAud: H26x stream in MPEG-TS lacks AUD NALU.
    • AudioStreamLack: No audio stream.
    • VideoStreamLack: No video stream.
    • LackAudioRecover: Missing audio stream recovery.
    • LackVideoRecover: Missing video stream recovery.
    • VideoBitrateOutofRange: Video stream bitrate (kbps) out of range.
    • AudioBitrateOutofRange: Audio stream bitrate (kbps) out of range.
    • VideoDecodeFailed: Video decoding error.
    • AudioDecodeFailed: Audio decoding error.
    • AudioOutOfPhase: Opposite phase in dual-channel audio.
    • VideoDuplicatedFrame: Duplicate frames in video streams.
    • AudioDuplicatedFrame: Duplicate frames in audio streams.
    • VideoRotation: Video frame rotation.
    • TsMultiPrograms: MPEG2-TS stream has multiple programs.
    • Mp4InvalidCodecFourcc: codec fourcc in Mp4 does not meet Apple HLS requirements.
    • HLSBadM3u8Format: Invalid m3u8 file.
    • HLSInvalidMasterM3u8: Invalid main m3u8 file.
    • HLSInvalidMediaM3u8: Invalid media m3u8 file.
    • HLSMasterM3u8Recommended: main m3u8 lacks standard Recommended parameters.
    • HLSMediaM3u8Recommended: media m3u8 lacks standard Recommended parameters.
    • HLSMediaM3u8DiscontinuityExist: EXT-x-DISCONTINUITY exists in media m3u8.
    • HLSMediaSegmentsStreamNumChange: Number of streams in segments changes.
    • HLSMediaSegmentsPTSJitterDeviation: PTS jump between segments without EXT-x-DISCONTINUITY.
    • HLSMediaSegmentsDTSJitterDeviation: DTS jump between segments without EXT-x-DISCONTINUITY.
    • TimecodeTrackExist: Mp4 has a tmcd track.
    SeverityLevel String

    Diagnosed exception level.

    Enumeration values:

    • Fatal: Affects subsequent playback and parsing.
    • Error: May affect playback.
    • Warning: May have potential risks, but not necessarily affect playback.
    • Notice: Important stream information.
    • Info: General stream information.
    TimestampSet Array of Float

    Timestamp.

    QualityInspectItem

    Audio and video quality detection abnormal fragment info.

    Used by actions: DescribeTaskDetail, PullEvents.

    Name Type Description
    StartTimeOffset Float Offset time of abnormal segment start, in seconds.
    EndTimeOffset Float End time offset of an abnormal fragment, in seconds.
    AreaCoordSet Array of Integer Coordinates of the detected abnormal area. The array contains 4 elements [x1,y1,x2,y2], representing the horizontal and vertical coordinates of the top-left and bottom-right corners of the area in sequence.
    Note: This field is valid only when Type is one of the following values:
  • BlackWhiteEdge: black and white edges;
  • Mosaic: mosaic;
  • QRCode: QR code;
  • AppletCode: mini program code;
  • BarCode: barcode.
  • Confidence Integer Confidence. Value range: [0, 100].
    Note: This field is valid only when Type is one of the following values:
  • Mosaic: mosaic;
  • QRCode: QR code;
  • AppletCode: mini program code;
  • BarCode: barcode.
  • QualityInspectLLMDetectionIssue

    Issue detected by the LLM in audio and video quality detection.

    Used by actions: DescribeTaskDetail, PullEvents.

    Name Type Description
    Tag String

    Issue category tag.

    Description String

    Issue description.

    Score Float

    Quality score of the issue

    Value range: [0, 100]

    Confidence Float

    Detection confidence for the issue

    Value range: [0, 100]

    StartTimeMs Integer

    Issue start time.

    Unit: ms.

    EndTimeMs Integer

    Issue end time.

    Unit: ms.

    ExtraData String

    Additional data (JSON format), such as severity and other supplementary information.

    QualityInspectLLMDetectionReport

    AIGC quality detection result of the large language model for audio and video quality inspection.

    Used by actions: DescribeTaskDetail, PullEvents.

    Name Type Description
    ResultCount Integer

    Number of detection results.

    ResultSet Array of QualityInspectLLMDetectionResultItem

    Detection item result list.

    QualityInspectLLMDetectionResultItem

    Aggregation results of one detection item of the LLM large model for audio and video quality detection.

    Used by actions: DescribeTaskDetail, PullEvents.

    Name Type Description
    Category String

    Detection category.

    Enumeration value:

    • AIGCQualityCharacteristics: AIGC quality characteristics.
    Group String

    Detection group.

    Enumeration values:

    • AIGCAuthenticity: AIGC authenticity, including human body plausibility, physical plausibility, and cross-frame consistency.
    • AIGCTechQuality: AIGC technology quality, including frame size, black border, and forced portrait mode.
    Type String

    Detection type name.

    Enumeration values:

    • BodyPoseCheck: Human body pose plausibility, which belongs to AIGCAuthenticity.
    • BodyDetailCheck: Human body detail plausibility, including finger count and facial symmetry, which belongs to AIGCAuthenticity.
    • PhysicRulesCheck: Physics rules plausibility, including perspective, lighting, and gravity, which belongs to AIGCAuthenticity.
    • ObjectConsistencyCheck: Cross-frame object consistency, which belongs to AIGCAuthenticity.
    • FormatCheck: Aspect ratio, black border, forced portrait mode, and other format issues, which belong to AIGCTechQuality.
    Score Float

    Overall quality score. Value range: [0, 100]. Higher values indicate better quality.

    Confidence Float

    Detection confidence. Value range: [0, 100]. Higher values indicate greater certainty.

    IssueSet Array of QualityInspectLLMDetectionIssue

    List of issues detected. This is empty if no issue is detected.

    QualityInspectResultItem

    Audio and video quality detection exception result info.

    Used by actions: DescribeTaskDetail, PullEvents.

    Name Type Description
    Type String

    Exception type. Valid values:

  • Jitter: jitter
  • Blur: blur
  • LowLighting: low illumination
  • HighLighting: overexposure
  • CrashScreen: screen glitch
  • BlackWhiteEdge: black and white edges
  • SolidColorScreen: solid color screen
  • Noise: noise
  • Mosaic: mosaic
  • QRCode: QR code
  • AppletCode: mini program code
  • BarCode: barcode
  • LowVoice: bass
  • HighVoice: audio burst
  • NoVoice: mute
  • LowEvaluation: no reference scoring below threshold
  • LowColorfulness: color richness info
  • AudioVideoAsync: audio and video synchronization issues
  • AudioSubtitleAsync: audio and subtitle out of sync
  • VideoAesthetic: low video aesthetic score
  • AudioDiscontinuity: discontinuous audio
  • AudioVolume: volume information
  • AudioLoudnessJitter: severe volume change
  • BackgroundMusic: background music exists
  • AudioEvaluation: poor bass quality
  • AudioNoise: noise
  • AudioSpeechQuality: low speech definition
  • AudioReverb: high reverberation level
  • AudioHighLoudness: loudness distortion
  • SegmentSet Array of QualityInspectItem

    Abnormal fragment list.
    Note: This list only shows up to the first 100 elements. To obtain the complete result, get it from the file corresponding to SegmentSetFileUrl.

    SegmentSetFileUrl String

    URL of the exception segment list file. The file content is in JSON, and its data structure is consistent with the fields of SegmentSet. (The file will not be retained permanently and will be deleted after reaching the SegmentSetFileUrlExpireTime time point.)

    SegmentSetFileUrlExpireTime String

    Expiration time of the URL of the abnormal Segment List File, in ISO date format.

    QualityInspectStrategy

    Policy information for audio and video quality inspection.

    Used by actions: CreateQualityInspectTemplate, DescribeQualityInspectTemplates, ModifyQualityInspectTemplate.

    Name Type Required Description
    StrategyType String No

    Policy type.

    Enumeration values:

    • TimeSpotCheck: Time-based spot check policy.
    TimeSpotCheck QualityInspectTimeSpotCheck No

    Spot check policy parameters based on time. Valid when StrategyType is TimeSpotCheck.

    QualityInspectTask

    Audio and video quality detection task information.

    Used by actions: DescribeTaskDetail, PullEvents.

    Name Type Description
    TaskId String Task ID.
    Status String Task status. Valid values:
  • PROCESSING: Processing;
  • FINISH: completed
  • ErrCodeExt String Error code. An empty string indicates success, and other values indicate failure. For values, see Video Processing Error Codes.
    Message String Error message.
    MetaData MediaMetaData Metadata of audio and video for quality inspection input.
    Input QualityInspectTaskInput Audio and video quality inspection task input.
    Output QualityInspectTaskOutput Output of the audio and video quality inspection task.
    SessionId String Identifier for deduplication. If a request with the same identifier has been sent within the past seven 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 String Source context, used to pass through user request information. The audio and video quality detection completion callback will return the value of this field. Maximum length: 1000 characters.

    QualityInspectTaskInput

    Input of the audio and video quality inspection task.

    Used by actions: DescribeTaskDetail, PullEvents.

    Name Type Description
    FileId String Media file ID.
    Definition Integer Audio and video quality inspection template ID.

    QualityInspectTaskOutput

    Output of the audio and video quality inspection task.

    Used by actions: DescribeTaskDetail, PullEvents.

    Name Type Description
    NoAudio Integer

    Whether the media file has no audio track. Value range:

  • 0: No, it has audio tracks;
  • 1: Yes, no audio track.
  • NoVideo Integer

    Whether the media file has no video track. Value range:

  • 0: No, meaning it has a video track;
  • 1: Yes, meaning it has no video track.
  • QualityEvaluationScore Integer

    Video picture quality score. Value range: [0, 100].

    QualityInspectResultSet Array of QualityInspectResultItem

    List of abnormalities detected in audio and video quality.

    QualityEvaluationMeanOpinionScore Float

    No-reference quality score of the video (MOS).

    AestheticEvaluationScore Integer

    Video aesthetic score. Value range: [0, 100].

    ContainerDiagnoseResultSet Array of QualityInspectContainerDiagnoseResultItem

    Exception items detected in format diagnosis.

    LLMDetectionReport QualityInspectLLMDetectionReport

    LLM AIGC quality detection result.

    QualityInspectTemplateItem

    Audio and video quality detection template details.

    Used by actions: DescribeQualityInspectTemplates.

    Name Type Description
    Definition Integer

    Template ID.

    Type String

    Template type. Available values:

  • Preset: preset template;
  • Custom: custom template.
  • Name String

    Template name.

    Comment String

    Template description.

    Configs Array of QualityInspectConfig

    Configuration parameters for audio and video quality detection.

    Strategy QualityInspectStrategy

    Spot check policy for audio and video quality inspection.

    CreateTime String

    Template creation time, in ISO date format.

    UpdateTime String

    Template last modified time in ISO date format.

    ScreenshotInterval Float

    (Not recommended. Use Configs as an alternative.) Frame interception interval in seconds.

    JitterConfigure JitterConfigureInfo

    (Not recommended. Use Configs as an alternative.) Control parameters for video frame jitter and ghosting detection.

    BlurConfigure BlurConfigureInfo

    (Not recommended. Use Configs as an alternative.) Control parameters for video frame blur detection.

    AbnormalLightingConfigure AbnormalLightingConfigureInfo

    (Not recommended. Use Configs instead.) Control parameters for low-light and overexposure detection in video frames.

    CrashScreenConfigure CrashScreenConfigureInfo

    (Not recommended. Use Configs as an alternative.) Control parameters for video footage distortion detection.

    BlackWhiteEdgeConfigure BlackWhiteEdgeConfigureInfo

    Control parameters for detecting black edges, white edges, black screen, and white screen in video picture.

    NoiseConfigure NoiseConfigureInfo

    (Not recommended. Use Configs as an alternative.) Control parameters for video frame noise detection.

    MosaicConfigure MosaicConfigureInfo

    (Not recommended. Use Configs instead.) Control parameters for video frame mosaic detection.

    QRCodeConfigure QRCodeConfigureInfo

    (Not recommended. Use Configs as an alternative.) Control parameters for video frame QR code detection.

    QualityEvaluationConfigure QualityEvaluationConfigureInfo

    (Not recommended. Use Configs instead.) Control parameters for video frame quality evaluation.

    VoiceConfigure VoiceConfigureInfo

    (Not recommended. Use Configs as an alternative.) Control parameters for audio (mute, bass, pop) detection.

    QualityInspectTimeSpotCheck

    Audio and video quality inspection spot check policy.

    Used by actions: CreateQualityInspectTemplate, ModifyQualityInspectTemplate.

    Name Type Required Description
    CheckDuration Integer No

    Duration of each loop detection.

    Value range: [10, 86400]

    Unit: seconds.

    CheckInterval Integer No

    Detection interval, which indicates the duration after a detection is completed and before the next detection is conducted

    Value range: [10, 3600]

    Unit: seconds.

    SkipDuration Integer No

    Skipped opening duration.

    Value range: [1, 1800]

    Unit: seconds.

    CirclesNumber Integer No

    Number of loops.

    Value range: [0, 1000]

    Quic

    Quic configuration item

    Used by actions: CreateCDNDomain, ModifyCDNDomainConfig.

    Name Type Required Description
    Switch String Yes Quic feature configuration switch. Valid values:
  • on: Enable;
  • off: Cache.
  • RebuildAudioInfo

    Audio-visual quality revival audio control information.

    Used by actions: CreateEnhanceMediaTemplate, CreateRebuildMediaTemplate, DescribeEnhanceMediaTemplates, DescribeRebuildMediaTemplates, ModifyEnhanceMediaTemplate, ModifyRebuildMediaTemplate.

    Name Type Required Description
    AudioDenoiseInfo AudioDenoiseInfo No Audio noise reduction control parameters.

    RebuildMediaOutputConfig

    Output file of the rebuild media generation result.

    Used by actions: EnhanceMediaByTemplate, RebuildMediaByTemplate.

    Name Type Required Description
    MediaName String No Output filename, up to 64 characters. By default, the system assigns a generated filename.
    ClassId Integer No Category ID, used to categorize and manage media. You can create a category and obtain the category ID through the create category API.
  • Default value: 0, indicate other categories.
  • ExpireTime String No Expiry date of the output file. The file will be deleted after this time. Default value: permanent, no expiration. Format according to the ISO 8601 standard. For details, see ISO date format description.

    RebuildMediaTargetAudioStream

    Audio content of the remastering output.

    Used by actions: CreateEnhanceMediaTemplate, CreateRebuildMediaTemplate, DescribeEnhanceMediaTemplates, DescribeRebuildMediaTemplates, ModifyEnhanceMediaTemplate, ModifyRebuildMediaTemplate, RebuildMedia.

    Name Type Required Description
    Codec String No Audio stream encoding format.
    When the outer parameter Container is mp3, optional values:
  • libmp3lame.

  • When the outer parameter Container is ogg or flac, optional values:
  • flac.

  • When the outer parameter Container is m4a, valid values are:
  • libfdk_aac;
  • libmp3lame;
  • ac3.

  • When the outer parameter Container is mp4 or flv, valid values are:
  • libfdk_aac: more suitable for mp4;
  • libmp3lame: more suitable for flv;
  • mp2.

  • When the outer parameter Container is hls, valid values are:
  • libfdk_aac.
  • Bitrate Integer No Bitrate of the audio stream. Value range: 0 and [26, 256]. Unit: kbps.
    When the value is 0, VOD sets the bitrate automatically.
    SampleRate Integer No Sampling rate of the audio stream. Available values:
  • 32000
  • 44100
  • 48000


  • Unit: Hz.
    AudioChannel Integer No Audio channel mode. Valid values:
  • 1: single channel.
  • 2: Dual-channel
  • 6: Stereo.


  • When the media encapsulation format is audio (flac, ogg, mp3, and m4a), the number of channels cannot be set to stereo.
    Default value: 2.

    RebuildMediaTargetInfo

    Target parameter for remastering

    Used by actions: DescribeTaskDetail, PullEvents, RebuildMedia.

    Name Type Required Description
    MediaName String No Output filename, up to 64 characters. By default, the system assigns the generated filename.
    Description String No Description. It can contain up to 128 characters. The default description is empty.
    ClassId Integer No Category ID, used to categorize and manage media. You can create a category and obtain the category ID through the Create Category API.
  • Default value: 0, indicate other categories.
  • ExpireTime String No Expiry date of the output file. The file will be deleted after this time. By default, it never expires. The format follows the ISO 8601 standard. For details, see ISO date format description.
    Container String No Output file container format. Available values: mp4, flv, hls. Default value: mp4.
    VideoStream RebuildMediaTargetVideoStream No Output video information.
    AudioStream RebuildMediaTargetAudioStream No Output audio content.
    RemoveVideo Integer No Indicates whether to remove video data. Available values:
  • 0: reserved
  • 1: Remove


  • Default value: 0.
    RemoveAudio Integer No Indicates whether to remove audio data. Available values:
  • 0: Reserved
  • 1: Remove


  • Default value: 0.

    RebuildMediaTargetVideoStream

    Video information of the remastered output

    Used by actions: CreateEnhanceMediaTemplate, CreateRebuildMediaTemplate, DescribeEnhanceMediaTemplates, DescribeRebuildMediaTemplates, ModifyEnhanceMediaTemplate, ModifyRebuildMediaTemplate, RebuildMedia.

    Name Type Required Description
    Codec String No Encoding format for video streams. Optional values:
  • libx264: H.264 encoding;
  • libx265: H.265 encoding;
  • av1: AOMedia Video 1 encoding.

  • Default video stream encoding format: H.264.
    Bitrate Integer No Bitrate of video stream. Value range: 0 and [128, 35000]. Unit: kbps.
    When the value is 0, VOD automatically sets the bitrate.
    Fps Integer No Video frame rate. Value range: [0, 100]. Unit: Hz. A value of 0 means the frame rate is consistent with the original video.
    ResolutionAdaptive String No Resolution adaptation. Available values:
  • open: enabled. At this point, Width represents the long side of the video, and Height represents the short side of the video;
  • close: closed. At this point, Width represents the width of the video, and Height indicates the height of the video.


  • Default value: open.
    Width Integer No Maximum value of the video stream width (or long edge) in px. Value range: 0 and [128, 4096].
  • If both Width and Height are 0, the resolution is the same as the source.
  • If Width is 0 but Height is not 0, the width will be proportionally scaled.
  • If Width is not 0 but Height is 0, the height will be proportionally scaled.
  • If both Width and Height are not 0, the resolution is as specified by the user.


  • Default value: 0.
    Height Integer No Maximum height (or short side) of the video stream. Value range: 0 and [128, 4096]. Unit: px.
  • If both Width and Height are 0, the resolution is the same as the source.
  • If Width is 0 but Height is not 0, the width will be proportionally scaled.
  • If Width is not 0 but Height is 0, the height will be proportionally scaled.
  • If both Width and Height are not 0, the resolution is as specified by the user.


  • Default value: 0.
    FillType String No Filling method. When the video stream configuration width and height parameters are inconsistent with the aspect ratio of the original video, the processing method for transcoding is "padding". Optional filling modes:
  • stretch: Stretch each frame to fill the entire screen, possibly causing the transcoded video to be "squashed" or "stretched";
  • black: black bars, maintain video aspect ratio, edges filled with black.


  • Default value: stretch.
    Gop Integer No Interval between I-frames, in frames. Value range: 0 and [1, 100000].
    If this parameter is 0 or left blank, the system will automatically set the GOP length.

    RebuildMediaTask

    Audio and video quality regeneration task

    Used by actions: DescribeTaskDetail, PullEvents.

    Name Type Description
    TaskId String Task ID.
    Status String Task flow status. Valid values:
  • PROCESSING: Processing;
  • FINISH: completed
  • ErrCode Integer Error code. 0 indicates success, and additional values indicate failure:
  • 40000: Invalid input parameter. Check the input parameter;
  • 60000: Source file error (for example, video data damage). Confirm whether the source file is normal;
  • 70000: internal service error. Retry is recommended.
  • Message String Error message.
    ErrCodeExt String Error code. An empty string indicates success, and other values indicate failure. For values, see Video Processing Error Codes.
    Progress Integer Progress of the audio and video quality regeneration task, in the range of [0,100].
    Input RebuildMediaTaskInput Input of the audio and video quality regeneration task.
    Output RebuildMediaTaskOutput Output of the audio and video quality regeneration task.
    MetaData MediaMetaData Meta-information of the output video after audio and video quality revival.
    SessionId String An identifier for deduplication. If there has been a request with the same identifier within the past seven days, an error will be returned for the current request. The maximum length is 50 characters. Leaving it blank or using a null string indicates no deduplication is required.
    SessionContext String Source context, which is used to pass through the user request information. The callback for task flow status changes will return the value of this field. The maximum length is 1,000 characters.

    RebuildMediaTaskInput

    Input of the audio and video quality regeneration task.

    Used by actions: DescribeTaskDetail, PullEvents.

    Name Type Description
    FileId String Media file ID.
    StartTimeOffset Float Start offset time, in seconds. If not filled, it indicates cutting from the beginning of the video.
    EndTimeOffset Float End offset time, in seconds. Not filled indicates cutting to the end of the video.
    Definition Integer Audio and video quality rebirth template number.
    RepairInfo RepairInfo Image quality restoration control parameters.
    VideoFrameInterpolationInfo VideoFrameInterpolationInfo Intelligent frame interpolation control parameters.
    SuperResolutionInfo SuperResolutionInfo Image super-resolution control parameters.
    HDRInfo HDRInfo High dynamic range type control parameter.
    VideoDenoiseInfo VideoDenoiseInfo Video noise reduction control parameters.
    AudioDenoiseInfo AudioDenoiseInfo Audio noise reduction control parameters.
    ColorInfo ColorEnhanceInfo Color enhancement control parameters.
    SharpInfo SharpEnhanceInfo Detail enhancement control parameters.
    FaceInfo FaceEnhanceInfo Face enhancement control parameters.
    LowLightInfo LowLightEnhanceInfo Low-light control parameters.
    ScratchRepairInfo ScratchRepairInfo Scratch removal control parameter.
    ArtifactRepairInfo ArtifactRepairInfo Artifact (burr) removal control parameter.
    TargetInfo RebuildMediaTargetInfo Output target parameters for audio-visual quality rebirth.

    RebuildMediaTaskOutput

    Output of the audio and video quality regeneration task

    Used by actions: DescribeTaskDetail, PullEvents.

    Name Type Description
    FileType String File type, for example, mp4 and flv.
    FileUrl String Media file playback address.
    FileId String Media file ID.
    MediaName String Output filename, up to 64 characters. By default, the system assigns a generated filename.
    ClassId Integer Category ID, used to categorize and manage media. You can create a category and obtain the category ID through the create category API.
  • Default value: 0, indicate other categories.
  • ExpireTime String Expiry date of the output file. The file will be deleted after this time. It never expires by default. The format follows the ISO 8601 standard. For details, see ISO date format description.

    RebuildMediaTemplate

    Audio-visual quality rebirth template details.

    Used by actions: DescribeEnhanceMediaTemplates, DescribeRebuildMediaTemplates.

    Name Type Description
    Definition Integer Audio and video quality rebirth template number.
    Type String Template type. Available values:
  • Preset: system-preset template;
  • Custom: custom template.
  • Name String Audio-visual quality rebirth template name.
    Comment String Audio and video quality rebirth template description.
    RebuildVideoInfo RebuildVideoInfo Audio-visual quality revival video control info.
    RebuildAudioInfo RebuildAudioInfo Audio-visual quality revival audio control info.
    TargetVideoInfo RebuildMediaTargetVideoStream Output video control information.
    TargetAudioInfo RebuildMediaTargetAudioStream Output audio control information.
    Container String Muxing format. Available values: mp4, hls. mp4 is selected by default.
    RemoveVideo Integer Indicates whether to remove video data. Available values:
  • 0: reserved
  • 1: Remove

  • Default value: 0.
    RemoveAudio Integer Indicates whether to remove audio data. Available values:
  • 0: reserved
  • 1: Remove

  • Default value: 0.
    CreateTime String Template creation time, in ISO date format.
    UpdateTime String Template last modified time in ISO date format (https://www.tencentcloud.com/document/product/266/11732?from_cn_redirect=1#I).

    RebuildVideoInfo

    Audio-visual quality revival video control information.

    Used by actions: CreateEnhanceMediaTemplate, CreateRebuildMediaTemplate, DescribeEnhanceMediaTemplates, DescribeRebuildMediaTemplates, ModifyEnhanceMediaTemplate, ModifyRebuildMediaTemplate.

    Name Type Required Description
    RepairInfo RepairInfo No Image quality restoration control parameters.
    VideoFrameInterpolationInfo VideoFrameInterpolationInfo No Intelligent frame interpolation control parameters.
    SuperResolutionInfo SuperResolutionInfo No Image super-resolution control parameters.
    HDRInfo HDRInfo No High dynamic range type control parameter.
    VideoDenoiseInfo VideoDenoiseInfo No Video noise reduction control parameters.
    ColorInfo ColorEnhanceInfo No Color enhancement control parameters.
    SharpInfo SharpEnhanceInfo No Detail enhancement control parameters.
    FaceInfo FaceEnhanceInfo No Face enhancement control parameters.
    LowLightInfo LowLightEnhanceInfo No Low-light control parameters.
    ScratchRepairInfo ScratchRepairInfo No Scratch removal control parameter.
    ArtifactRepairInfo ArtifactRepairInfo No Artifact removal control parameter.

    ReduceMediaBitrateAdaptiveDynamicStreamingResult

    Adaptive bitrate stream result type of a bitrate reduction task

    Used by actions: DescribeTaskDetail, PullEvents.

    Name Type Description
    Status String Task status. Valid values are PROCESSING, SUCCESS, and FAIL.
    ErrCodeExt String Error code. An empty string indicates success, and other values indicate failure. For values, see Video Processing Error Codes.
    Message String Error message.
    Input AdaptiveDynamicStreamingTaskInput Input of a video to adaptive streaming task.
    Output AdaptiveDynamicStreamingInfoItem Output of a video to adaptive streaming task.

    ReduceMediaBitrateMediaProcessTaskResult

    Bitrate reduction task result

    Used by actions: DescribeTaskDetail, PullEvents.

    Name Type Description
    Type String Task type. Valid values:
  • Transcode: transcode
  • AdaptiveDynamicStreaming: adaptive bitrate streaming
  • TranscodeTask ReduceMediaBitrateTranscodeResult Query result of the video transcoding task in the bitrate reduction task. Valid when the task type is Transcode.
    AdaptiveDynamicStreamingTask ReduceMediaBitrateAdaptiveDynamicStreamingResult Query result of the video to adaptive streaming task in a bitrate reduction task. Valid when the task type is AdaptiveDynamicStreaming.

    ReduceMediaBitrateTask

    Bitrate reduction task information

    Used by actions: DescribeTaskDetail, PullEvents.

    Name Type Description
    TaskId String Video processing task ID.
    Status String Task stream status. Valid values:
  • PROCESSING: Processing;
  • FINISH: completed
  • FileId String Media file ID.
    FileName String Media file name.
    FileUrl String Media file address.
    MetaData MediaMetaData Metadata of the original video.
    MediaProcessResultSet Array of ReduceMediaBitrateMediaProcessTaskResult Bitrate reduction task execution status and results.
    TasksPriority Integer Priority of the task flow, with a value range of [-10, 10].
    TasksNotifyMode String Task flow status change notification mode.
  • Finish: Initiate an event notification only when all task flows are completed;
  • None: non-acceptance of the task flow callback.
  • SessionContext String Source context, which is used to pass through the user request information. The callback for task flow status changes will return the value of this field. The maximum length is 1,000 characters.
    SessionId String Identifier for deduplication. If a request with the same identifier has been sent within the past seven 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.

    ReduceMediaBitrateTranscodeResult

    Transcoding result type of a bitrate reduction task

    Used by actions: DescribeTaskDetail, PullEvents.

    Name Type Description
    Status String Task status. Valid values are PROCESSING, SUCCESS, and FAIL.
    ErrCodeExt String Error code. An empty string indicates success, and other values indicate failure. For values, see Video Processing Error Codes.
    Message String Error message.
    Input TranscodeTaskInput Input of the transcoding task.
    Output MediaTranscodeItem Transcoding task output.
    Progress Integer Transcoding progress, with a value range of [0-100].
    BeginProcessTime String Transcoding task start time in ISO datetime format.
    FinishTime String Transcoding task completion time in ISO datetime format.

    Referer

    Referer blocklist/allowlist configuration, disabled by default

    Used by actions: CreateCDNDomain, ModifyCDNDomainConfig.

    Name Type Required Description
    Switch String Yes Referrer blocklist configuration switch. Value:
  • on: Enable;
  • off: Cache.
  • RefererRules Array of RefererRule No referer blocklist/allowlist rule configuration

    RefererAuthPolicy

    Referer anti-leech configuration

    Used by actions: DescribeVodDomains, ModifyVodDomainConfig.

    Name Type Required Description
    Status String Yes Referer hotlink protection setting status. Available values:
  • Enabled: enable;
  • Disabled: Disabled.
  • AuthType String No Referer verification type. Available values:
  • Black: blocklist method validation. An HTTP request carrying a certain Referer in the Referers list will be rejected.
  • White: whitelist method validation. HTTP requests are allowed only when they carry a Referer in the Referers list.

  • When Status is Enabled, AuthType must be assigned a value.
    Referers Array of String No List of Referer fields used for verification. Supports up to 400 Referer fields. When Status is Enabled, Referers cannot be an empty array. The format of Referer follows the reference domain format.
    BlankRefererAllowed String No Whether to allow access to this domain name with a null Referer. Available values:
  • Yes: yes.
  • No: no.

  • When Status is Enabled, BlankRefererAllowed must be assigned a value.

    RefererRule

    Referer blocklist/allowlist rule configuration

    Used by actions: CreateCDNDomain, ModifyCDNDomainConfig.

    Name Type Required Description
    RuleType String Yes Rule type:
  • all: take effect for all files;
  • file: The specified file suffix takes effect;
  • directory: The specified path takes effect;
  • path: The absolute path takes effect.
  • RulePaths Array of String Yes Matching content under the corresponding type of RuleType:
  • Fill with * when set to all;
  • For file, fill in the extension, such as jpg or txt;
  • For directory, fill in the path, such as /xxx/test/;
  • For path, fill in the absolute path, such as /xxx/test.html.
  • RefererType String Yes referer configuration type. Valid values:
  • whitelist: allowlist;
  • blocklist: Blocklist.
  • Referers Array of String Yes referer list.
    AllowEmpty Boolean Yes Whether to allow empty referer:
    When the anti-hotlinking type is allowlist, true indicates that empty referer is allowed, and false indicates that it is not allowed;
    If the anti-hotlinking type is a blocklist, true indicates that empty referers are denied, and false indicates that empty referers are not denied.

    RemoveWaterMarkTaskInput

    Input of the intelligent watermark removal task.

    Used by actions: DescribeTaskDetail, PullEvents.

    Name Type Description
    FileId String Media file ID.

    RemoveWaterMarkTaskOutput

    Output of the intelligent watermark removal task.

    Used by actions: DescribeTaskDetail, PullEvents.

    Name Type Description
    FileId String Media file ID.
    FileType String File type, such as mp4 and mp3.
    FileUrl String Media file playback address.
    MediaName String Filename. It can contain up to 64 characters.
    MetaData MediaMetaData Meta information, including size, duration, video stream information, and audio stream information.

    RemoveWatermarkTask

    Intelligent watermark removal task information. This field has a value only when TaskType is RemoveWatermark.

    Used by actions: DescribeTaskDetail, PullEvents.

    Name Type Description
    TaskId String Task ID.
    Status String Task flow status. Valid values:
  • PROCESSING: Processing;
  • FINISH: completed
  • ErrCodeExt String Error code. An empty string indicates success, and additional values indicate failure. For values, see video processing error code list.
    ErrCode Integer Error code. 0 indicates success, and other values indicate failure:
  • 40000: invalid parameters. Check the input parameters;
  • 60000: Source file error (for example, video data damage). Confirm whether the source file is normal;
  • 70000: internal service error. Retry is recommended.
  • Message String Error message.
    Input RemoveWaterMarkTaskInput Input for the intelligent watermark removal task.
    Output RemoveWaterMarkTaskOutput Output of the intelligent watermark removal task.
    SessionId String An identifier for deduplication. If there has been a request with the same identifier within the past seven days, an error will be returned for the current request. The maximum length is 50 characters. Leaving it blank or using a null string indicates no deduplication is required.
    SessionContext String Source context, which is used to pass through the user request information. The callback for task flow status changes will return the value of this field. The maximum length is 1,000 characters.

    RepairInfo

    Image quality restoration control parameters.

    Used by actions: CreateEnhanceMediaTemplate, CreateRebuildMediaTemplate, DescribeTaskDetail, ModifyEnhanceMediaTemplate, ModifyRebuildMediaTemplate, PullEvents, RebuildMedia.

    Name Type Required Description
    Switch String Yes Image quality restoration control switch. Available values:
  • ON: Enable image quality restoration;
  • OFF: disables image quality restoration.
  • Type String No Image quality restoration type. It is valid only when the image quality restoration control switch is ON. Available values:
  • weak: light image quality restoration;
  • normal: normal image quality restoration;
  • strong: strong image restoration.

  • Default value: weak.

    RequestHeader

    Custom request header configuration, disabled by default

    Used by actions: CreateCDNDomain, ModifyCDNDomainConfig.

    Name Type Required Description
    Switch String Yes Custom request header configuration switch. Valid values:
  • on: Enable;
  • off: Cache.
  • HeaderRules Array of HttpHeaderPathRule No Custom request header rule configuration.

    ResolutionNameInfo

    Substream name information of the player

    Used by actions: CreateSuperPlayerConfig, DescribeSuperPlayerConfigs, ModifySuperPlayerConfig.

    Name Type Required Description
    MinEdgeLength Integer Yes Video short side length. Measurement unit: pixel.
    Name String Yes Display name.

    ResourceTag

    Tag key value. For reference, see Tag (https://www.tencentcloud.com/document/product/651?from_cn_redirect=1).

    Used by actions: CreateSubAppId, DescribeSubAppIds.

    Name Type Required Description
    TagKey String Yes Tag key.
    TagValue String Yes Tag value.

    ResponseHeader

    Custom response header configuration, disabled by default.

    Used by actions: CreateCDNDomain, ModifyCDNDomainConfig.

    Name Type Required Description
    Switch String Yes Custom response header configuration switch. Valid values:
  • on: Enable;
  • off: Cache.
  • HeaderRules Array of HttpHeaderPathRule No Custom response header rule.

    RestoreMediaTask

    Retrieve video task information

    Used by actions: PullEvents.

    Name Type Description
    FileId String File ID.
    OriginalStorageClass String Original storage type of the file.
    TargetStorageClass String Target storage type of the file. For temporary retrieval, the target storage class is the same as the original storage class.
    RestoreTier String Retrieval mode. Valid values:
  • Expedited: speed mode
  • Standard: standard mode
  • Bulk: batch mode
  • RestoreDay Integer Temporary retrieval replica validity period in days. For permanent retrieval, the value is 0.

    ReviewAudioVideoSegmentItem

    Audio/video moderation clip.

    Used by actions: DescribeTaskDetail, PullEvents.

    Name Type Description
    StartTimeOffset Float Start time offset of a suspected segment, in seconds.
    EndTimeOffset Float End time offset of a suspected segment, in seconds.
    Confidence Float Score of offensive information involved in suspected clips.
    Suggestion String Result suggestions for identifying violations in suspected clips. Value range:
  • review: suspected violation, suggest re-examination;
  • block: Confirmed violation. Suggest banning.
  • Label String Most likely rule violation tag of the suspected segment. Value range:
  • Porn: Pornography;
  • Terror: violence.
  • Polity: inappropriate information;
  • Ad: advertisement;
  • Illegal: illegal activities;
  • Abuse: abusive language;
  • Moan: panting.
  • SubLabel String Rule-violating subtag.
    Form String Suspected segment violation type. Value range:
  • Image: people or icons on the screen;
  • OCR: text on the screen;
  • ASR: text in speech.
  • Voice: sound.
  • AreaCoordSet Array of Integer Valid when Form is Image or OCR. Indicates the pixel-level coordinates of the area where the suspect, icon, or text appears, [x1, y1, x2, y2], which are the coordinates of the top-left corner and the bottom-right corner.
    Text String Valid when Form is OCR or ASR. It indicates the recognized OCR or ASR text content.
    KeywordSet Array of String Valid when Form is OCR or ASR. It indicates the list of violation keywords hit by suspicious fragments.
    Url String Suspected image URL (images are not retained permanently and will be deleted after reaching
    Images will be deleted after the PicUrlExpireTime time point).
    PicUrlExpireTime String Expiration time of the suspected image URL in ISO date format (https://www.tencentcloud.com/document/product/266/11732?from_cn_redirect=1#I).

    ReviewAudioVideoTask

    Information of an audio/video moderation task.

    Used by actions: DescribeTaskDetail, PullEvents.

    Name Type Description
    TaskId String Task ID.
    Status String Task status. Valid values:
  • PROCESSING: Processing;
  • FINISH: completed
  • ErrCodeExt String Error code. An empty string indicates success, and other values indicate failure. For values, see Video Processing Error Codes.
    Message String Error message.
    Input ReviewAudioVideoTaskInput Input of an audio/video moderation task.
    Output ReviewAudioVideoTaskOutput Output of the audio/video moderation task.
    SessionId String An identifier for deduplication. If there has been a request with the same identifier within the past seven days, an error will be returned for the current request. The maximum length is 50 characters. Leaving it blank or using a null string indicates no deduplication is required.
    SessionContext String Source context, used to pass through user request information. The audio/video moderation completed callback will return the value of this field. Maximum length: 1000 characters.

    ReviewAudioVideoTaskInput

    Input of the audio/video moderation task.

    Used by actions: DescribeTaskDetail, PullEvents.

    Name Type Description
    FileId String Media file ID.
    Definition Integer Audio/Video moderation template ID.
    ReviewContents Array of String Content for review. Available values:
  • Media: original audio/video;
  • Cover: cover.
  • ReviewAudioVideoTaskOutput

    Output of the audio/video moderation task.

    Used by actions: DescribeTaskDetail, PullEvents.

    Name Type Description
    Suggestion String Result suggestion for audio/video content moderation. Value range:
  • pass: It is recommended to pass.
  • review: suggest re-examination;
  • block: suggest banning.
  • Label String Valid when Suggestion is review or block. Indicates the most likely rule violation tag of the audio and video. Value range:
  • Porn: pornography;
  • Terror: violence.
  • Polity: inappropriate information;
  • Ad: advertisement;
  • Illegal: illegal;
  • Abuse: abusive language;
  • Moan: panting.
  • Form String Valid when Suggestion is review or block. It indicates the most likely prohibited forms of audio and video. Value range:
  • Image: people or icons in the image;
  • OCR: text in the frame;
  • ASR: text in speech.
  • Voice: sound.
  • SegmentSet Array of ReviewAudioVideoSegmentItem List of video clips suspected of containing violation information.
    Note: This list can only display up to the first 10 elements. To obtain the complete result, get it from the file corresponding to SegmentSetFileUrl.
    SegmentSetFileUrl String URL of video clip list file involved in suspicion of violation information. The file content is in JSON format, and its data structure is consistent with the SegmentSet fields. (The file will not be retained permanently. It will be deleted after reaching the SegmentSetFileUrlExpireTime time point.)
    SegmentSetFileUrlExpireTime String Expiration time of the URL of the list of video clips suspected of involving violation information, in ISO date format.
    CoverReviewResult ReviewImageResult Cover review result.

    ReviewImageResult

    Image moderation result.

    Used by actions: DescribeTaskDetail, PullEvents, ReviewImage.

    Name Type Description
    Suggestion String Result suggestion for image moderation. Value range:
  • pass: It is recommended to pass.
  • review: suggest re-examination;
  • block: suggest banning.
  • Label String Tag of the most likely rule violation. Valid when Suggestion is review or block. Value range:
  • Porn: Pornography;
  • Terror: violence.
  • Polity: inappropriate information;
  • Ad: advertisement;
  • Illegal: illegal;
  • Abuse: abusive language.
  • Form String Valid when Suggestion is review or block. It indicates the most likely prohibited forms. Value range:
  • Image: people or icons on the screen;
  • OCR: text in the image.
  • SegmentSet Array of ReviewImageSegmentItem List of video clips suspected of containing violation information.
    Note: This list can only display up to the first 10 elements. To obtain the complete result, get it from the file corresponding to SegmentSetFileUrl.
    SegmentSetFileUrl String URL of video clip list file involved in suspicion of violation information. The file content is in JSON format, and its data structure is consistent with the SegmentSet fields. (The file will not be retained permanently. It will be deleted after reaching the SegmentSetFileUrlExpireTime time point.)
    SegmentSetFileUrlExpireTime String Expiration time of the URL of the list of video clips suspected of involving violation information, in ISO date format.

    ReviewImageSegmentItem

    Image moderation clip.

    Used by actions: ReviewImage.

    Name Type Description
    Confidence Float Score of offensive information involved in suspected clips.
    Suggestion String Result suggestions for identifying violations in suspected clips. Value range:
  • review: suspected violation, suggest re-examination;
  • block: confirmed violation, suggest banning.
  • Label String Tag of the most likely rule violation for the suspected segment. Value range:
  • Porn: Pornography;
  • Terror: violence.
  • Polity: inappropriate information;
  • Ad: advertisement;
  • Illegal: illegal;
  • Abuse: abusive language.
  • SubLabel String Rule-violating subtag.
    Form String Suspected segment violation type. Value range:
  • Image: people or icons on the screen;
  • OCR: text in the image.
  • AreaCoordSet Array of Integer Coordinates of the area where the suspected object, icon, or text appears (pixel-level), [x1, y1, x2, y2], which are the coordinates of the top-left corner and bottom-right corner.
    Text String Valid when Form is OCR. It indicates the recognized OCR text content.
    KeywordSet Array of String Valid when Form is OCR. It indicates the list of violation keywords hit by suspicious fragments.

    ReviewInfo

    Moderation information.

    Used by actions: DescribeMediaInfos, SearchMedia.

    Name Type Description
    Definition Integer Content review template ID.
    Suggestion String Review result suggestion. Valid values:
  • pass: it is recommended to pass;
  • review: suggest re-examination;
  • block: suggest banning.
  • TypeSet Array of String Moderation type. Valid when Suggestion is review or block. Format: Form.Label.
    Form refers to prohibited forms. Value range:
  • Image: people or icons in the image;
  • OCR: text on the screen;
  • ASR: text in speech.
  • Voice: sound.

  • Label indicates prohibited tags. Value range:
  • Porn: Pornography;
  • Terror: violence.
  • Polity: inappropriate information;
  • Ad: advertisement;
  • Illegal: illegal;
  • Abuse: abusive language;
  • Moan: panting.
  • ReviewTime String Moderation time in ISO date format.

    ReviewTemplate

    Moderation template details

    Used by actions: DescribeReviewTemplates.

    Name Type Description
    Definition Integer Unique tag of the moderation template.
    Name String Template Name
    Comment String Template description information.
    Type String Template type. Available values:
  • Preset: system-preset template;
  • Custom: custom template.
  • Labels Array of String List of violation labels to return.
    CreateTime String Template creation time in ISO date format (https://www.tencentcloud.com/document/product/266/11732?from_cn_redirect=1#I).
    UpdateTime String Template last modified time, use ISO date format.

    RoundPlayFilePlayInfo

    Playback information of the carousel program

    Used by actions: DescribeCurrentPlaylist.

    Name Type Description
    ItemId String Playlist item ID, assigned by the system.
    FileId String Media file identifier.
    StartPlayTime String Playback start time in ISO 8601 format. For details, see ISO date format description.
    Duration Float Playback duration in seconds.
    Progress Float Playback progress, in seconds.

    RoundPlayInfo

    Carousel task information

    Used by actions: DescribeRoundPlays.

    Name Type Description
    RoundPlayId String Carousel playlist identifier.
    StartTime String Playback start time in ISO 8601 format. For details, see ISO date format description.
    RoundPlaylist Array of RoundPlayListItemInfo Carousel list.
    Name String Carousel playbill name. Length limit: 64 characters.
    Desc String Carousel playlist description. Length limit: 256 characters.
    Status String Playback status. Available values:
  • Enabled: startup status;
  • Disabled: stopped.

  • Default value: Enabled.
    PlayBackMode String Playback mode. Optional values:
  • Loop: loop playback playlist;
  • Linear: single play, stop playback after playlist finishes.

  • Default value: Loop.
    Url String Carousel playback address.
    CreateTime String Creation time in ISO 8601 format. For details, see ISO date format description.
    UpdateTime String Update time, formatted according to the ISO 8601 standard. For details, see ISO date format description.
    ExpiredTime String Expiration time in ISO 8601 format. For details, see ISO date format description. Playback of the playlist stops after expiry. "9999-12-31T23:59:59+08:00" means it never expires.

    RoundPlayListItemInfo

    Program information for carousel playback

    Used by actions: CreateRoundPlay, DescribeRoundPlays, HandleCurrentPlaylist, ModifyRoundPlay.

    Name Type Required Description
    FileId String Yes Media file identifier.
    AudioVideoType String Yes Played audio and video type. Available values:
  • Transcode: transcoding output. There will be multiple templates for transcoding output, and the Definition field must be specified.
  • Original: original audio/video.

  • The format of Type must be HLS format.
    ItemId String No Play program ID, assigned by the system.
    Definition Integer No Specify the transcoding template for playback. This parameter is required when AudioVideoType is Transcode.

    RuleCache

    Path cache configuration.
    By default, the cache expiration time for all files is 30 days.

    Used by actions: CreateCDNDomain, ModifyCDNDomainConfig.

    Name Type Required Description
    RuleType String Yes Rule type:
  • all: take effect for all files;
  • file: The specified file suffix takes effect;
  • directory: specify the path to take effect;
  • path: The absolute path takes effect.
  • RulePaths Array of String Yes Matching content under the corresponding type of RuleType:
  • Fill with * when set to all;
  • For file, fill in the extension, such as jpg or txt;
  • For directory, fill in the path, such as /xxx/test/;
  • For path, fill in the absolute path, such as /xxx/test.html.
  • CacheConfig RuleCacheConfig Yes Cache configuration.

    RuleCacheConfig

    Path cache configuration (select one of the three cache modes)

    Used by actions: CreateCDNDomain, ModifyCDNDomainConfig.

    Name Type Required Description
    Cache CacheConfigCache No Cache configuration.
    NoCache CacheConfigNoCache No No cache configuration.
    FollowOrigin CacheConfigFollowOrigin No Follow the origin site configuration.

    SDMCDrmKeyProviderInfo

    DRM key provider information for SDMC.

    Used by actions: DescribeDrmKeyProviderInfo, SetDrmKeyProviderInfo.

    Name Type Required Description
    Uid String Yes User ID assigned by SDMC, which contains up to 128 characters.
    SecretId String Yes User secret ID assigned by Huaxida, which contains up to 128 characters.
    SecretKey String Yes User key content assigned by Huaxida. Maximum length: 128 characters.
    FairPlayCertificateUrl String Yes FairPlay certificate address assigned by SDMC. This address uses the HTTPS protocol and has a maximum length of 1024 characters.

    SPEKEDrm

    Encryption information of a third-party DRM manufacturer.

    Used by actions: CreateProcedureTemplate, ProcessMedia, ResetProcedureTemplate.

    Name Type Required Description
    ResourceId String Yes

    Resource tagging. The field content is user-customized. It supports 1-128 characters, including numbers, letters, underscores (_), and hyphens (-). This field corresponds to the cid field in the Speke request. Note: Different DRM manufacturers have different restrictions on this field (for example, SDMC does not support underscores in this field). For specific rules, please confirm with the DRM manufacturer.

    KeyServerUrl String Yes

    DRM manufacturer access address. This field content is obtained from the DRM manufacturer. Note: Different DRM manufacturers have different limits on the number of substreams. For example, PallyCon cannot exceed 5 substreams, and DRMtoday supports stream encryption for a maximum of 9 substreams.

    Vector String Yes

    Encryption initialization vector (32-byte hexadecimal string). This field content is user-customized.

    EncryptionMethod String No

    Encryption method. Available values:
    cbcs: PlayReady, Widevine, FairPlay, Widevine+FairPlay, Widevine+PlayReady, PlayReady+FairPlay, Widevine+PlayReady+FairPlay supported;
    cenc: PlayReady, Widevine, Widevine+PlayReady supported;
    If left blank, cbcs is used by default for FairPlay;
    cenc is used by default for PlayReady and Widevine;
    cbcs is used by default for Widevine+FairPlay, PlayReady+FairPlay, Widevine+PlayReady+FairPlay;
    cenc is used by default for Widevine+PlayReady;

    EncryptionPreset String No

    Substream encryption rule. Default: preset 0
    preset 0: use the same key to encrypt all substreams;
    preset 1: use different keys to encrypt each substream;

    KeyAcquireMode String No

    DRM manufacturer request method.

    Enumeration values:

    • POST: Most DRM manufacturers use the POST method for requests.
    • GET: Some DRM manufacturers support the GET method for requests. When using this method, request information needs to be included in the KeyServerUrl field.

    Default value: POST

    SampleSnapshotTaskInput

    Task input parameter type for sampling screenshot taking of a video

    Used by actions: CreateProcedureTemplate, DescribeTaskDetail, ProcessMedia, PullEvents, ResetProcedureTemplate.

    Name Type Required Description
    Definition Integer Yes Sampled screenshot template ID.
    WatermarkSet Array of WatermarkInput No Watermark list. Multiple image or text watermarks up to a maximum of 10 are supported.

    SampleSnapshotTemplate

    Description of the sampled screenshot template

    Used by actions: DescribeSampleSnapshotTemplates.

    Name Type Description
    Definition Integer Unique identifier of the sampling screenshot template.
    Type String Template type. Valid values:
  • Preset: system-preset template;
  • Custom: custom template.
  • Name String Sample screenshot template name.
    Comment String Template description information.
    Width Integer Maximum value of the screenshot width (or long edge) in px. Value range: 0 and [128, 4096].
  • If both Width and Height are 0, the resolution is the same as the source.
  • If Width is 0 but Height is not 0, the width will be proportionally scaled.
  • If Width is not 0 but Height is 0, the height will be proportionally scaled.
  • If both Width and Height are not 0, the resolution is as specified by the user.

  • Default value: 0.
    Height Integer Maximum value of the screenshot height (or short side). Value range: 0 and [128, 4096]. Unit: px.
  • If both Width and Height are 0, the resolution is the same as the source.
  • If Width is 0 but Height is not 0, the width will be proportionally scaled.
  • If Width is not 0 but Height is 0, the height will be proportionally scaled.
  • If both Width and Height are not 0, the resolution is as specified by the user.

  • Default value: 0.
    ResolutionAdaptive String Resolution adaptation. Available values:
  • open: enabled. At this point, Width represents the long side of the video, and Height represents the short side of the video;
  • close: closed. At this point, Width represents the video width, and Height indicates the video height.

  • Default value: open.
    Format String Image format.
    SampleType String Sampling screenshot type.
    SampleInterval Integer Sampling interval.
    CreateTime String Template creation time in ISO date format (https://www.tencentcloud.com/document/product/266/11732?from_cn_redirect=1#I).
    UpdateTime String Template last modified time, use ISO date format.
    FillType String Filling method. When the width and height parameters in the screenshot configuration are inconsistent with the aspect ratio of the original video, the processing method for the screenshot is "padding". Optional filling methods:
  • stretch: Stretch each frame to fill the entire screen, which may cause the transcoded video to be "squashed" or "stretched";
  • black: Fill with black. Maintain the video aspect ratio and fill the remaining edges with black.
  • white: Leave blank, maintain video aspect ratio, and fill the remaining edges with white.
  • gauss: Gaussian blur, maintain video aspect ratio, and apply Gaussian blur to the remaining edge part.

  • Default value: black.

    SceneAigcImageOutputConfig

    Configuration of the output media file for a scenario-based AIGC image generation task.

    Used by actions: CreateSceneAigcImageTask, DescribeTaskDetail, PullEvents.

    Name Type Required Description
    StorageMode String No

    Storage mode

    Enumeration values:

    • Temporary: Temporary storage. The generated video file will not be stored in VOD. You can obtain a temporary access URL in the event notification, with a valid period of 7 days.
    • Permanent: Permanent storage. The generated video file will be stored in VOD. You can obtain the FileId in the event notification.

    Default value: Temporary

    MediaName String No

    Output filename, up to 64 characters. By default, the system specifies the generated filename.

    ClassId Integer No

    Category ID, used to categorize and manage media. You can create a category via the Create Category API to obtain the category ID.

  • Default value: 0, indicating other categories.
  • ExpireTime String No

    Expiry date of the output file. The file will be deleted after this time. It never expires by default. The format follows the ISO 8601 standard. For details, see ISO date format description.

    AspectRatio String No

    Specify the aspect ratio of the generated image. Input format: W:H.
    This field is valid in the following scenarios:

    • Product image generation scenario. Available values are: 1:1, 3:2, 2:3, 3:4, 4:3, 4:5, 5:4, 16:9, 9:16, 21:9
    • AI image expansion scenario. Available values are: 1:1, 3:2, 2:3, 3:4, 4:3, 4:5, 5:4, 9:16, 16:9, 21:9. It can be used in conjunction with ImageWidth and ImageHeight. The rules are as follows:
      1. When only AspectRatio is specified, it adaptively adjusts based on the original image.
      2. When AspectRatio and ImageWidth are specified, ImageHeight is calculated from both, and vice versa.
      3. When AspectRatio, ImageWidth, and ImageHeight are specified simultaneously, ImageWidth and ImageHeight are prioritized.
    EncodeConfig ImageSceneAigcEncodeConfig No

    Output image encoding format parameters.

    ImageWidth Integer No

    Output image width. Only valid for AI image expansion scenarios.

    ImageHeight Integer No

    Output image height. Only valid in AI image expansion scenarios.

    Resolution String No

    Output resolution. Only valid for the ai_try_on scenario. Available values: 1K, 2K, 4K.

    SceneAigcImageTask

    Scenario-based AIGC image generation task info

    Used by actions: DescribeTaskDetail, PullEvents.

    Name Type Description
    TaskId String Task ID.
    Status String Task status. Valid values:
  • PROCESSING: Processing;
  • FINISH: Completed.
  • ErrCode Integer Error code. A non-zero error code is returned for a source error. If 0 is returned, use the ErrCode of each specific task.
    Message String Error message.
    Progress Integer Task progress, with a value range of [0-100].
    Input SceneAigcImageTaskInput Input information of the AIGC image generation task.
    Output SceneAigcImageTaskOutput Output information of an AIGC image generation task.
    SessionId String An identifier for deduplication. If there has been a request with the same identifier within the past seven days, an error will be returned for the current request. The maximum length is 50 characters. Leaving it blank or using a null string indicates no deduplication is required.
    SessionContext String Source context, which is used to pass through the user request information. The callback for task flow status changes will return the value of this field. The maximum length is 1,000 characters.

    SceneAigcImageTaskInput

    Scenario-based AIGC image generation task info

    Used by actions: DescribeTaskDetail, PullEvents.

    Name Type Description
    SceneInfo AigcImageSceneInfo Scenario-based image generation parameter configuration.
    FileInfos Array of SceneAigcImageTaskInputFileInfo List of input images.
    OutputConfig SceneAigcImageOutputConfig Output media file configuration for scenario-based image generation tasks.

    SceneAigcImageTaskInputFileInfo

    Input file info for the scenario-based AIGC image generation task

    Used by actions: CreateSceneAigcImageTask, DescribeTaskDetail, PullEvents.

    Name Type Required Description
    Type String No Input video file type. Valid values:
  • File: on-demand media file;
  • Url: accessible URL;
  • FileId String No Media file ID of the image file, which is the globally unique identifier of the file in VOD, assigned by the VOD backend after successful upload. You can obtain this field in the video upload completion event notification (https://www.tencentcloud.com/document/product/266/7830?from_cn_redirect=1) or the VOD console (https://console.tencentcloud.com/vod/media). This parameter is valid when Type is File.
    Description:
    1. An image less than 7 MB is recommended.
    2. Image format. Valid values: jpeg, jpg, png, and webp.
    Url String No Accessible file URL. This parameter is valid when Type is Url.
    Description:
    1. An image less than 7 MB is recommended.
    2. Image format. Valid values: jpeg, jpg, png, and webp.

    SceneAigcImageTaskOutput

    Output of a scenario-based AIGC image generation task.

    Used by actions: DescribeTaskDetail, PullEvents.

    Name Type Description
    FileInfos Array of SceneAigcImageTaskOutputFileInfo Output file information of the AIGC image generation task.

    SceneAigcImageTaskOutputFileInfo

    Information of the output file of a scenario-based AIGC image generation task.

    Used by actions: DescribeTaskDetail, PullEvents.

    Name Type Description
    StorageMode String Storage mode. Valid values:
  • Permanent: permanent storage;
  • Temporary: temporary storage;

  • MediaName String Output filename, up to 64 characters. By default, the system assigns the generated filename. Valid when StorageMode is Permanent.
    ClassId Integer Category ID, used to categorize and manage media. You can create a category and obtain the category ID through the Create Category API. Valid when StorageMode is Permanent.
    ExpireTime String Expiry date of the output file. The file will be deleted after this time. By default, it never expires. The format follows the ISO 8601 standard. For details, see ISO date format description.
    FileType String File type, for example, mp4, flv.
    FileUrl String Media file playback address.
    FileId String Media file ID. Valid when StorageMode is Permanent.
    MetaData MediaMetaData Meta information of the output video. Valid when StorageMode is Permanent.

    SceneAigcVideoOutputConfig

    Output media file configuration for scenario-based AIGC video tasks.

    Used by actions: CreateSceneAigcVideoTask, DescribeTaskDetail.

    Name Type Required Description
    StorageMode String No Storage mode. Valid values:
  • Permanent: retained permanently. The generated image file will be stored in VOD, and the FileId can be obtained from the event notification;
  • Temporary: temporary storage. The generated image file will not be stored in VOD, and a temporary access URL can be obtained from the event notification;

  • Default value: Temporary
    MediaName String No Output filename. It can contain up to 64 characters. By default, the system specifies the filename.
    ClassId Integer No Category ID, used to categorize and manage media. You can create a category and obtain the category ID through the Create Category API.
  • Default value: 0, indicate other categories.
  • ExpireTime String No Expiry date of the output file. The file will be deleted after this time. The default is permanent with no expiration. The format follows the ISO 8601 standard. For details, see ISO date format description.
    AspectRatio String No Aspect ratio of the generated video. Input format: W:H. Only valid for product image scenarios. Options: 16:9, 9:16.
    Duration Float No Duration of the generated video. Available values: 4, 6, 8 seconds.

    SceneAigcVideoTask

    Information of the scenario-based AIGC video task.

    Used by actions: DescribeTaskDetail.

    Name Type Description
    TaskId String Task ID.
    Status String Task status. Valid values:
  • PROCESSING: Processing;
  • FINISH: Completed.
  • ErrCode Integer Error code. A non-zero error code is returned for a source error. If 0 is returned, use the ErrCode of each specific task.
    Message String Error message.
    Progress Integer Task progress, with a value range of [0-100].
    Input SceneAigcVideoTaskInput Input information of an AIGC video task.
    Output SceneAigcVideoTaskOutput Output information of an AIGC video task.
    SessionId String Identifier for deduplication. If a request with the same identifier has been sent within the past seven 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 String Source context, which is used to pass through the user request information. The callback for task flow status changes will return the value of this field. The maximum length is 1,000 characters.

    SceneAigcVideoTaskInput

    Information of scenario-based AIGC video tasks.

    Used by actions: DescribeTaskDetail.

    Name Type Description
    SceneInfo AigcVideoSceneInfo Scenario-based image generation parameter configuration.
    FileInfos Array of SceneAigcVideoTaskInputFileInfo List of input images.
    OutputConfig SceneAigcVideoOutputConfig Output media file configuration for scenario-based image generation tasks.

    SceneAigcVideoTaskInputFileInfo

    Input file information of the scenario-based AIGC image task.

    Used by actions: CreateSceneAigcVideoTask, DescribeTaskDetail.

    Name Type Required Description
    Type String No Input video file type. Valid values:
  • File: on-demand media file;
  • Url: accessible URL;
  • FileId String No Media file ID of the image file, which is the globally unique identifier of the file in VOD, assigned by the VOD backend after successful upload. You can obtain this field in the video upload completion event notification (https://www.tencentcloud.com/document/product/266/7830?from_cn_redirect=1) or the VOD console (https://console.tencentcloud.com/vod/media). This parameter is valid when Type is File.
    Description:
    1. An image less than 7 MB is recommended.
    2. Image format. Valid values: jpeg, jpg, png, and webp.
    Url String No Accessible file URL. This parameter is valid when Type is Url.
    Description:
    1. An image less than 7 MB is recommended.
    2. Image format. Valid values: jpeg, jpg, png, and webp.

    SceneAigcVideoTaskOutput

    Output of scenario-based AIGC video generation tasks.

    Used by actions: DescribeTaskDetail.

    Name Type Description
    FileInfos Array of SceneAigcImageTaskOutputFileInfo Output file information for AIGC video task.

    ScratchRepairInfo

    Scratch removal control information

    Used by actions: CreateEnhanceMediaTemplate, CreateRebuildMediaTemplate, CreateTranscodeTemplate, DescribeTaskDetail, ModifyEnhanceMediaTemplate, ModifyRebuildMediaTemplate, ModifyTranscodeTemplate, PullEvents, RebuildMedia.

    Name Type Required Description
    Switch String Yes Scratch control switch. Available values:
  • ON: turn on scratch removal;
  • OFF: Turn off scratch removal.
  • Intensity Float No Scratch removal strength. Valid only when the scratch control switch is ON. Value range: 0.0–1.0.
    Default: 0.0.
    Type String No Scratch removal type. Valid only when the scratch control switch is ON. Available values:
  • normal: normal scratch removal;

  • Default value: normal.

    SegmentConfigureInfo

    Video splitting task recognition control parameters.

    Used by actions: CreateAIRecognitionTemplate, DescribeAIRecognitionTemplates.

    Name Type Required Description
    Switch String Yes Video splitting recognition task switch. Available values:
  • ON: enable the intelligent video splitting recognition task;
  • OFF: Disable the intelligent video splitting recognition task.
  • SegmentConfigureInfoForUpdate

    Control parameter of the video splitting recognition task

    Used by actions: ModifyAIRecognitionTemplate.

    Name Type Required Description
    Switch String No Video splitting recognition task switch. Value range:
  • ON: enable the intelligent video splitting recognition task;
  • OFF: Disable the intelligent video splitting recognition task.
  • SemanticsSearchResult

    Semantic search result.

    Used by actions: SearchMediaBySemantics.

    Name Type Description
    FileId String

    Media file unique identifier ID.

    Title String

    Title generated by Intelligent Media Assets for the current clip

    Score Float

    Score of the video in this retrieval. A higher score indicates greater similarity to the retrieval value. Value ranges from 0 to 1.

    StartTimeOffset Float

    Start time of the video clip, unit: seconds

    EndTimeOffset Float

    End time of the video segment, unit: seconds

    SharpEnhanceInfo

    Detail enhancement control

    Used by actions: CreateEnhanceMediaTemplate, CreateProcessImageAsyncTemplate, CreateRebuildMediaTemplate, DescribeTaskDetail, ModifyEnhanceMediaTemplate, ModifyProcessImageAsyncTemplate, ModifyRebuildMediaTemplate, PullEvents, RebuildMedia.

    Name Type Required Description
    Switch String Yes Detail enhancement control switch. Valid values:
  • ON: enable detail enhancement;
  • OFF: disables detail enhancement
  • Intensity Float No Detail enhancement intensity. Valid only when the detail enhancement control switch is ON. Value range: 0.0–1.0.
    Default: 0.0.

    SnapshotByTimeOffset2017

    Screenshot output information (2017 version)

    Used by actions: DescribeTaskDetail, PullEvents.

    Name Type Description
    ErrCode Integer Error code.
  • 0: success;
  • Other value: failure.
  • TimeOffset Integer Screenshot time, in ms.
    Url String Screenshot output file address.

    SnapshotByTimeOffsetTask2017

    Video screenshot at specified time task information. This structure is only used for tasks initiated by the 2017 SnapshotByTimeOffset API (https://www.tencentcloud.com/document/product/266/8102?from_cn_redirect=1).

    Used by actions: DescribeTaskDetail, PullEvents.

    Name Type Description
    TaskId String Screenshot job ID.
    FileId String Screenshot file ID.
    Definition Integer Screenshot specification. See SnapshotByTimeOffset parameter template.
    SnapshotInfoSet Array of SnapshotByTimeOffset2017 Screenshot result info.

    SnapshotByTimeOffsetTaskInput

    Task input parameter type for screenshot taking at specified time points for a video.

    Used by actions: CreateProcedureTemplate, DescribeTaskDetail, ProcessMedia, PullEvents, ResetProcedureTemplate.

    Name Type Required Description
    Definition Integer Yes

    Time point screenshot template ID.

    ExtTimeOffsetSet Array of String No

    List of screenshot time points. Time points support two formats: s and %.

  • The unit for a string that ends with s is second. For example, 3.5s means the time point is at 3.5 seconds.
  • The unit for a string that ends with % is a percentage of the video duration. For example, 10% means the time point is at 10% of the video's total duration.
  • TimeOffsetSet Array of Float No

    List of screenshot time points, in ms. This parameter is not recommended. We recommend that you use the ExtTimeOffsetSet parameter.

    WatermarkSet Array of WatermarkInput No

    Watermark list. Up to 10 image or text watermarks are supported.

    SnapshotByTimeOffsetTemplate

    Specified time point screenshot template details.

    Used by actions: DescribeSnapshotByTimeOffsetTemplates.

    Name Type Description
    Definition Integer Unique identifier of the screenshot template at the specified time point.
    Type String Template type. Valid values:
  • Preset: system-preset template;
  • Custom: custom template.
  • Name String Screenshot template name at specified time point.
    Comment String Template description information.
    Width Integer Maximum value of the screenshot width (or long edge) in px. Value range: 0 and [128, 4096].
  • If both Width and Height are 0, the resolution is the same as the source.
  • If Width is 0 but Height is not 0, the width will be proportionally scaled.
  • If Width is not 0 but Height is 0, the height will be proportionally scaled.
  • If both Width and Height are not 0, the resolution is as specified by the user.

  • Default value: 0.
    Height Integer Maximum value of the screenshot height (or short side). Value range: 0 and [128, 4096]. Unit: px.
  • If both Width and Height are 0, the resolution is the same as the source.
  • If Width is 0 but Height is not 0, the width will be proportionally scaled.
  • If Width is not 0 but Height is 0, the height will be proportionally scaled.
  • If both Width and Height are not 0, the resolution is as specified by the user.

  • Default value: 0.
    ResolutionAdaptive String Resolution adaptation. Available values:
  • open: open. At this point, Width represents the long side of the video, and Height indicates the short side of the video;
  • close: closed. At this point, Width represents the video width, and Height indicates the video height.

  • Default value: open.
    Format String Image format.
    CreateTime String Template creation time in ISO date format (https://www.tencentcloud.com/document/product/266/11732?from_cn_redirect=1#I).
    UpdateTime String Template last modified time, use ISO date format.
    FillType String Filling method. When the width and height parameters in the screenshot configuration are inconsistent with the aspect ratio of the original video, the processing method for the screenshot is "padding". Optional filling methods:
  • stretch: Stretch each frame to fill the entire screen, possibly causing the transcoded video to be "squashed" or "stretched";
  • black: black bars, maintain video aspect ratio, edges filled with black.
  • white: Leave blank, maintain video aspect ratio, and fill the remaining edges with white.
  • gauss: Gaussian blur, maintain video aspect ratio, and apply Gaussian blur to the remaining edge part.

  • Default value: black.

    SortBy

    Sorting basis

    Used by actions: DescribeLLMComprehendTemplates, DescribeProcedureTemplates, DescribeTasks, SearchMedia.

    Name Type Required Description
    Field String Yes Sorting field.
    Order String Yes Sorting method. Available values: Asc (ascending), Desc (descending).

    SpecificationDataItem

    Statistical data for the task of the specified specification.

    Used by actions: DescribeMediaProcessUsageData.

    Name Type Description
    Specification String Task specification.
    Data Array of TaskStatDataItem Statistical data.

    SplitMediaOutputConfig

    Output of the video splitting result file.

    Used by actions: DescribeTaskDetail, PullEvents, SplitMedia.

    Name Type Required Description
    MediaName String No Output filename, up to 64 characters. By default, the system assigns a generated filename.
    Type String No Output file format. Available values: mp4, hls. mp4 is selected by default.
    ClassId Integer No Category ID, used to categorize and manage media. You can create a category and obtain the category ID through the create category API.
  • Default value: 0, indicate other categories.
  • ExpireTime String No Expiry date of the output file. The file will be deleted after this time. It never expires by default. The format is based on the ISO 8601 standard. For details, see ISO date format description.

    SplitMediaTask

    Video splitting task information. This field has a value only when TaskType is SplitMedia.

    Used by actions: DescribeTaskDetail, PullEvents.

    Name Type Description
    TaskId String Task ID.
    Status String Task stream status. Valid values:
  • PROCESSING: Processing;
  • FINISH: completed
  • ErrCodeExt String Error code. An empty string indicates success, and other values indicate failure. For values, see Video Processing Error Codes.
    ErrCode Integer Error code. 0 indicates that the task is successful, and other values indicate that the task has failed. (This field is not recommended. Use the new error code field ErrCodeExt instead.)
    Message String Error message.
    FileInfoSet Array of SplitMediaTaskSegmentInfo Detailed information list of video splitting tasks.
    SessionContext String Source context, which is used to pass through the user request information. The callback for task flow status changes will return the value of this field. The maximum length is 1,000 characters.
    SessionId String Identifier for deduplication. If a request with the same identifier has been sent within the past seven 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.
    Progress Integer Video splitting task progress, value ranges from 0 to 100.

    SplitMediaTaskConfig

    Video splitting task configuration information.

    Used by actions: SplitMedia.

    Name Type Required Description
    StartTimeOffset Float No Start offset time of video splitting, in seconds.
  • Leave this parameter empty or set it to 0, indicating that the transcoded video starts from the start position of the original video;
  • When the value is greater than 0 (assuming n), the transcoded video starts from the nth second of the original video;
  • When the value is less than 0 (assuming -n), it means the transcoded video starts n seconds before the end of the original video.
  • EndTimeOffset Float No End time offset of video splitting, in seconds.
  • If not set or set to 0, the transcoded video will last until the end of the original video.
  • When the value is greater than 0 (assuming n), it means the transcoded video lasts until the nth second of the original video and then ends;
  • When the value is less than 0 (assuming -n), it means the transcoded video lasts until n seconds before the end of the original video.
  • ProcedureName String No Task flow name. Fill in when you want to automatically execute a task flow on the generated new video.
    OutputConfig SplitMediaOutputConfig No Video splitting output information.

    SplitMediaTaskInput

    Input information of the video splitting task

    Used by actions: DescribeTaskDetail, PullEvents.

    Name Type Description
    FileId String Video ID.
    StartTimeOffset Float Start time offset of video splitting, in seconds.
  • Leave it empty or set it to 0, indicating that the transcoded video starts from the start position of the original video;
  • When the value is greater than 0 (assuming n), the transcoded video starts from the nth second of the original video;
  • When the value is less than 0 (assuming -n), the transcoded video starts n seconds before the end of the original video.
  • EndTimeOffset Float End time offset of video splitting, in seconds.
  • If not set or set to 0, the transcoded video will last until the end of the original video.
  • When the value is greater than 0 (assuming n), the transcoded video lasts until the nth second of the original video.
  • When the value is less than 0 (assuming -n), it means the transcoded video lasts until n seconds before the original video ends.
  • ProcedureName String Task flow name. Fill in if you want to execute a task flow on the generated new video.
    OutputConfig SplitMediaOutputConfig Output information of video splitting.

    SplitMediaTaskSegmentInfo

    Video splitting task information.

    Used by actions: DescribeTaskDetail, PullEvents.

    Name Type Description
    Input SplitMediaTaskInput Input information of the video splitting task.
    Output TaskOutputMediaInfo Output information of the video splitting task.
    ProcedureTaskId String Task ID of the task type Procedure. If a task flow template (ProcedureName) is specified in the video split task information list when initiating a video splitting task (https://www.tencentcloud.com/document/api/266/51098?from_cn_redirect=1), initiate the task when the task flow template specifies one or more of MediaProcessTask, AiAnalysisTask, and AiRecognitionTask.
    ReviewAudioVideoTaskId String Task ID of the ReviewAudioVideo type. If a task flow template (ProcedureName) is specified in the video split task information list when initiating a video splitting task (https://www.tencentcloud.com/document/api/266/51098?from_cn_redirect=1), the task is triggered when ReviewAudioVideoTask is specified in the task flow template.

    StatDataItem

    Statistical data

    Used by actions: DescribeCDNStatDetails, DescribeCDNUsageData, DescribeClientUploadAccelerationUsageData, DescribeReviewDetails, DescribeStorageDetails.

    Name Type Description
    Time String Start time of the time interval where the data resides, using ISO date format. For example, when the time granularity is day, 2018-12-01T00:00:00+08:00 means the interval from December 1, 2018 (inclusive) to December 2, 2018 (exclusive).
  • For hour-level data, 2019-08-22T00:00:00+08:00 refers to the stats from 0:00 to 1:00 on August 22, 2019.
  • When representing day-level data, 2019-08-22T00:00:00+08:00 refers to the stats for 2019-08-22.
  • Value Integer Data size.
  • Data of storage space, in bytes.
  • Transcoding duration data, in seconds.
  • Traffic data, in bytes.
  • Bandwidth statistics in bit/s.
  • Live stream editing data, in seconds.
  • Loop banner data, in seconds.
  • Number of sub-applications data. The unit is count.
  • Log service usage data, in counts.
  • StickerTrackItem

    Texture information on the texture track.

    Used by actions: ComposeMedia.

    Name Type Required Description
    SourceMedia String Yes Media material source of the texture segment, which can be:
  • Media file ID for VOD;
  • Download URL of other media files.

  • Note: When using the download URL of another media file as the material source, and access control (such as anti-hotlinking) is enabled, the URL needs to carry access control parameters (such as a hotlink protection signature).
    Duration Float Yes Duration of the sticker, in seconds.
    StartTime Float No Start time of the sticker on the track, in seconds.
    CoordinateOrigin String No Origin position. Valid values:
  • Center: The coordinate origin is the central position, such as the center of canvas.

  • Default: Center.
    XPos String No Horizontal position of the texture origin relative to the canvas origin, supporting two formats: % and px.
  • If a string ends with %, it indicates that the texture XPos is at a specified percentage of the canvas width. For example, 10% means the XPos is at 10% of the canvas width.
  • If a string ends with px, it indicates that the texture XPos is in pixels. For example, 100px means the XPos is 100 pixels.

  • Default value: 0px.
    YPos String No Vertical position of the texture origin from the canvas origin. Supports two formats: % and px.
  • When a string ends with %, it means the texture YPos is at the specified percentage of the canvas height. For example, 10% means the YPos is 10% of the canvas height.
  • If a string ends with px, it means the texture YPos unit is pixel. For example, 100px means YPos is 100 pixels.

  • Default value: 0px.
    Width String No Width of a sticker, supporting two formats: % and px.
  • If a string ends with %, it indicates that the Width of a sticker is a percentage of the canvas width. For example, 10% means that Width is 10% of the canvas width.
  • If a string ends with px, it means the texture Width unit is pixel. For example, 100px means the Width is 100 pixels.
  • If both Width and Height are empty, the width and height of the texture material itself will be used.
  • If Width is 0 but Height is not, the width will be proportionally scaled.
  • If Width is not empty but Height is empty, the height will be proportionally scaled.
  • Height String No Height of a sticker, supporting two formats: % and px.
  • If a string ends with %, it indicates that the Height of a sticker is a percentage of the canvas height. For example, 10% means that Height is 10% of the canvas height.
  • If a string ends with px, it means the texture Height unit is pixel. For example, 100px means the Height is 100 pixels.
  • If both Width and Height are empty, the width and height of the texture material itself will be used.
  • If Width is empty but Height is not empty, the width will be proportionally scaled.
  • If Width is not empty but Height is empty, the height will be proportionally scaled.
  • ImageOperations Array of ImageTransform No Operation performed on the texture, such as image rotation.

    StorageRegionInfo

    Storage region information

    Used by actions: DescribeStorageRegions.

    Name Type Description
    Region String Storage region.
    Description String Store region description information.
    Status String Status. Whether it is enabled. Valid values:
  • opened: enabled.
  • unopened: Not activated.
  • IsDefault Boolean Whether it is the default storage region. true: yes; false: no.
    Area String Storage area. Valid values:
  • Chinese Mainland: within the Chinese mainland (excluding Hong Kong (China), Macao (China), and Taiwan (China)).
  • Outside Chinese Mainland: outside the Chinese mainland.
  • StorageStatData

    Partition stats of VOD storage usage

    Used by actions: DescribeStorageData.

    Name Type Description
    Area String Billing region of VOD storage. Possible values:
  • Chinese Mainland: within the Chinese mainland (excluding Hong Kong (China), Macao (China), and Taiwan (China)).
  • Outside Chinese Mainland: outside the Chinese mainland.
  • TotalStorage Integer Current total storage capacity, in bytes.
    InfrequentStorage Integer Current infrequent access storage capacity, in bytes.
    StandardStorage Integer Current standard storage capacity, in bytes.
    ArchiveStorage Integer Current archive storage capacity, in bytes.
    DeepArchiveStorage Integer Current deep archive storage capacity, in bytes.

    SubAppIdInfo

    Sub-application information.

    Used by actions: DescribeSubAppIds.

    Name Type Description
    SubAppId Integer Subapplication ID.
    SubAppIdName String Subapplication name.
    Description String Sub-application description.
    CreateTime String Subapplication creation time in ISO date format.
    Status String Subapplication status. Valid values:
  • On: enabled;
  • Off: disabled
  • Destroying: Being destroyed.
  • Destroyed: completion of destruction.
  • Name String Subapplication name (this field is not recommended; use the new subapplication name field SubAppIdName instead).
    Mode String Application mode. Valid values:
    - fileid: FileID mode only
    - - fileid+path: FileID & Path mode
    Leave empty to select FileID-only mode by default.
    StorageRegions Array of String Storage region where the sub-application is enabled.
    Tags Array of ResourceTag tag bound to the sub-application.

    SubtitleFormatsOperation

    Subtitle format list operations.

    Used by actions: ModifyAIRecognitionTemplate.

    Name Type Required Description
    Type String Yes Operation type. Value range:
  • add: add the format list specified by Formats;
  • delete: delete the format list specified by Formats;<l/i>
  • reset: Reset the configured format list to the format list specified by Formats.
  • Formats Array of String Yes Subtitle format list. Value range:
  • vtt: Generate a WebVTT subtitle file;
  • srt: generate SRT subtitle file.
  • SubtitleInfoInput

    Subtitle suppression input

    Used by actions: CreateProcedureTemplate, ProcessMedia, ResetProcedureTemplate.

    Name Type Required Description
    Id String Yes

    Subtitle ID.

    StreamIndex Integer No

    Specifies the subtitle track index to be suppressed into the video. The value starts from 0, where 0 indicates usage of the first subtitle track in the source video. This parameter is valid only when Id is SUBTITLE_ID_PLACE_HOLDER. StreamIndex must be consistent with the subtitle track index in the source file. For example, if the subtitle track in the source file is stream#0:3, StreamIndex should be 3. Otherwise, task processing failed.

    FontType String No

    Font type.

    Enumeration values:

    • hei.ttf: Heiti
    • song.ttf: Song Typeface
    • kai.ttf (recommended) or simkai.ttf: KaiTi
    • msyh.ttf: Microsoft YaHei
    • msyhbd.ttf: Microsoft YaHei in bold
    • hkjgt.ttf: Hwakangangtai
    • dhttx.ttf: Dianheiti Ultra Light
    • xqgdzt.ttf: Xique Ancient Dictionary
    • qpcyt.ttf: Smart Splice Super Round Body
    • arial.ttf: only supports English
    • dinalternate.ttf: DIN Alternate Bold
    • helveticalt.ttf: Helvetica
    • helveticains.ttf: Helvetica Inserat
    • trajanpro.ttf: TrajanPro-Bold
    • korean.ttf: Korean
    • japanese.ttf: Japanese
    • thai.ttf: Thai
    • roboto.ttf: Roboto
    • notosans.ttf: NotoSans
    • notosansthai.ttf: Thai NotoSansThai
    • sarabun.ttf: Thai Sarabun
    • kanit.ttf: Thai Kanit
    • charmonman.ttf: Thai Charmonman
    • notonaskharabic.ttf: Arabic NotoNaskhArabic
    • notosansdevanagari.ttf: India NotoSansDevanagari
    • notosanstc.ttf: Cantonese Source Han Sans NotoSansTC
    • notosanskr.ttf: Korean NotoSansKR
    • gothica1.ttf: Korean GothicA1
    • nanummyeongjo.ttf: Korean NanumMyeongjo
    • notosansjp.ttf: Japanese NotoSansJP
    • notoserifjp.ttf: Japanese NotoSerifJP
    • shipporimincho.ttf: Japanese ShipporiMincho

    Default value: hei.ttf Heiti

    FontSize String No

    Font size. If not specified, the font size of the subtitle file applies. Pixel and percentage formats are supported:

    • Pixel: Npx, where N ranges from (0,4096].
    • Percentage: N%, where N ranges from (0,100]. For example, 10% means the subtitle font size equals 10% of the source video height. If left blank and the subtitle file has no settings, the default is 5% of the source video height.
    FontColor String No

    Text color, format: 0xRRGGBB.

    Default value: 0xFFFFFF (white).

    FontAlpha Float No

    Text opacity. Value ranges from 0 to 1.

    • 0: completely transparent;
    • 1: completely opaque

    Default value: 1

    YPos String No

    Subtitle Y-coordinate position. Specify this parameter to ignore the built-in coordinates in the subtitle file. Supports pixel and percentage formats:

    • Pixel: Npx, where N ranges from [0,4096].
    • Percentage: N%, where N ranges from [0,100]. For example, 10% means the subtitle Y-coordinate = 10%source video height. Default value: source video height4%.
      Note: The coordinate axis origin is at the bottom of the central axis of the source video, and the subtitle reference point is at the bottom of the central axis of the subtitle. Refer to the figure below:image
    BoardY String No

    Y-coordinate position of the subtitle background base plate. Supports pixel and percentage formats:

    • Pixel: Npx, where N ranges from [0,4096].
    • Percentage: N%, where N ranges from [0,100]. For example, 10% means the subtitle background base plate Y-coordinate = 10% * source video height. If not specified, the subtitle background base plate is disabled.
      Note: The coordinate axis origin is located at the bottom of the central axis of the source video, and the reference point of the subtitle background base plate is at the bottom of its central axis. See the following diagram:image
    BoardWidth String No

    Width of the base plate, a positive integer.

    • Pixel: Npx, N value range: [0,4096].
    • Percentage: N%, N value range: [0, 100]. If background is enabled and this parameter is not specified, the default width is 90% of the source video width.
    BoardHeight String No

    Height of the base plate, a positive integer.

    • Pixel: Npx, N value range: [0,4096].
    • Percentage: N%, N value range: [0, 100]. If background is enabled and this parameter is not specified, the default height is 15% of the source video height.
    BoardColor String No

    Base plate color. Format: 0xRRGGBB.

    Default value: 0x000000 (black).

    BoardAlpha Float No

    Subtitle background transparency. Value range: [0, 1].

    • 0: completely transparent;
    • 1: completely opaque.

    Default value: 0.8.

    Alignment String No

    Alignment mode.

    Enumeration values:

    • top: Top alignment. The top position of subtitles is fixed, while the bottom position changes according to the number of lines.
    • bottom: Bottom alignment. The bottom position of subtitles is fixed, while the top position changes according to the number of lines.

    Default value: bottom

    OutlineWidth String No

    Stroke width. Floating-point number.

    • Pixel: Npx, N value range: [0, 1000].
    • Percentage: N%, N value range: [0, 100].

    By default if left blank, it is 0.3% of the source video height.

    OutlineColor String No

    Border color. Format: 0xRRGGBB.

    Default value: 0x000000 (black).

    OutlineAlpha Float No

    Stroke transparency. The value should be a positive floating-point number in the range of (0, 1].

    • 0: completely transparent;
    • 1: completely opaque.

    Default value: 1

    ShadowWidth String No

    Shadow width. Floating-point number.

    • Pixel: Npx, N value range: [0, 1000].
    • Percentage: N%, N value range: [0, 100]. No shading by default if left blank.
    ShadowColor String No

    Shadow color. Format: 0xRRGGBB.

    Default value: 0x000000 (black) if shadow is set.

    ShadowAlpha Float No

    Shadow transparency. The value should be a positive floating-point number in the range of (0, 1].

    • 0: completely transparent;
    • 1: completely opaque.

    Default value: 1, which means completely opaque, with shadow configured.

    LineSpacing String No

    Line spacing. Positive integer.

    • Pixel: Npx, N value ranges from 0 to 1000.
    • Percentage: N%, N value ranges from 0 to 100.

    Default value: 0

    SuperResolutionInfo

    Image super-resolution control parameters.

    Used by actions: CreateEnhanceMediaTemplate, CreateProcessImageAsyncTemplate, CreateRebuildMediaTemplate, CreateTranscodeTemplate, DescribeTaskDetail, ModifyEnhanceMediaTemplate, ModifyProcessImageAsyncTemplate, ModifyRebuildMediaTemplate, ModifyTranscodeTemplate, PullEvents, RebuildMedia.

    Name Type Required Description
    Switch String Yes Super resolution control switch. Optional values:
  • ON: Turn on super resolution;
  • OFF: Disable super resolution.
  • Type String No Super resolution type. It is valid only when the super resolution control switch is ON. Available values:
  • lq: super resolution for low-resolution videos with considerable noise;
  • hq: for high resolution video super-resolution.

  • Default value: lq.
    Size Integer No Super resolution multiple. Available value: 2.
    Default value: 2.

    SvgWatermarkInput

    Input parameters of the SVG watermark template.

    Used by actions: CreateWatermarkTemplate, DescribeWatermarkTemplates.

    Name Type Required Description
    Width String No Width of a watermark, supporting six formats: px, %, W%, H%, S%, and L%.
  • If a string ends with px, it means the watermark Width is in pixels. For example, 100px means the Width is 100 pixels. If 0px is entered and
    When Height is not 0px, it means the width of the watermark is proportionally scaled based on the original SVG image. When both Width and Height are set to 0px, it means the width of the watermark is the width of the original SVG image.
  • If a string ends with W%, it indicates that the Width of a watermark is a percentage of a video's width. For example, 10W% means that Width is 10% of a video's width.
  • If a string ends with H%, it indicates that the Width of a watermark is a percentage of a video's height. For example, 10H% means that Width is 10% of a video's height.
  • If a string ends with S%, it indicates that the Width of a watermark is a percentage of a video's short side. For example, 10S% means that Width is 10% of a video's short side.
  • If a string ends with L%, it indicates that the Width of a watermark is a percentage of the long side of the video. For example, 10L% means that Width is 10% of the long side of the video.
  • When the string ends with %, it has the same meaning as W%.

  • Default value: 10W%.
    Height String No Height of a watermark, supporting six formats: px, W%, H%, S%, and L%.
  • If a string ends with px, it means the watermark Height is in pixels; for example, 100px means the Height is 100 pixels. If 0px is entered and
    When Width is not 0px, it means the height of the watermark is proportionally scaled based on the original SVG image. When both Width and Height are set to 0px, it means the height of the watermark is the height of the original SVG image.
  • If a string ends with W%, it indicates that the Height of a watermark is a percentage of a video's width. For example, 10W% means that Height is 10% of a video's width.
  • If a string ends with H%, it indicates that the Height of a watermark is a percentage of a video's height. For example, 10H% means that Height is 10% of a video's height.
  • If a string ends with S%, it indicates that the Height of a watermark is a percentage of the video's short side. For example, 10S% means that Height is 10% of the video's short side.
  • If a string ends with L%, it indicates that the Height of a watermark is a percentage of the long side of the video. For example, 10L% means that Height is 10% of the long side of the video.
  • When the string ends with %, it has the same meaning as H%.

  • Default value: 0px.

    SvgWatermarkInputForUpdate

    SVG watermark template input parameters.

    Used by actions: ModifyWatermarkTemplate.

    Name Type Required Description
    Width String No Width of a watermark, supporting six formats: px, %, W%, H%, S%, and L%.
  • If a string ends with px, it means the watermark Width is in pixels. For example, 100px means the Width is 100 pixels. If 0px is entered and
    When Height is not 0px, it means the width of the watermark is proportionally scaled based on the original SVG image. When both Width and Height are set to 0px, it means the width of the watermark is the width of the original SVG image.
  • If a string ends with W%, it indicates that the Width of a watermark is a percentage of a video's width. For example, 10W% means that Width is 10% of a video's width.
  • If a string ends with H%, it indicates that the Width of a watermark is a percentage of a video's height. For example, 10H% means that Width is 10% of a video's height.
  • If a string ends with S%, it indicates that the Width of a watermark is a percentage of a video's short side. For example, 10S% means that Width is 10% of a video's short side.
  • If a string ends with L%, it indicates that the Width of a watermark is a percentage of the long side of the video. For example, 10L% means that Width is 10% of the long side of the video.
  • When the string ends with %, it has the same meaning as W%.

  • Default value: 10W%.
    Height String No Height of a watermark, supporting six formats: px, %, W%, H%, S%, and L%.
  • If a string ends with px, the watermark Height is in pixels. For example, 100px means the Height is 100 pixels. If 0px is entered and
    When Width is not 0px, it means the height of the watermark is proportionally scaled based on the original SVG image. When both Width and Height are 0px, it means the height of the watermark is the height of the original SVG image.
  • If a string ends with W%, it indicates that the Height of a watermark is a percentage of a video's width. For example, 10W% means that Height is 10% of a video's width.
  • If a string ends with H%, it indicates that the Height of a watermark is a percentage of a video's height. For example, 10H% means that Height is 10% of a video's height.
  • If a string ends with S%, it indicates that the Height of a watermark is a percentage of the video's short side. For example, 10S% means that Height is 10% of the video's short side.
  • If a string ends with L%, it indicates that the Height of a watermark is a percentage of the long side of a video. For example, 10L% means that Height is 10% of the long side of a video.
  • When the string ends with %, it has the same meaning as H%.

  • Default value: 0px.

    TEHDConfig

    Parameter configuration for top speed Codec.

    Used by actions: CreateAdaptiveDynamicStreamingTemplate, CreateTranscodeTemplate, DescribeTranscodeTemplates, ModifyAdaptiveDynamicStreamingTemplate.

    Name Type Required Description
    Type String Yes Top speed codec type. Available values:
  • TEHD-100 means top speed codec-100;
  • OFF means disabling top speed codec.
  • If not specified, OFF is used.
    MaxVideoBitrate Integer No Maximum video bitrate. Valid when Type is specified as top speed Codec.
    If not specified or set to 0, VOD automatically sets the bitrate cap.

    TEHDConfigForUpdate

    Top Speed Codec parameter configuration.

    Used by actions: CreateProcedureTemplate, ModifyTranscodeTemplate, ProcessMedia, ResetProcedureTemplate.

    Name Type Required Description
    Type String No Top speed Codec type. Available values:
  • TEHD-100: top speed Codec-100;
  • OFF: disables top speed Codec.
  • If not specified, no modification is made.
    MaxVideoBitrate Integer No Maximum video bitrate. If not specified, no modification is made.

    TagConfigureInfo

    Intelligent Tag Task Control Parameters

    Used by actions: CreateAIAnalysisTemplate, DescribeAIAnalysisTemplates.

    Name Type Required Description
    Switch String Yes Intelligent tag task switch. Available values:
  • ON: enable intelligent tag task
  • OFF: disables the intelligent tag task.
  • TagConfigureInfoForUpdate

    Control parameters of intelligent tag tasks

    Used by actions: ModifyAIAnalysisTemplate.

    Name Type Required Description
    Switch String No Intelligent tag task switch. Available values:
  • ON: enable the intelligent tag task;
  • OFF: Disable the intelligent tag task.
  • TaskOutputMediaInfo

    Information of the output media file of a video processing task

    Used by actions: DescribeTaskDetail, PullEvents.

    Name Type Description
    FileId String Media file ID.
    MediaBasicInfo MediaBasicInfo Basic information of the media file generated after pull conversion.

    TaskSimpleInfo

    Task summary information.

    Used by actions: DescribeTasks.

    Name Type Description
    TaskId String Task ID.
    Status String Task status. Valid values: WAITING (Waiting), PROCESSING (Processing), FINISH (Completed), ABORTED (Terminated).
    FileId String Video ID.
    TaskType String Task type. Value:
  • Procedure: video processing task;
  • EditMedia: video editing task;
  • ReduceMediaBitrate: bitrate reduction task;
  • WechatDistribute: publishing on WeChat task;
  • ReviewAudioVideo: audio/video moderation task;
  • MPSWorkflowTask: MPS video processing task.

  • Task types compatible with the 2017 version:
  • Transcode: video transcoding task;
  • SnapshotByTimeOffset: video screencapturing task;
  • Concat: video splicing job;
  • Clip: video clipping task;
  • ImageSprites: capture CSS sprites task.

  • CreateTime String Task creation time in ISO datetime format.
    BeginProcessTime String Task execution start time in ISO datetime format. If the task has not started, this field is empty.
    FinishTime String Task end time in ISO date format. If the task is not completed yet, this field is empty.
    SessionId String Identification code for deduplication, if there has been a request with the same identifier within the past seven days.
    SessionContext String Source context, used to pass through user request information.

    TaskStatData

    Statistical data of video processing tasks.

    Used by actions: DescribeMediaProcessUsageData.

    Name Type Description
    TaskType String Task type.
  • Transcoding: standard transcoding.
  • Transcoding-TESHD: TSC transcoding.
  • Editing: video editing
  • Editing-TESHD: extremely fast high-definition video editing
  • AdaptiveBitrateStreaming: adaptive bitrate streaming.
  • ContentAudit: content moderation.
  • ContentRecognition: content recognition.
  • RemoveWatermark: watermark removal
  • ExtractTraceWatermark: extract watermark.
  • AddTraceWatermark: Add watermark
  • RebuildMedia: audio and video quality revival
  • QualityInspect: audio and video quality inspection
  • Transcode: Transcoding, including standard transcoding, top speed Codec, and video editing (not recommended)
  • VoiceTranslation: speech translation
  • JITTranscoding: JIT transcoding
  • VideoSnapshot: video screenshot.
  • JITEncryption: real-time encryption
  • Summary Array of TaskStatDataItem Statistical data overview of the number of tasks. Amount unit: seconds.
    Details Array of SpecificationDataItem Details of task statistics data for varying specifications.
    Transcoding specification:
  • Remuxing: transmuxing
  • Audio: audio transcoding.
  • Standard.H264.SD: H.264 encoding for SD transcoding
  • Standard.H264.HD: H.264 encoding for high-definition transcoding
  • Standard.H264.FHD: H.264 encoding for full high-definition transcoding
  • Standard.H264.2K: H.264 encoding 2K transcode.
  • Standard.H264.4K: H.264 encoding 4K transcode
  • Standard.H265.SD: H.265 encoding mode SD transcoding
  • Standard.H265.HD: H.265 encoding high-definition transcoding.
  • Standard.H265.FHD: H.265 encoding for full high-definition transcoding
  • Standard.H265.2K: H.265 encoding 2K transcode.
  • Standard.H265.4K: H.265 encoding 4K transcode
  • TESHD-10.H264.SD: H.264 encoding SD TSC transcoding
  • TESHD-10.H264.HD: H.264 encoding high-definition TSC transcoding
  • TESHD-10.H264.FHD: H.264 full HD TSC transcoding
  • TESHD-10.H264.2K: H.264 encoding 2K TSC transcoding
  • TESHD-10.H264.4K: H.264 encoding 4K TSC transcoding
  • TESHD-10.H265.SD: H.265 encoding SD TSC transcoding
  • TESHD-10.H265.HD: H.265 encoding high-definition TSC transcoding
  • TESHD-10.H265.FHD: H.265 encoding full HD TSC transcoding
  • TESHD-10.H265.2K: H.265 encoding 2K TSC transcoding
  • TESHD-10.H265.4K: H.265 encoding 4K TSC transcoding
  • Edit.Audio: audio editing
  • Edit.H264.SD: H.264 encoding for SD video editing
  • Edit.H264.HD: H.264 encoding for high-definition video editing
  • Edit.H264.FHD: Full HD video editing with H.264 encoding
  • Edit.H264.2K: H.264 encoding 2K video editing
  • Edit.H264.4K: H.264 encoding for 4K video editing
  • Edit.H265.SD: H.265 encoding SD video editing
  • Edit.H265.HD: H.265 encoding for high-definition video editing
  • Edit.H265.FHD: Full HD video editing with H.265 encoding
  • Edit.H265.2K: H.265 encoding 2K video editing
  • Edit.H265.4K: H.265 encoding 4K video editing
  • Edit.TESHD-10.H264.SD: H.264 encoding for SD extremely fast high-definition video editing
  • Edit.TESHD-10.H264.HD: H.264 encoding high-definition extremely fast high-definition video editing
  • Edit.TESHD-10.H264.FHD: H.264 encoding full HD extremely fast high-definition video editing
  • Edit.TESHD-10.H264.2K: H.264 encoding 2K extremely fast high-definition video editing
  • Edit.TESHD-10.H264.4K: H.264 encoding 4K extremely fast high-definition video editing
  • Edit.TESHD-10.H265.SD: H.265 encoding for standard definition extremely fast high-definition video editing
  • Edit.TESHD-10.H265.HD: H.265 encoding high-definition extremely fast high-definition video editing
  • Edit.TESHD-10.H265.FHD: H.265 encoding full HD extremely fast high-definition video editing
  • Edit.TESHD-10.H265.2K: H.265 encoding 2K extremely fast high-definition video editing
  • Edit.TESHD-10.H265.4K: H.265 encoding 4K extremely fast high-definition video editing

  • Watermark removal and audio and video quality revival specifications:
  • 480P: short side ≤ 480px
  • 720P: Short side ≤ 720px
  • 1080P: Short side ≤ 1080px
  • 2K: Short side ≤ 1440px
  • 4K: short side ≤ 2160px
  • 8K: short side ≤ 4320px
  • Audio: audio.

  • Real-time transcoding specification:
  • JITTranscoding.H264.SD: H.264 encoding standard definition JIT transcoding.
  • JITTranscoding.H264.HD: H.264 encoding high-definition JIT transcoding
  • JITTranscoding.H264.FHD: H.264 encoding full HD JIT transcoding
  • JITTranscoding.H264.2K: H.264 encoding 2K JIT transcoding
  • JITTranscoding.Audio: JIT audio transcoding
  • JITTranscoding.Copy: remux JIT transcoding

  • Video screenshot specification:
  • SnapshotByTimeOffset: time point screenshot.
  • SampleSnapshot: sampled screenshot
  • ImageSprite: sprite.
  • TaskStatDataItem

    Statistical data of the task, including the number of tasks and usage.

    Used by actions: DescribeAigcUsageData, DescribeMediaProcessUsageData.

    Name Type Description
    Time String Start time of the time interval where the data resides, using ISO date format. For example, when the time granularity is day, 2018-12-01T00:00:00+08:00 means the interval from December 1, 2018 (inclusive) to December 2, 2018 (exclusive).
    Count Integer Number of tasks.
    Usage Integer Task usage.

    TempCertificate

    Temporary credentials

    Used by actions: ApplyUpload.

    Name Type Description
    SecretId String Temporary security credential Id.
    SecretKey String Temporary security credential Key.
    Token String Token value.
    ExpiredTime Integer The time when the certificate is invalid. Return a Unix timestamp accurate to the second.

    TerrorismConfigureInfo

    Task control parameters for authentication that involve unsafe information

    Used by actions: CreateContentReviewTemplate, DescribeContentReviewTemplates.

    Name Type Required Description
    ImgReviewInfo TerrorismImgReviewTemplateInfo No Task control parameter for image recognition involving unsafe information.
    OcrReviewInfo TerrorismOcrReviewTemplateInfo No Task control parameter for text identification involving unsafe information.

    TerrorismConfigureInfoForUpdate

    Task control parameters for authentication involving unsafe information.

    Used by actions: ModifyContentReviewTemplate.

    Name Type Required Description
    ImgReviewInfo TerrorismImgReviewTemplateInfoForUpdate No Task control parameter for image recognition involving unsafe information.
    OcrReviewInfo TerrorismOcrReviewTemplateInfoForUpdate No Task control parameter for text recognition involving unsafe information.

    TerrorismImgReviewTemplateInfo

    Task control parameter for image recognition involving unsafe content

    Used by actions: CreateContentReviewTemplate, DescribeContentReviewTemplates.

    Name Type Required Description
    Switch String Yes

    Task switch for image recognition involving unsafe information. Available values:

  • ON: Turn on the task for image recognition involving unsafe information;
  • OFF: Turn off the task for image recognition involving unsafe information.
  • LabelSet Array of String No

    Image recognition involves filter tags for unsafe information. If the review result contains the selected tag, the result will be returned. If the filter tag is empty, all auditing results will be returned. Optional values:

  • guns: weapons and firearms;
  • crowd: crowd gathering;
  • bloody: graphic violence;
  • police: police force;
  • banners: terrorism flags;
  • militant: militant;
  • explosion: explosions and fires;
  • terrorists: terrorist figures;
  • scenario: terrorism scenes.
  • BlockConfidence Integer No

    Threshold score for determining suspected violations. When the review score reaches or exceeds this threshold, it is considered a suspected violation. If not specified, it defaults to 90 points. Value range: 0–100.

    ReviewConfidence Integer No

    Threshold score for determining whether manual review is required for violations. When the review score reaches or exceeds this threshold, manual review is considered necessary. If not specified, it defaults to 80 points. Value range: 0–100.

    TerrorismImgReviewTemplateInfoForUpdate

    Task control parameters for image recognition involving unsafe information.

    Used by actions: ModifyContentReviewTemplate.

    Name Type Required Description
    Switch String No

    Task switch for image recognition involving unsafe information. Available values:

  • ON: Turn on the task for image recognition involving unsafe information.
  • OFF: Turn off the task for image recognition involving unsafe information.
  • LabelSet Array of String No

    Image recognition involves filter tags for unsafe information. If the review result contains the selected tag, the result will be returned. If the filter tag is empty, all auditing results will be returned. Available values are:

  • guns: weapons and firearms;
  • crowd: crowd gathering;
  • bloody: graphic violence;
  • police: Police force;
  • banners: terrorism flags;
  • militant: militant;
  • explosion: explosions and fires;
  • terrorists: terrorist figures;
  • scenario: terrorism scenes.
  • BlockConfidence Integer No

    Threshold score for determining suspected violations. When the review score reaches or exceeds this threshold, it is considered a suspected violation. Value range: 0-100.

    ReviewConfidence Integer No

    Threshold score for determining whether manual review is required for violations. When the review score reaches or exceeds this threshold, manual review is deemed necessary. Value range: 0–100.

    TerrorismOcrReviewTemplateInfo

    Task control parameters for text recognition involving unsafe information

    Used by actions: CreateContentReviewTemplate, DescribeContentReviewTemplates.

    Name Type Required Description
    Switch String Yes Task switch for text recognition involving unsafe information. Available values:
  • ON: enable the task involving text recognition of unsafe information;
  • OFF: Disable the task involving text recognition of unsafe information.
  • BlockConfidence Integer No Threshold score for determining suspected violations. When the review score reaches or exceeds this threshold, it is considered a suspected violation. If not specified, it defaults to 100 points. Value range: 0–100.
    ReviewConfidence Integer No Threshold score for determining whether manual review is required for violations. When the review score reaches or exceeds this threshold, manual review is deemed necessary. If not specified, it defaults to 75 points. Value range: 0–100.

    TerrorismOcrReviewTemplateInfoForUpdate

    Task control parameter for text recognition involving unsafe information

    Used by actions: ModifyContentReviewTemplate.

    Name Type Required Description
    Switch String No Task switch for text recognition involving unsafe information. Available values:
  • ON: enable the task involving text recognition of unsafe information;
  • OFF: disables tasks involving unsafe information in text recognition.
  • BlockConfidence Integer No Threshold score for determining suspected violations. When the review score reaches or exceeds this threshold, it is considered a suspected violation. Default value: 100. Value range: 0–100.
    ReviewConfidence Integer No Threshold score for determining whether manual review is required for violations. When the review score reaches or exceeds this threshold, manual review is required. If not specified, the default is 75. Value range: 0–100.

    TextToSpeechAsyncInput

    Input of the speech synthesis task.

    Used by actions: DescribeTaskDetail.

    Name Type Description
    VoiceId String

    Voice ID.

    Text String

    Text to convert to speech.

    LanguageBoost String

    Text to speech language.

    ExtParam String

    Extended parameters in the format of a JSON string.

    TextToSpeechAsyncOutput

    Output of the speech synthesis task.

    Used by actions: DescribeTaskDetail.

    Name Type Description
    AudioUrl String

    URL of the synthetic audio result

    VoiceId String

    Used voice ID.

    ExtInfo String

    Extended information.

    FileId String

    FileId of the synthetic audio result

    TextToSpeechAsyncOutputOption

    Output parameter settings for asynchronous dubbing.

    Used by actions: TextToSpeechAsync.

    Name Type Required Description
    Type String No

    Output type of the synthesis result.

    Enumeration values:

    • fileId: Generate a new VOD file ID,
    • url: Audio URL, valid for 24 hours.

    TextToSpeechAsyncTask

    Speech synthesis task.

    Used by actions: DescribeTaskDetail.

    Name Type Description
    TaskId String

    Task ID.

    Status String

    Task status. Valid values:

  • PROCESSING: Processing;
  • FINISH: Completed.
  • ErrCode Integer

    Error code. 0 indicates success, and other values indicate failure:

  • 40000: invalid input parameters. Check the input parameters;
  • 60000: source file error (for example, video data corruption). Confirm whether the source file is normal;
  • 70000: internal service error. Retry is recommended.
  • Message String

    Error message.

    ErrCodeExt String

    Error code. An empty string indicates success, and other values indicate failure. For values, see video processing error codes.

    Input TextToSpeechAsyncInput

    Text to speech task input information.

    Output TextToSpeechAsyncOutput

    Text to speech task output information.

    SessionId String

    Identifier for deduplication. If a request with the same identifier has been sent within the past seven 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 String

    Source context. This is used to pass user request information. The task status change callback returns the value of this field. The maximum length is 1000 characters.

    Progress Integer

    Pull the upload progress, with a value range of [0-100].

    TextToSpeechSyncOutputOption

    Synchronous text to speech output parameter settings

    Used by actions: TextToSpeechSync.

    Name Type Required Description
    Type String No

    Output type of the synthesis result.

    Enumeration values:

    • hex: Audio base64 encoding,
    • url: Audio URL, valid for 24 hours.

    TextWatermarkTemplateInput

    Text watermarking template

    Used by actions: CreateWatermarkTemplate, DescribeWatermarkTemplates.

    Name Type Required Description
    FontType String Yes Font type. Currently, two are supported:
  • simkai.ttf: Supports Chinese and English;
  • arial.ttf: English only.
  • FontSize String Yes Font size. Format: Npx, where N is a numerical value.
    FontColor String Yes Font color. Format: 0xRRGGBB. Default value: 0xFFFFFF (white).
    FontAlpha Float Yes Text opacity, value ranges from 0 to 1.
  • 0: completely transparent.
  • 1: completely opaque.

  • Default value: 1.

    TextWatermarkTemplateInputForUpdate

    Text watermarking template

    Used by actions: ModifyWatermarkTemplate.

    Name Type Required Description
    FontType String No Font type. Currently two are supported:
  • simkai.ttf: support Chinese and English;
  • arial.ttf: English only.
  • FontSize String No Font size. Format: Npx, where N is a numerical value.
    FontColor String No Text color. Format: 0xRRGGBB. Default value: 0xFFFFFF (white).
    FontAlpha Float No Text opacity, value ranges from 0 to 1.
  • 0: completely transparent.
  • 1: completely opaque.
  • ThirdPartyDrmInfo

    Third-party Drm encryption information.

    Used by actions: CreateProcedureTemplate, ProcessMedia, ResetProcedureTemplate.

    Name Type Required Description
    DrmTypes Array of String Yes

    Encryption type:

    • FairPlay: can only be used for HLS, and the segment format can only be mp4 or mp4-mp4-segment
    • Widevine: can be used for HLS and DASH. For HLS, the segment format can only be mp4 or mp4-mp4-segment. For DASH, the segment format can only be mp4 or mp4-mp4-byterange
    • PlayReady: can be used for HLS and DASH. For HLS, the segment format can only be mp4 or mp4-mp4-segment. For DASH, the segment format can only be mp4 or mp4-mp4-byterange
    • Widevine+FairPlay, PlayReady+FairPlay, Widevine PlayReady FairPlay composite: can only be used for HLS, and the segment format can only be mp4 or mp4-mp4-segment
    • Widevine PlayReady composite: can be used for HLS and DASH. For HLS, the segment format can only be mp4 or mp4-mp4-segment. For DASH, the segment format can only be mp4 or mp4-mp4-byterange
    SPEKEDrm SPEKEDrm No

    Third-party DRM vendor information.

    TimeRange

    Universal data type for description of a time period.

    Used by actions: DescribeRoundPlays, DescribeTasks, SearchMedia.

    Name Type Required Description
    After String No
  • Equal to or greater than this time (start time).
  • Format according to the ISO 8601 standard. For details, see ISO date format description.
  • Before String No
  • Less than this time (end time).
  • Format according to the ISO 8601 standard. For details, see ISO date format description.
  • TraceWatermarkInput

    Watermark parameters for source tracing

    Used by actions: CreateProcedureTemplate, ProcessMedia, ResetProcedureTemplate.

    Name Type Required Description
    Switch String No Traceability watermark task switch. Required. Available values:
  • ON: enable traceability watermark
  • OFF: disables traceability watermark.
  • TranscodePlayInfo2017

    Playback information of video transcoding (2017)

    Used by actions: DescribeTaskDetail, PullEvents.

    Name Type Description
    Url String Playback address.
    Definition Integer Transcoding specification ID. See transcoding parameter template.
    Bitrate Integer Sum of the mean video stream bitrate and mean audio stream bitrate. Unit: bps.
    Height Integer Maximum height of the video stream. Measurement unit: px.
    Width Integer Maximum video stream width in px.

    TranscodeTask2017

    Video transcoding task information. This structure is only used for tasks initiated via the 2017 video transcoding API.

    Used by actions: DescribeTaskDetail, PullEvents.

    Name Type Description
    TaskId String Transcoding task ID.
    ErrCode Integer Error code.
  • 0: success;
  • Other value: failure.
  • Message String Error message.
    FileId String Transcoded file ID.
    FileName String Name of the transcoded file.
    Duration Integer Video duration, in seconds.
    CoverUrl String Address of a cover.
    PlayInfoSet Array of TranscodePlayInfo2017 Playback information generated after video transcoding.

    TranscodeTaskInput

    Transcode task input parameter type

    Used by actions: CreateProcedureTemplate, DescribeTaskDetail, ProcessMedia, PullEvents, ResetProcedureTemplate.

    Name Type Required Description
    Definition Integer Yes

    Video transcoding template ID.

    WatermarkSet Array of WatermarkInput No

    Watermark list. Up to 10 image or text watermarks are supported.

    TraceWatermark TraceWatermarkInput No

    Traceable watermark.

    CopyRightWatermark CopyRightWatermarkInput No

    Copyright watermark.

    BlindWatermark BlindWatermarkInput No

    Digital watermark.

    MosaicSet Array of MosaicInput No

    Mosaic list. Up to 10 images are supported.

    HeadTailSet Array of HeadTailTaskInput No

    Opening and ending content list. Up to 10 opening and ending contents are supported.

    StartTimeOffset Float No

    Start time offset of the transcoded video, in seconds.

  • If not specified or set to 0, the transcoded video starts from the start position of the original video;
  • If the value is greater than 0 (assuming n), the transcoded video starts from the position at the nth second of the original video;
  • If the value is less than 0 (assuming -n), the transcoded video starts from the position n seconds before the end of the original video.
  • EndTimeOffset Float No

    End time offset of the transcoded video, in seconds.

  • If not specified or set to 0, the transcoded video lasts until the end of the original video.
  • If the value is greater than 0 (assuming n), the transcoded video lasts until the nth second of the original video.
  • If the value is less than 0 (assuming -n), the transcoded video lasts until n seconds before the end of the original video.
  • OverrideParameter OverrideTranscodeParameter No

    Custom video transcoding parameters.

    SubtitleInfoSet Array of SubtitleInfoInput No

    Subtitle suppression information list. Up to 2 are supported.

    TranscodeTemplate

    Transcode template detail

    Used by actions: DescribeTranscodeTemplates.

    Name Type Description
    Definition String

    Unique identifier of the transcoding template.

    Container String

    Container format. Valid values: mp4, flv, hls, mp3, flac, ogg.

    Name String

    Transcoding template name.

    Comment String

    Template description information.

    Type String

    Template type. Valid values:

  • Preset: preset template.
  • Custom: custom template.
  • RemoveVideo Integer

    Indicates whether to remove video data. Valid values:

  • 0: Data is reserved.
  • 1: Data is removed.
  • RemoveAudio Integer

    Indicates whether to remove audio data. Valid values:

  • 0: Data is reserved;
  • 1: Data is removed.
  • VideoTemplate VideoTemplateInfo

    Video stream configuration parameters. This field is valid only when RemoveVideo is 0.

    AudioTemplate AudioTemplateInfo

    Audio stream configuration parameters. This field is valid only when RemoveAudio is 0.

    TEHDConfig TEHDConfig

    Top Speed Codec transcoding parameters.

    EnhanceConfig EnhanceConfig

    Audio/video enhancement configurations.

    ContainerType String

    Container format filter criteria. Available values:

  • Video: video format, a container format that can contain both video and audio streams;
  • PureAudio: pure audio format, a container format that can only contain audio streams.
  • CreateTime String

    Template creation time, in ISO date format.

    UpdateTime String

    Last template modification time, in ISO date format.

    SegmentType String

    Segment type. It is valid only when Container is hls.

    StdExtInfo String

    Extended parameter.

    TransitionOperation

    Transition operation

    Used by actions: ComposeMedia.

    Name Type Required Description
    Type String Yes Transition type. Valid values:

    • Image transition operation, used for transition processing between two video clip images:


      • ImageFadeInFadeOut: image fade-in and fade-out.
      • BowTieHorizontal: horizontal bow.
      • BowTieVertical: vertical bow.
      • ButterflyWaveScrawler: shake.
      • Cannabisleaf: maple leaf.
      • Circle: retract and release in an arc.
      • CircleCrop: Ring gather.
      • Circleopen: ellipse gather.
      • Crosswarp: horizontal warping.
      • Cube: cube.
      • DoomScreenTransition: curtain.
      • Doorway: Porch.
      • Dreamy: wave.
      • DreamyZoom: horizontal gathering.
      • FilmBurn: Burning clouds.
      • GlitchMemories: Jitter.
      • Heart: heart shape.
      • InvertedPageCurl: Page turning.
      • Luma: Corrode.
      • Mosaic: nine-grid.
      • Pinwheel: windmill.
      • PolarFunction: elliptic diffusion.
      • PolkaDotsCurtain: Arc diffusion.
      • Radial: radar scanning
      • RotateScaleFade: up-down retraction.
      • Squeeze: vertical gathering.
      • Swap: enlarge and switch.
      • Swirl: spiral.
      • UndulatingBurnOutSwirl: Water flow spread.
      • Windowblinds: window blind.
      • WipeDown: collapse downward.
      • WipeLeft: Collapse to the left.
      • WipeRight: collapse rightward.
      • WipeUp: collapse upward.
      • ZoomInCircles: water ripple.


    • Audio transition operation, used for transition processing between two audio clips:

      • AudioFadeInFadeOut: sound fade-in and fade-out.



    TrtcRecordInfo

    TRTC simultaneous recording information.

    Used by actions: DescribeMediaInfos, DescribeTaskDetail, PullEvents, SearchMedia.

    Name Type Description
    SdkAppId Integer TRTC application ID.
    RoomId String TRTC room ID.
    TaskId String Recording task ID.
    UserIds Array of String User ID list of the recording participants.

    UrlSignatureAuthPolicy

    Signature-based Key anti-leech information

    Used by actions: DescribeVodDomains, ModifyVodDomainConfig.

    Name Type Required Description
    Status String Yes Key hotlink protection setting status. Available values:
  • Enabled: enablement.
  • Disabled: disabled.
  • EncryptedKey String No Key used for generating signature in Key hotlink protection.
    The length of the EncryptedKey string is 8–40 bytes. It cannot contain invisible characters.

    UserAgentFilter

    UserAgent blocklist and allowlist configuration

    Used by actions: CreateCDNDomain, ModifyCDNDomainConfig.

    Name Type Required Description
    Switch String Yes UserAgent allowlist/blocklist configuration switch. Valid values:
  • on: Enable;
  • off: Cache.
  • FilterRules Array of UserAgentFilterRule No List of effective UserAgent blocklist/allowlist rules.

    UserAgentFilterRule

    UserAgent blocklist and allowlist rule configuration

    Used by actions: CreateCDNDomain, ModifyCDNDomainConfig.

    Name Type Required Description
    FilterType String Yes UA allowlist/blocklist type:
  • whitelist: allowlist;
  • blacklist: blocklist.
  • UserAgents Array of String Yes UserAgent list.
    RuleType String Yes Rule type:
  • all: take effect for all files;
  • file: The specified file suffix takes effect;
  • directory: specify the path to take effect;
  • path: The absolute path takes effect.
  • RulePaths Array of String Yes Matching content under the corresponding type of RuleType:
  • Fill with * when set to all;
  • For file, fill in the extension, such as jpg or txt;
  • For directory, fill in the path, such as /xxx/test/;
  • For path, fill in the absolute path, such as /xxx/test.html.
  • UserDefineAsrTextReviewTemplateInfo

    Control parameters of the user-defined voice moderation task

    Used by actions: CreateContentReviewTemplate, DescribeContentReviewTemplates.

    Name Type Required Description
    Switch String Yes User-defined speech audit task switch. Available values:
  • ON: enable custom voice moderation task;
  • OFF: disables the custom voice moderation task.
  • LabelSet Array of String No User-customized voice filter tags. The auditing results including the selected tags are returned. If the filter tag is empty, all auditing results will be returned. To use the tag filtering feature, add the corresponding tag when adding custom voice keyword material.
    The number of tags can be up to 10, and each tag can contain up to 16 characters.
    BlockConfidence Integer No Threshold score for suspected violations. If the intelligent review score reaches or exceeds this value, the content is deemed as suspected violation. Default value: 100. Value range: 0–100.
    ReviewConfidence Integer No Threshold score for determining whether manual review is required for violations. When the review score reaches or exceeds this threshold, manual review is considered necessary. If not specified, the default is 75 points. Value range: 0–100.

    UserDefineAsrTextReviewTemplateInfoForUpdate

    Control parameters of a custom voice moderation task

    Used by actions: ModifyContentReviewTemplate.

    Name Type Required Description
    Switch String No User-defined speech audit task switch. Available values:
  • ON: enable custom voice moderation task;
  • OFF: Disable the custom voice moderation task.
  • LabelSet Array of String No User-customized voice filter tags. The review results including the selected tags are returned. If the filter tag is empty, all review results will be returned. To use the tag filtering feature, add the corresponding tag when adding custom voice keyword material.
    The number of tags can be up to 10, and each tag can contain up to 16 characters.
    BlockConfidence Integer No Threshold score for determining suspected violations. When the review score reaches or exceeds this threshold, it is considered a suspected violation. Value range: 0–100.
    ReviewConfidence Integer No Threshold score for determining whether manual review is required for violations. When the review score reaches or exceeds this threshold, manual review is required. Value range: 0–100.

    UserDefineConfigureInfo

    Control parameters of the user-defined audio/video moderation task

    Used by actions: CreateContentReviewTemplate, DescribeContentReviewTemplates.

    Name Type Required Description
    FaceReviewInfo UserDefineFaceReviewTemplateInfo No Control parameter for video moderation of user-defined characters.
    AsrReviewInfo UserDefineAsrTextReviewTemplateInfo No User-customized control parameters for voice audio and video moderation.
    OcrReviewInfo UserDefineOcrTextReviewTemplateInfo No User custom text audio/video moderation control parameter.

    UserDefineConfigureInfoForUpdate

    User-customized audio/video moderation task control parameters.

    Used by actions: ModifyContentReviewTemplate.

    Name Type Required Description
    FaceReviewInfo UserDefineFaceReviewTemplateInfoForUpdate No Control parameter for user-defined character audio/video moderation.
    AsrReviewInfo UserDefineAsrTextReviewTemplateInfoForUpdate No User-customized voice audio and video review control parameter.
    OcrReviewInfo UserDefineOcrTextReviewTemplateInfoForUpdate No User-customized control parameters for text, audio, and video moderation.

    UserDefineFaceReviewTemplateInfo

    Control parameters of a user-defined character audio/video moderation task

    Used by actions: CreateContentReviewTemplate, DescribeContentReviewTemplates.

    Name Type Required Description
    Switch String Yes Switch for the user-defined character audio/video moderation task. Available values:
  • ON: enable the customized figure audio/video moderation task;
  • OFF: Disable customized figure audio/video moderation task.
  • LabelSet Array of String No User-defined character filter tags. The audio/video moderation results including the selected tags are returned. If the filter tag is empty, all auditing results will be returned. To use the tag filtering feature, add the corresponding character tag when adding a custom facial library.
    The number of tags can be up to 10, and each tag can contain up to 16 characters.
    BlockConfidence Integer No Threshold score for determining suspected violations. When the review score reaches or exceeds this threshold, it is considered a suspected violation. If not specified, it defaults to 97 points. Value range: 0-100.
    ReviewConfidence Integer No Threshold score for violations that require manual review. If the review score reaches this threshold, manual review is required. Default value: 95. Value range: 0–100.

    UserDefineFaceReviewTemplateInfoForUpdate

    User-defined character control parameters for audio/video moderation tasks.

    Used by actions: ModifyContentReviewTemplate.

    Name Type Required Description
    Switch String No Switch for user-defined character audio/video moderation tasks. Available values:
  • ON: Turn on customized figure audio/video moderation tasks;
  • OFF: disables the customized figure audio/video moderation task.
  • LabelSet Array of String No User-defined character filter tags. The audio/video moderation results including the selected tags are returned. If the filter tag is empty, all audio/video moderation results will be returned. To use the tag filtering feature, add the corresponding character tag when adding a custom facial library.
    The number of tags can be up to 10, and each tag can contain up to 16 characters.
    BlockConfidence Integer No Threshold score for determining suspected violations. When the video moderation score reaches or exceeds this threshold, it is considered a suspected violation. Value range: 0–100.
    ReviewConfidence Integer No Threshold score for determining whether manual review is required for violations. When the video moderation score reaches or exceeds this value, manual review is considered necessary. Value range: 0–100.

    UserDefineOcrTextReviewTemplateInfo

    User-defined custom text audio/video moderation task control parameters.

    Used by actions: CreateContentReviewTemplate, DescribeContentReviewTemplates.

    Name Type Required Description
    Switch String Yes Switch for custom text, audio, and video moderation tasks. Available values:
  • ON: enable custom text, audio, and video moderation tasks;
  • OFF: disables the custom text audio/video moderation task.
  • LabelSet Array of String No User-customized text filter tags. The audio/video moderation results including the selected tags are returned. If the filter tag is empty, all audio/video moderation results will be returned. To use the tag filtering feature, add the corresponding tag when adding custom text keyword material.
    The number of tags can be up to 10, and each tag can contain up to 16 characters.
    BlockConfidence Integer No Threshold score for determining suspected violations. When the review score reaches or exceeds this threshold, it is considered a suspected violation. If not specified, it defaults to 100 points. Value range: 0–100.
    ReviewConfidence Integer No Threshold score for determining whether manual review is required for violations. When the review score reaches or exceeds this threshold, manual review is deemed necessary. If not specified, it defaults to 75 points. Value range: 0–100.

    UserDefineOcrTextReviewTemplateInfoForUpdate

    User-customized control parameters for text and audio/video moderation tasks.

    Used by actions: ModifyContentReviewTemplate.

    Name Type Required Description
    Switch String No Switch for custom text audio/video moderation tasks. Available values:
  • ON: Enable custom text audio/video moderation tasks;
  • OFF: disables the custom text audio/video moderation task.
  • LabelSet Array of String No User-customized text filter tags. The audio/video moderation results including the selected tags are returned. If the filter tag is empty, all audio/video moderation results will be returned. To use the tag filtering feature, add the corresponding tag when adding custom text keyword material.
    The number of tags can be up to 10, and each tag can contain up to 16 characters.
    BlockConfidence Integer No Threshold score for determining suspected violations. When the review score reaches this threshold or above, it is considered a suspected violation. Value range: 0–100.
    ReviewConfidence Integer No Threshold score for determining whether manual review is required for violations. When the review score reaches or exceeds this threshold, manual review is required. Value range: 0–100.

    VideoConfigureInfo

    JIT transcoding video template configuration.

    Used by actions: CreateJustInTimeTranscodeTemplate, DescribeJustInTimeTranscodeTemplates.

    Name Type Required Description
    Width Integer No Maximum value of the video stream width (or long edge) in px. Value range: 0 and [128, 1920].
  • If both Width and Height are 0, the resolution is the same as the source.
  • If Width is 0 but Height is not 0, the width will be proportionally scaled.
  • If Width is not 0 but Height is 0, the height will be proportionally scaled.
  • If both Width and Height are not 0, the resolution is as specified by the user.


  • Default value: 0.
    Height Integer No Maximum value of the video stream height (or short side). Value range: 0 and [128, 1920]. Unit: px.
  • If both Width and Height are 0, the resolution is the same as the source.
  • If Width is 0 but Height is not 0, the width will be proportionally scaled.
  • If Width is not 0 but Height is 0, the height will be proportionally scaled.
  • If both Width and Height are not 0, the resolution is as specified by the user.


  • Default value: 0.
    ResolutionAdaptive String No Resolution adaptation. Available values:
  • open: enabled. At this point, Width represents the long side of the video, and Height represents the short side of the video;
  • close: closed. At this point, Width represents the width of the video, and Height indicates the height of the video.


  • Default value: open.
    Bitrate Integer No Bitrate of video stream. Value range: 0 and [128, 10000]. Unit: kbps.
    When the value is 0, VOD sets the bitrate automatically.

    VideoConfigureInfoForUpdate

    Instant transcoding template update configuration.

    Used by actions: ModifyJustInTimeTranscodeTemplate.

    Name Type Required Description
    Width Integer No Maximum value of the video stream width (or long edge) in px. Value range: 0 and [128, 1920].
  • If both Width and Height are 0, the resolution is the same as the source.
  • If Width is 0 but Height is not 0, the width will be proportionally scaled.
  • If Width is not 0 but Height is 0, the height will be proportionally scaled.
  • If both Width and Height are not 0, the resolution is as specified by the user.


  • Default value: 0.
    Height Integer No Maximum value of the video stream height (or short side). Value range: 0 and [128, 1920]. Unit: px.
  • If both Width and Height are 0, the resolution is the same as the source.
  • If Width is 0 but Height is not 0, the width will be proportionally scaled.
  • If Width is not 0 but Height is 0, the height will be proportionally scaled.
  • If both Width and Height are not 0, the resolution is as specified by the user.


  • Default value: 0.
    ResolutionAdaptive String No Resolution adaptation. Available values:
  • open: enabled. At this point, Width represents the long side of the video, and Height represents the short side of the video;
  • close: closed. At this point, Width represents the video width, and Height represents the video height.


  • Default value: open.
    Bitrate Integer No Bitrate of video stream. Value range: 0 and [128, 10000]. Unit: kbps.
    When the value is 0, VOD automatically sets the bitrate.

    VideoDenoiseInfo

    Video noise reduction control parameters

    Used by actions: CreateEnhanceMediaTemplate, CreateRebuildMediaTemplate, CreateTranscodeTemplate, DescribeTaskDetail, ModifyEnhanceMediaTemplate, ModifyRebuildMediaTemplate, ModifyTranscodeTemplate, PullEvents, RebuildMedia.

    Name Type Required Description
    Switch String Yes Video noise reduction control switch. Available values:
  • ON: enable video noise reduction;
  • OFF: disable video noise reduction.
  • Type String No Video noise reduction type. Valid only when the video noise reduction control switch is ON. Available values:
  • weak: light video noise reduction;
  • strong: strong video noise reduction.

  • Default value: weak.

    VideoDubbingAsyncInput

    Input file for the video dubbing task.

    Used by actions: DescribeTaskDetail.

    Name Type Description
    InputUrl String

    Input video Url

    InputFileId String

    FileId of the input video

    SrcLanguage String

    Video source language. The default value is zh.

    DstLanguage String

    Target language of the video. Default: en

    Model String

    Dubbing model

    VideoDubbingAsyncOutput

    Output of the video dubbing task.

    Used by actions: DescribeTaskDetail.

    Name Type Description
    ResultUrl String

    Dubbing result Url

    FileId String

    Dubbing result FileId

    VideoDubbingAsyncTask

    Timbre design task.

    Used by actions: DescribeTaskDetail.

    Name Type Description
    TaskId String

    Task ID.

    Status String

    Task status. Valid values:

  • PROCESSING: Processing;
  • FINISH: Completed.
  • ErrCode Integer

    Error code. 0 indicates success, and additional values indicate failure:

  • 40000: invalid parameters. Check input parameters;
  • 60000: source file error (for example, video data damage). Confirm whether the source file is normal;
  • 70000: internal service error. Retry is recommended.
  • Message String

    Error message.

    ErrCodeExt String

    Error code. An empty string indicates success, and other values indicate failure. For values, see Video Processing Error Codes.

    Input VideoDubbingAsyncInput

    Video dubbing task input information.

    Output VideoDubbingAsyncOutput

    Video dubbing task output information.

    SessionId String

    Identifier for deduplication. If a request with the same identifier has been sent within the past seven 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 String

    Source context. This is used to pass user request information. The task status change callback returns the value of this field. The maximum length is 1000 characters.

    Progress Integer

    Pull upload progress. Value range: [0-100].

    VideoEnhanceConfig

    Video enhancement configuration.

    Used by actions: CreateTranscodeTemplate, ModifyTranscodeTemplate.

    Name Type Required Description
    EnhanceScenarioType String No Enhancement scenario configuration. Valid values:
  • common: common enhancement parameters, which are basic optimization parameters suitable for various video types, enhancing overall image quality.
  • AIGC: overall resolution enhancement. It uses AI technology to improve the overall video resolution and image clarity.
  • short_play: enhance facial and subtitle details, emphasizing characters' facial expressions and subtitle clarity to improve the viewing experience.
  • short_video: optimize complex and diverse image quality issues, tailoring quality enhancements for the complex scenarios such as short videos to address various visual issues.
  • game: fix motion blur and enhance details, with a focus on enhancing the clarity of game details and restoring blurry areas during motions to make the image content during gaming clearer and richer.
  • HD_movie_series (UHD TV shows and movies) obtains smooth UHD effect, targeting the demand for UHD video in broadcasting/OTT, and generates Ultra-High-Definition Standard Video at 4K 60fps HDR. It supports broadcasting scenario format standards.
  • LQ_material: low-definition material/old video restoration. It enhances overall resolution, and solves issues of old videos, such as low resolution, blur, distortion, scratches, and color temperature due to their age.
  • lecture: live shows, e-commerce, conferences, and lectures. It improves the face display effect and performs specific optimizations, including face region enhancement, noise reduction, and artifacts removal, for scenarios involving human explanation, such as live shows, e-commerce, conferences, and lectures.
  • Input of a null string indicates that the enhancement scenario is not used.
  • SuperResolution SuperResolutionInfo No Super-resolution configuration. If the source resolution is higher than the target resolution, the video will not be processed. Note that it cannot be enabled simultaneously with large model enhancement.
    Hdr HDRInfo No HDR configuration.
    Denoise VideoDenoiseInfo No Video noise reduction configuration. Note that it cannot be enabled simultaneously with large model enhancement.
    ImageQualityEnhance ImageQualityEnhanceInfo No Comprehensive enhancement configuration. Note that only one of the three items, LLM enhancement, comprehensive enhancement, and artifacts removal, can be configured.
    ColorEnhance ColorEnhanceInfo No Color enhancement configuration.
    LowLightEnhance LowLightEnhanceInfo No Low-light enhancement configuration.
    ScratchRepair ScratchRepairInfo No Scratch configuration.
    ArtifactRepair ArtifactRepairInfo No Artifacts removal configuration. Note that only one of the three items, LLM enhancement, comprehensive enhancement, and artifacts removal, can be configured.
    DiffusionEnhance DiffusionEnhanceInfo No LLM enhancement configuration. Note that only one of the three items, LLM enhancement, comprehensive enhancement, and artifacts removal, can be configured. It cannot be enabled simultaneously with super resolution or noise reduction.
    FrameRateWithDen FrameRateWithDenInfo No Frame interpolation frame rate configuration. Fractions are supported. Note that you can only specify either this parameter or FrameRate. The capacity will not take effect when the source frame rate is equal to or greater than the target frame rate.

    VideoFrameInterpolationInfo

    Intelligent frame interpolation control parameters

    Used by actions: CreateEnhanceMediaTemplate, CreateRebuildMediaTemplate, DescribeTaskDetail, ModifyEnhanceMediaTemplate, ModifyRebuildMediaTemplate, PullEvents, RebuildMedia.

    Name Type Required Description
    Switch String Yes Intelligent frame interpolation control switch. Valid values:
  • ON: enable intelligent frame interpolation
  • OFF: Disable intelligent frame interpolation.
  • Fps Integer No Intelligent frame interpolation frame rate. Value range: (0, 100]. Valid only when the intelligent frame interpolation control switch is ON. Default: match the source file frame rate.

    VideoTemplateInfo

    Video stream configuration parameters

    Used by actions: CreateAdaptiveDynamicStreamingTemplate, CreateTranscodeTemplate, DescribeTranscodeTemplates, ModifyAdaptiveDynamicStreamingTemplate.

    Name Type Required Description
    Codec String Yes

    Video stream encoding format. Available values:

  • libx264: H.264 encoding;
  • libx265: H.265 encoding;
  • av1: AOMedia Video 1 encoding;
  • H.266: H.266 encoding.
  • Note:
  • av1 and H.266 encoding containers currently only support mp4;
  • H.266 currently only supports the fixed CRF bitrate control method.
  • Fps Integer Yes

    Video frame rate. Value range: [0, 100]. Unit: Hz.
    When the value is 0, it means the frame rate is consistent with the original video.

    Bitrate Integer Yes

    Bitrate of video stream. Value range: 0 and [128, 100000]. Unit: kbps.
    When the value is 0, it means VOD automatically sets the bitrate.

    ResolutionAdaptive String No

    Resolution adaptation. Available values:

  • open: enable. At this point, Width represents the long side of the video, and Height represents the short side;
  • close: disable. At this point, Width represents the video width, and Height represents the video height.
  • Default value: open.
    Width Integer No

    The maximum value of the video stream width (or long side). Valid values: 0 and [128, 8192]. Unit: px.

  • When Width and Height are both 0, the resolution is from the same source;
  • When Width is 0 and Height is non-0, Width is scaled proportionally;
  • When Width is non-0 and Height is 0, the Height is scaled proportionally;
  • When both Width and Height are non-0, the resolution is specified by the user.
  • Default value: 0.
    Height Integer No

    The maximum value of the video stream height (or short side). Valid values: 0 and [128, 8192]. Unit: px.

  • When Width and Height are both 0, the resolution is from the same source;
  • When Width is 0 and Height is non-0, Width is scaled proportionally;
  • When Width is non-0 and Height is 0, the Height is scaled proportionally;
  • When both Width and Height are non-0, the resolution is specified by the user.
  • Default value: 0.
    FillType String No

    Filling method. When the video stream configuration width and height parameters are inconsistent with the aspect ratio of the original video, the processing method for transcoding is "fill". Optional filling modes:

  • stretch: Stretch each frame to fill the entire screen, possibly causing the transcoded video to be "squashed" or "stretched".
  • black: Keep the video aspect ratio unchanged, with edges filled with black.
  • white: Keep the video aspect ratio unchanged, with edge remainder filled with white.
  • gauss: Gaussian blur. Keep the video aspect ratio unchanged, with Gaussian blur filling for the rest of the edges.
  • Default value: black.
    Vcrf Integer No

    Control factor for constant video bitrate. Value range: [1, 51].

    Note:

  • If you specify this parameter, the bitrate control mode for CRF will be used to transcode (video bitrate will no longer take effect);
  • When the encoding format of the specified video stream is H.266, this field is required. Recommended value: 28;
  • If there are no special requirements, it is not recommended to specify this parameter.
  • Gop Integer No

    Interval between I-frames, in frames. Value range: 0 and [1, 100000].
    When it is set to 0 or not set, the system will automatically set the gop length.

    GopUnit String No

    Gop value unit.

    Enumeration values:

    • frame: Indicates the number of frames.
    • second: Indicates the number of seconds.

    Default value: frame

    PreserveHDRSwitch String No

    Whether the transcoding output remains HDR when the raw video is HDR (High Dynamic Range). Value range:

  • ON: If the original file is HDR, the transcoding output remains HDR; otherwise, the transcoding output is SDR (Standard Dynamic Range).
  • OFF: Regardless of whether the original file is HDR or SDR, the transcoding output is SDR.
  • Default value: OFF.
    CodecTag String No

    Encoding tag. It is valid only when the video stream encoding format is H.265. Available values:

  • hvc1: hvc1 tag
  • hev1: hev1 tag
  • Default value: hvc1.
    Mode String No

    Bitrate control mode.

    Enumeration values:

    • VBR: Variable Bit Rate. It dynamically adjusts the output bitrate based on the complexity of the video image to ensure higher image quality. It is suitable for storage scenarios and applications with high image quality requirements.
    • ABR: Average Bit Rate. It tries to stabilize the average bitrate of the output video as much as possible while allowing short-term bitrate fluctuation. It is suitable for scenarios where you need to minimize the overall bitrate while maintaining a certain image quality.
    • CBR: Constant Bit Rate. It maintains a constant output bitrate during video encoding regardless of changes in image complexity. It is suitable for scenarios with strict network bandwidth requirements, such as live streaming.
    • VCRF: Constant quality factor. It controls video quality by setting a quality factor to achieve constant quality encoding of videos. The bitrate is automatically adjusted based on content complexity. It is suitable for scenarios where maintaining a certain image quality is desired.

    Default value: VBR

    Bframes Integer No

    Number of B-frames between reference frames. The default is auto.

    Value range: [0, 16]

    HlsTime Integer No

    Average shard duration. 0 or empty means auto, and an appropriate shard duration will be automatically selected based on features such as the video GOP.

    Value range: [0, 10]

    Unit: second

    Supports only transcoding templates. Adaptive bitrate templates are not currently supported.

    VideoProfile String No

    A predefined group of encoding tools or features allowed in the video encoding standard, suitable for different scenarios.

    Enumeration values:

    • baseline: Supports only I/P frames and non-interlaced scenarios, suitable for video calls, mobile video, and other scenarios.
    • main: The mainstream profile, provides I-frames, P-frames, and B-frames, and supports both interlaced and non-interlaced modes. It is mainly used in mainstream audio and video consumption products such as video players and streaming media transmission devices.
    • high: The highest encoding level, adds 8X8 prediction on top of the Main Profile and supports custom quantification. It is widely used in Blu-ray storage, HDTV, and other scenarios.
    • default: Automatic filling along with the original video.

    Default value: default

    This configuration item is valid only when Codec is libx264.

    VideoTemplateInfoForUpdate

    Video stream configuration parameters

    Used by actions: CreateProcedureTemplate, ModifyTranscodeTemplate, ProcessMedia, ResetProcedureTemplate.

    Name Type Required Description
    Codec String No

    Video stream encoding format. Available values:

  • libx264: H.264 encoding;
  • libx265: H.265 encoding;
  • av1: AOMedia Video 1 encoding;
  • H.266: H.266 encoding.
  • Note:
  • av1 and H.266 encoding containers currently only support mp4;
  • H.266 currently only supports the fixed CRF bitrate control method.
  • Fps Integer No

    Video frame rate. Value range: [0, 100]. Unit: Hz.
    When the value is 0, it means the frame rate is consistent with the original video.

    Bitrate Integer No

    Bitrate of video stream. Value range: 0 and [128, 100000]. Unit: kbps.
    When the value is 0, it means VOD automatically sets the bitrate.

    ResolutionAdaptive String No

    Resolution adaptation. Available values:

  • open: enable. At this point, Width represents the long side of the video, and Height represents the short side.
  • close: disable. At this point, Width represents the width of the video, and Height represents the height.
  • Width Integer No

    The maximum value of the video stream width (or long side). Valid values: 0 and [128, 8192]. Unit: px.

  • When Width and Height are both 0, the resolution is from the same source;
  • When Width is 0 and Height is non-0, Width is scaled proportionally;
  • When Width is non-0 and Height is 0, Height is scaled proportionally;
  • When both Width and Height are non-0, the resolution is specified by the user.
  • Height Integer No

    Maximum height (or short side) of the video stream. Value range: 0 and [128, 8192]. Unit: px.

    FillType String No

    Filling method. When the video stream configuration width and height parameters are inconsistent with the aspect ratio of the original video, the processing method for transcoding is "fill". Optional filling modes:

  • stretch: stretch each frame to fill the entire screen, which may cause the transcoded video to be "squashed" or "stretched";
  • black: keep the video aspect ratio unchanged, with the rest of the edges filled with black.
  • white: keep the video aspect ratio unchanged, with the rest of the edges filled with white.
  • gauss: Gaussian blur. Keep the video aspect ratio unchanged, with the rest of the edges filled using Gaussian blur.
  • Vcrf Integer No

    Control factor for constant video bitrate. Value range: [1, 51]. 0 indicates that it is disabled.

    Note:

  • If this parameter is specified, the bitrate control mode for CRF will be used to transcode (video bitrate will no longer take effect);
  • When the encoding format of the specified video stream is H.266, this field is required. Recommended value: 28;
  • If there are no special requirements, it is not recommended to specify this parameter.
  • Gop Integer No

    Interval between I-frames, in frames. Value range: 0 and [1, 100000].
    When it is set to 0 or not set, the system will automatically set the gop length.

    PreserveHDRSwitch String No

    When the original video is HDR (High Dynamic Range), whether the transcoding output remains HDR. Value range:

  • ON: If the original file is HDR, the transcoding output remains HDR; otherwise, the transcoding output is SDR (Standard Dynamic Range).
  • OFF: Regardless of whether the original file is HDR or SDR, the transcoding output is SDR.
  • CodecTag String No

    Encoding tag. Valid only when the video stream encoding format is H.265. Available values:

  • hvc1 refers to the hvc1 tag;
  • hev1 refers to the hev1 tag.
  • Default value: hvc1.
    GopUnit String No

    Gop value unit.

    Enumeration values:

    • frame: number of frames.
    • second: seconds.

    Default value: frame

    Mode String No

    Bitrate control mode.

    Enumeration values:

    • VBR: Variable Bit Rate. It dynamically adjusts the output bitrate based on the complexity of the video image to ensure higher image quality. It is suitable for storage scenarios and applications with high image quality requirements.
    • ABR: Average Bit Rate. It tries to stabilize the average bitrate of the output video as much as possible while allowing short-term bitrate fluctuation. It is suitable for scenarios where minimizing overall bitrate is needed while maintaining a certain image quality.
    • CBR: Constant Bit Rate. It maintains a constant output bitrate during video encoding regardless of changes in image complexity. It is suitable for scenarios with strict network bandwidth requirements, such as live streaming.
    • VCRF: Constant Rate Factor. It controls video quality by setting a quality factor to achieve constant quality encoding of videos. The bitrate adjusts automatically based on content complexity. It is suitable for scenarios where maintaining a certain image quality is desired.

    Default value: VBR

    Bframes Integer No

    Maximum number of consecutive B-frames. The default is auto, and -1 means change to automatic.

    Value range: [-1, 16]

    HlsTime Integer No

    Average shard duration. 0 or left empty means auto, which will automatically choose an appropriate shard duration based on video features such as GOP.

    Value range: [0, 10]

    Unit: seconds

    Supports only transcoding templates, not adaptive bitrate stream templates.

    VideoProfile String No

    A predefined combination of encoding tools or features allowed in a video encoding standard, suitable for different scenarios.

    Enumeration values:

    • baseline: Supports only I/p frames and non-interlaced scenarios, suitable for video calls, mobile video, and other scenarios.
    • main: Mainstream Profile, provides I-frames, p-frames, and B-frames, and supports both interlaced and non-interlaced modes. Mainly used in mainstream audio and video consumption products such as video players and streaming media transmission devices.
    • high: Highest encoding level, adds 8X8 prediction on top of the main Profile, and supports custom quantification. Widely used in Blu-ray storage, HDTV, and other scenarios.
    • default: Automatic filling along with the original video.

    default value: default

    This configuration item is valid only when Codec is libx264.

    VideoTrackItem

    Video clip information of the video track.

    Used by actions: ComposeMedia.

    Name Type Required Description
    SourceMedia String Yes Media material source of the video clip, which can be:
  • Media file ID of on-demand video;
  • Download URL of other media files.

  • Note: When using the download URL of another media file as the material source, and access control (such as anti-hotlinking) is enabled, the URL needs to carry access control parameters (such as a hotlink protection signature).
    SourceMediaStartTime Float No Start time of the video clip in the material file, in seconds. Default value: 0.
    Duration Float No Video segment duration in seconds. The default value is the length of the video material itself, which means the entire material is captured. If the source file is an image, Duration must be greater than 0.
    TargetDuration Float No Target duration of the video clip, in seconds.
  • If TargetDuration is not specified or set to 0, it means the target duration is the same as Duration;
  • When TargetDuration is set to a value more than 0, the video clip will be fast-forwarded or slowed down so that the duration of the output segment equals TargetDuration.
  • CoordinateOrigin String No Video origin position. Valid values:
  • Center: The coordinate origin is the central position, such as the center of the canvas.

  • Default value: Center.
    XPos String No Horizontal position of the origin point of a video clip relative to the origin of the canvas. Supports two formats: % and px.
  • When the string ends with %, it means the video clip XPos is at a position of the specified percentage of the canvas width. For example, 10% means XPos is at 10% of the canvas width.
  • If a string ends with px, it means the unit of the video clip XPos is pixel. For example, 100px means XPos is 100 pixels.

  • Default value: 0px.
    YPos String No Vertical position of the origin point of a video clip relative to the origin of the canvas. Supports % and px.
  • If a string ends with %, it indicates that the YPos of a video clip is at a specified percentage of the canvas height. For example, 10% means that YPos is at 10% of the canvas height.
  • If a string ends with px, it means the unit of the video clip YPos is pixel. For example, 100px means YPos is 100 pixels.

  • Default value: 0px.
    Width String No Width of a video clip, supporting two formats: % and px.
  • If a string ends with %, it indicates that the Width of a video clip is a percentage of the canvas width. For example, 10% means that Width is 10% of the canvas width.
  • If a string ends with px, it means the video clip Width unit is pixel. For example, 100px means the Width is 100 pixels.
  • If both Width and Height are empty, the width and height of the video footage itself will be used.
  • If Width is empty but Height is not empty, the width will be proportionally scaled.
  • If Width is not empty but Height is empty, the height will be proportionally scaled.
  • Height String No Height of a video clip, supporting two formats: % and px.
  • If a string ends with %, it indicates that the Height of a video clip is a percentage of the canvas height. For example, 10% means that Height is 10% of the canvas height.

  • If a string ends with px, it means the video clip Height unit is pixel. For example, 100px means the Height is 100 pixels.
  • If both Width and Height are empty, the width and height of the video footage itself will be used.
  • If Width is empty but Height is not empty, the width will be proportionally scaled.
  • If Width is not empty but Height is empty, the height will be proportionally scaled.
  • AudioOperations Array of AudioTransform No Perform operations on audio, such as muting.
    ImageOperations Array of ImageTransform No Operation performed on the image, such as image rotation.

    VoiceConfigureInfo

    Control parameters for audio (mute, bass, pop) detection.

    Used by actions: CreateQualityInspectTemplate, DescribeQualityInspectTemplates.

    Name Type Required Description
    Switch String Yes Audio (mute, bass, pop) detection switch. Available values:
  • ON: enabled
  • OFF: disabled
  • VoiceConfigureInfoForUpdate

    Control parameters for audio (mute, bass, pop) detection.

    Used by actions: ModifyQualityInspectTemplate.

    Name Type Required Description
    Switch String No Audio (mute, bass, pop) detection switch. Available values:
  • ON: enabled;
  • OFF: disabled
  • VoiceInfo

    Voice information.

    Used by actions: DescribeVoices, UpdateVoice.

    Name Type Required Description
    VoiceId String No

    Voice ID.

    Name String No

    Voice name.

    Description String No

    Voice description.

    Category String No

    Voice type.

    Enumeration values:

    • system: system audio.
    • clone: cloned audio.
    • design: designed audio.
    Gender String No

    Gender.

    Enumeration values:

    • male: Male,
    • female: Female.
    Age String No

    Age.

    Enumeration values:

    • child: child
    • teenager: teenager
    • youth: youth
    • middle_aged: middle-aged
    • senior: senior
    • unknown: unknown
    Languages Array of String No

    List of supported languages.

    For example: en.

    AudioUrl String No

    Audition audio URL.

    Labels Array of String No

    List of tags.

    For example: gentle.

    Scenes Array of String No

    Recommended scenarios.

    For example: education.

    VoiceSettings

    Voice attribute.

    Used by actions: DescribeTaskDetail, DesignVoiceAsync.

    Name Type Required Description
    Name String No

    Voice name.

    Description String No

    Voice description.

    Gender String No

    Gender.

    Enumeration values:

    • male: male
    • female: female
    • unknown: unknown
    Age String No

    Age.

    Enumeration values:

    • child: child
    • teenager: teenager
    • youth: youth
    • middle_aged: middle-aged
    • senior: senior
    • unknown: unknown
    Languages Array of String No

    Language. Supported languages:
    zh Chinese
    en English
    ja Japanese
    de German
    fr French
    ko Korean
    ru Russian
    uk Ukrainian
    pt Portuguese
    it Italian
    es Spanish
    id Indonesian
    nl Dutch
    tr Turkish
    fil Filipino
    ms Malay
    el Greek
    fi Finnish
    hr Croatian
    sk Slovak
    pl Polish
    sv Swedish
    hi Hindi
    bg Bulgarian
    ro Romanian
    ar Arabic
    cs Czech
    da Danish
    ta Tamil
    hun Hungarian
    vi Vietnamese
    no Norwegian
    yue Cantonese
    th Thai
    he Hebrew
    ca Catalan
    nn Nynorsk
    af Afrikaans
    fa Persian
    sl Slovenian

    Labels Array of String No

    Tag.

    Scenes Array of String No

    Scenario.

    VoiceUpdateFields

    Fields of the updated voice.

    Used by actions: UpdateVoice.

    Name Type Required Description
    Name String No

    Voice name.

    Description String No

    Voice description.

    Gender String No

    Gender.

    Enumeration values:

    • male: male
    • female: female
    • unknown: unknown
    Age String No

    Age.

    Enumeration values:

    • child: child
    • teenager: teenager
    • youth: youth
    • middle_aged: middle-aged
    • senior: senior
    • unknown: unknown
    Languages Array of String No

    Language.

    Labels Array of String No

    Tag.

    Scenes Array of String No

    Scenario.

    AudioUrl String No

    Audition audio.

    WatermarkConfigureData

    Watermark template configuration for JIT transcoding.

    Used by actions: DescribeJustInTimeTranscodeTemplates.

    Name Type Description
    Switch String Whether to enable watermark. Valid values:
  • ON: Enable watermark;
  • OFF: Turn off watermark.
  • Url String Watermark Url.
    Width String Width of a watermark.
  • If a string ends with %, it indicates that the Width of a watermark is a percentage of a video's width. For example, 10% means that Width is 10% of a video's width.
  • Height String Height of the watermark.
  • If a string ends with %, it indicates that the Height of a watermark is a percentage of a video's height. For example, 10% means that Height is 10% of a video's height.
  • XPos String Horizontal position of the watermark origin relative to the origin of coordinates of the video image. A string ending with % means the watermark XPos is a specified percentage of the video width. For example, 10% means XPos is 10% of the video width.
    YPos String Vertical position of the watermark origin relative to the origin of coordinates of the video image. When the string ends with %, the watermark YPos is the specified percentage of the video height. For example, 10% means YPos is 10% of the video height.

    WatermarkConfigureInfo

    Watermark template configuration for JIT transcoding.

    Used by actions: CreateJustInTimeTranscodeTemplate.

    Name Type Required Description
    Switch String Yes Whether to enable watermark. Valid values:
  • ON: Enable watermark;
  • OFF: Turn off watermark.
  • ImageContent String No Base64-encoded string of the watermark image. Supports jpeg and png formats.
    Width String No Width of a watermark.
  • If a string ends with %, it indicates that the Width of a watermark is a percentage of a video's width. For example, 10% means that Width is 10% of a video's width.
  • Height String No Height of the watermark.
  • If a string ends with %, it indicates that the Height of a watermark is a percentage of a video's height. For example, 10% means that Height is 10% of a video's height.
  • XPos String No Horizontal position of the watermark origin relative to the origin of coordinates of the video image. A string ending with % means the watermark XPos is a specified percentage of the video width. For example, 10% means XPos is 10% of the video width.
    YPos String No Vertical position of the watermark origin relative to the origin of coordinates of the video image. When the string ends with %, it means the watermark YPos is a specified percentage of the video height. For example, 10% means YPos is 10% of the video height.

    WatermarkConfigureInfoForUpdate

    Update the watermark template configuration for JIT transcoding.

    Used by actions: ModifyJustInTimeTranscodeTemplate.

    Name Type Required Description
    Switch String No Whether to enable watermark. Valid values:
  • ON: Enable watermark;
  • OFF: Turn off watermark.
  • ImageContent String No Base64-encoded string of the watermark image. Supports jpeg and png image formats.
    Width String No Width of a watermark.
  • If a string ends with %, it indicates that the Width of a watermark is a percentage of a video's width. For example, 10% means that Width is 10% of a video's width.
  • Height String No Height of the watermark.
  • If a string ends with %, it indicates that the Height of a watermark is a percentage of a video's height. For example, 10% means that Height is 10% of a video's height.
  • XPos String No Horizontal position of the watermark origin relative to the origin of coordinates of the video image. A string ending with % means the watermark XPos is a specified percentage of the video width. For example, 10% means XPos is 10% of the video width.
    YPos String No Vertical position of the watermark origin relative to the origin of coordinates of the video image. When the string ends with %, the watermark YPos is the specified percentage of the video height. For example, 10% means YPos is 10% of the video height.

    WatermarkInput

    Watermark parameter type in a video processing task.

    Used by actions: CreateProcedureTemplate, ProcessMedia, ResetProcedureTemplate.

    Name Type Required Description
    Definition Integer Yes Watermark template ID.
    TextContent String No Text content, up to 100 characters. This field is required only when the watermark type is text.
    Text watermarks do not support watermarking screenshots.
    SvgContent String No SVG content. Length not exceeding 2,000,000 characters. Fill in only when the watermark type is SVG watermark.
    SVG watermark does not support watermarking screenshots.
    StartTimeOffset Float No Start time offset of a watermark, in seconds. If not set or set to 0, a watermark starts appearing when a video starts.
  • If not set or set to 0, a watermark starts appearing when a video starts.
  • If the value is greater than 0 (for example, n), a watermark will appear at second n of a video.
  • When the value is less than 0 (assuming -n), the watermark appears n seconds before the end of the video.
  • EndTimeOffset Float No End time offset of a watermark, in seconds.
  • If not set or set to 0, a watermark will last until the end of a video.
  • If the value is greater than 0 (for example, n), a watermark will disappear at second n.
  • When the value is less than 0 (assuming -n), the watermark persists until n seconds before the end of the video.
  • WatermarkTemplate

    Watermark template details.

    Used by actions: DescribeWatermarkTemplates.

    Name Type Description
    Definition Integer Watermark template unique identifier.
    Type String Watermark type. Valid values:
  • image: image watermark;
  • text: text watermark.
  • Name String Watermark template name.
    Comment String Template description information.
    XPos String Horizontal position of the watermark image origin point relative to the video origin point.
  • If a string ends with %, it indicates that the Left of a watermark is a position at a specified percentage of a video's width. For example, 10% means that Left is 10% of a video's width.
  • If a string ends with px, it means the watermark Left is at the position of the specified pixel of the video width. For example, 100px means Left is 100 pixels.
  • YPos String Vertical position of the watermark image origin point relative to the video image origin point.
  • If a string ends with %, it indicates that the Top of a watermark is a position at a specified percentage of a video's height. For example, 10% means that Top is 10% of a video's height.
  • If a string ends with px, it means the watermark Top is at the position specified in pixels from the video height. For example, 100px means the Top is 100 pixels.
  • ImageTemplate ImageWatermarkTemplate Image watermark template. This field is valid only when Type is image.
    TextTemplate TextWatermarkTemplateInput Text watermarking template. This field is valid only when Type is text.
    SvgTemplate SvgWatermarkInput SVG watermark template. This field is valid when Type is svg.
    CreateTime String Template creation time, in ISO date format.
    UpdateTime String Template last modified time, use ISO date format.
    CoordinateOrigin String Origin position. Valid values:
  • topLeft: indicates that the coordinate origin is at the top left corner of the video image and the watermark origin is at the top left corner of the image or text.
  • topRight: indicates that the coordinate origin is at the top right corner of the video image and the watermark origin is at the top right corner of the image or text.
  • bottomLeft: indicates that the coordinate origin is at the bottom-left corner of the video image and the watermark origin is at the bottom-left corner of the image or text.
  • bottomRight: indicates that the coordinate origin is at the bottom right corner of the video image and the watermark origin is at the lower-right of the image or text.;
  • WebPageRecordInfo

    Panoramic recording information.

    Used by actions: DescribeMediaInfos, DescribeTaskDetail, PullEvents, SearchMedia.

    Name Type Required Description
    RecordUrl String No Panoramic recording URL.
    RecordTaskId String No Panoramic recording task ID.

    WechatMiniProgramPublishTask

    WeChat Mini Program publishing task information

    Used by actions: DescribeTaskDetail, PullEvents.

    Name Type Description
    TaskId String Task ID.
    Status String Task status. Valid values:
    WAITING
    PROCESSING: Processing;
    FINISH: completed.
    ErrCode Integer Error code.
  • 0: success;
  • Other value: failure.
  • Message String Error message.
    FileId String Publish the video file ID.
    SourceDefinition Integer Transcoding template ID of the published video. 0 represents the original video.
    PublishResult String WeChat Mini Program Video Publishing status. Parameter Value:
  • Pass: published successfully;
  • Failed: Release failure;
  • Rejected: The audio and video moderation failed to pass.
  • WechatMiniProgramPublishTaskInput

    WeChat Mini Program publishing task type

    Used by actions: DescribeProcedureTemplates.

    Name Type Required Description
    SourceDefinition Integer Yes Transcoding template ID of the published video. 0 represents the original video.

    WechatPublishTask

    WeChat publishing task information

    Used by actions: DescribeTaskDetail, PullEvents.

    Name Type Description
    TaskId String Task ID.
    Status String Task status. Valid values:
    WAITING: waiting.
    PROCESSING: Processing;
    FINISH: completed.
    ErrCode Integer Error code.
  • 0: success;
  • Other value: failure.
  • Message String Error message.
    FileId String Video file ID to publish.
    Definition Integer Template ID for publishing on WeChat.
    SourceDefinition Integer Transcoding template ID of the published video. 0 represents the original video.
    WechatStatus String WeChat publishing status. Valid values:
  • FAIL: Failed;
  • SUCCESS: Succeeded;
  • AUDITNOTPASS: failed to pass moderation;
  • NOTTRIGGERED: Publishing on WeChat has not been initiated.
  • WechatVid String WeChat Vid.
    WechatUrl String WeChat address.

    Bantuan dan Dukungan

    Apakah halaman ini membantu?

    masukan