'1.0', 'info' => [ 'style' => 'RPC', 'product' => 'videoenhan', 'version' => '2020-03-20', ], 'components' => [ 'schemas' => [], ], 'apis' => [ 'AdjustVideoColor' => [ 'methods' => [ 'post', ], 'schemes' => [ 'http', 'https', ], 'security' => [ [ 'AK' => [], ], ], 'deprecated' => false, 'parameters' => [ [ 'name' => 'VideoUrl', 'in' => 'formData', 'schema' => [ 'type' => 'string', 'required' => true, ], ], [ 'name' => 'VideoBitrate', 'in' => 'formData', 'schema' => [ 'type' => 'integer', 'format' => 'int64', 'required' => false, ], ], [ 'name' => 'VideoCodec', 'in' => 'formData', 'schema' => [ 'type' => 'string', 'required' => false, ], ], [ 'name' => 'VideoFormat', 'in' => 'formData', 'schema' => [ 'type' => 'string', 'required' => false, ], ], [ 'name' => 'Mode', 'in' => 'formData', 'schema' => [ 'type' => 'string', 'required' => false, ], ], ], ], 'ChangeVideoSize' => [ 'methods' => [ 'post', ], 'schemes' => [ 'http', 'https', ], 'security' => [ [ 'AK' => [], ], ], 'deprecated' => false, 'parameters' => [ [ 'name' => 'VideoUrl', 'in' => 'formData', 'schema' => [ 'type' => 'string', 'required' => true, ], ], [ 'name' => 'Width', 'in' => 'formData', 'schema' => [ 'type' => 'integer', 'format' => 'int32', 'required' => true, 'minimum' => '32', 'maximum' => '2160', ], ], [ 'name' => 'Height', 'in' => 'formData', 'schema' => [ 'type' => 'integer', 'format' => 'int32', 'required' => true, 'minimum' => '32', 'maximum' => '2160', ], ], [ 'name' => 'CropType', 'in' => 'formData', 'schema' => [ 'type' => 'string', 'required' => false, ], ], [ 'name' => 'FillType', 'in' => 'formData', 'schema' => [ 'type' => 'string', 'required' => false, ], ], [ 'name' => 'Tightness', 'in' => 'formData', 'schema' => [ 'type' => 'number', 'format' => 'float', 'required' => false, 'minimum' => '0', 'maximum' => '1', ], ], [ 'name' => 'R', 'in' => 'formData', 'schema' => [ 'type' => 'integer', 'format' => 'int32', 'required' => false, 'minimum' => '0', 'maximum' => '255', ], ], [ 'name' => 'G', 'in' => 'formData', 'schema' => [ 'type' => 'integer', 'format' => 'int32', 'required' => false, 'minimum' => '0', 'maximum' => '255', ], ], [ 'name' => 'B', 'in' => 'formData', 'schema' => [ 'type' => 'integer', 'format' => 'int32', 'required' => false, 'minimum' => '0', 'maximum' => '255', ], ], ], ], 'EnhanceVideoQuality' => [ 'methods' => [ 'post', 'get', ], 'schemes' => [ 'http', 'https', ], 'security' => [ [ 'AK' => [], ], ], 'deprecated' => false, 'parameters' => [ [ 'name' => 'VideoURL', 'in' => 'formData', 'schema' => [ 'type' => 'string', 'required' => true, ], ], [ 'name' => 'OutPutWidth', 'in' => 'formData', 'schema' => [ 'type' => 'integer', 'format' => 'int32', 'required' => false, 'minimum' => '180', 'maximum' => '7680', ], ], [ 'name' => 'OutPutHeight', 'in' => 'formData', 'schema' => [ 'type' => 'integer', 'format' => 'int32', 'required' => false, 'minimum' => '180', 'maximum' => '4320', ], ], [ 'name' => 'FrameRate', 'in' => 'formData', 'schema' => [ 'type' => 'integer', 'format' => 'int32', 'required' => false, 'minimum' => '1', 'maximum' => '120', ], ], [ 'name' => 'HDRFormat', 'in' => 'formData', 'schema' => [ 'type' => 'string', 'required' => false, ], ], [ 'name' => 'MaxIlluminance', 'in' => 'formData', 'schema' => [ 'type' => 'integer', 'format' => 'int32', 'required' => false, 'minimum' => '500', 'maximum' => '1000', ], ], [ 'name' => 'Bitrate', 'in' => 'formData', 'schema' => [ 'type' => 'integer', 'format' => 'int32', 'required' => false, 'minimum' => '8', 'maximum' => '200', ], ], ], ], 'GenerateVideo' => [ 'methods' => [ 'post', ], 'schemes' => [ 'http', 'https', ], 'security' => [ [ 'AK' => [], ], ], 'deprecated' => false, 'parameters' => [ [ 'name' => 'Scene', 'in' => 'formData', 'schema' => [ 'type' => 'string', 'required' => false, ], ], [ 'name' => 'Width', 'in' => 'formData', 'schema' => [ 'type' => 'integer', 'format' => 'int32', 'required' => false, ], ], [ 'name' => 'Height', 'in' => 'formData', 'schema' => [ 'type' => 'integer', 'format' => 'int32', 'required' => false, ], ], [ 'name' => 'Style', 'in' => 'formData', 'schema' => [ 'type' => 'string', 'required' => false, ], ], [ 'name' => 'Duration', 'in' => 'formData', 'schema' => [ 'type' => 'number', 'format' => 'float', 'required' => false, ], ], [ 'name' => 'DurationAdaption', 'in' => 'formData', 'schema' => [ 'type' => 'boolean', 'required' => false, ], ], [ 'name' => 'TransitionStyle', 'in' => 'formData', 'schema' => [ 'type' => 'string', 'required' => false, ], ], [ 'name' => 'SmartEffect', 'in' => 'formData', 'schema' => [ 'type' => 'boolean', 'required' => false, ], ], [ 'name' => 'PuzzleEffect', 'in' => 'formData', 'schema' => [ 'type' => 'boolean', 'required' => false, ], ], [ 'name' => 'Mute', 'in' => 'formData', 'schema' => [ 'type' => 'boolean', 'required' => false, ], ], [ 'name' => 'FileList', 'in' => 'formData', 'style' => 'repeatList', 'schema' => [ 'type' => 'array', 'required' => true, 'items' => [ 'type' => 'object', 'required' => false, 'properties' => [ 'Type' => [ 'type' => 'string', 'required' => true, ], 'FileUrl' => [ 'type' => 'string', 'required' => true, ], 'FileName' => [ 'type' => 'string', 'required' => true, ], ], ], 'maxItems' => 300, ], ], ], ], 'InterpolateVideoFrame' => [ 'methods' => [ 'post', 'get', ], 'schemes' => [ 'http', 'https', ], 'security' => [ [ 'AK' => [], ], ], 'deprecated' => false, 'parameters' => [ [ 'name' => 'VideoURL', 'in' => 'formData', 'schema' => [ 'type' => 'string', 'required' => true, ], ], [ 'name' => 'FrameRate', 'in' => 'formData', 'schema' => [ 'type' => 'integer', 'format' => 'int32', 'required' => false, 'minimum' => '1', 'maximum' => '120', ], ], [ 'name' => 'Bitrate', 'in' => 'formData', 'schema' => [ 'type' => 'integer', 'format' => 'int32', 'required' => false, 'minimum' => '8', 'maximum' => '200', ], ], ], ], 'MergeVideoFace' => [ 'methods' => [ 'post', 'get', ], 'schemes' => [ 'http', 'https', ], 'security' => [ [ 'AK' => [], ], ], 'deprecated' => false, 'parameters' => [ [ 'name' => 'VideoURL', 'in' => 'formData', 'schema' => [ 'type' => 'string', 'required' => true, ], ], [ 'name' => 'ReferenceURL', 'in' => 'formData', 'schema' => [ 'type' => 'string', 'required' => true, ], ], [ 'name' => 'AddWatermark', 'in' => 'formData', 'schema' => [ 'type' => 'boolean', 'required' => false, ], ], [ 'name' => 'Enhance', 'in' => 'formData', 'schema' => [ 'type' => 'boolean', 'required' => false, ], ], [ 'name' => 'WatermarkType', 'in' => 'formData', 'schema' => [ 'type' => 'string', 'required' => false, ], ], ], ], 'SuperResolveVideo' => [ 'methods' => [ 'post', ], 'schemes' => [ 'http', 'https', ], 'security' => [ [ 'AK' => [], ], ], 'deprecated' => false, 'parameters' => [ [ 'name' => 'VideoUrl', 'in' => 'formData', 'schema' => [ 'type' => 'string', 'required' => true, ], ], [ 'name' => 'BitRate', 'in' => 'formData', 'schema' => [ 'type' => 'integer', 'format' => 'int32', 'required' => false, ], ], ], ], 'EraseVideoLogo' => [ 'methods' => [ 'post', ], 'schemes' => [ 'http', 'https', ], 'security' => [ [ 'AK' => [], ], ], 'deprecated' => false, 'parameters' => [ [ 'name' => 'VideoUrl', 'in' => 'formData', 'schema' => [ 'type' => 'string', 'required' => true, ], ], [ 'name' => 'Boxes', 'in' => 'formData', 'style' => 'repeatList', 'schema' => [ 'type' => 'array', 'required' => false, 'items' => [ 'type' => 'object', 'required' => false, 'properties' => [ 'W' => [ 'type' => 'number', 'format' => 'float', 'required' => false, ], 'H' => [ 'type' => 'number', 'format' => 'float', 'required' => false, ], 'Y' => [ 'type' => 'number', 'format' => 'float', 'required' => false, ], 'X' => [ 'type' => 'number', 'format' => 'float', 'required' => false, ], ], ], 'maxItems' => 100, ], ], ], ], 'EraseVideoSubtitles' => [ 'methods' => [ 'post', ], 'schemes' => [ 'http', 'https', ], 'security' => [ [ 'AK' => [], ], ], 'deprecated' => false, 'parameters' => [ [ 'name' => 'VideoUrl', 'in' => 'formData', 'schema' => [ 'type' => 'string', 'required' => true, ], ], [ 'name' => 'BX', 'in' => 'formData', 'schema' => [ 'type' => 'number', 'format' => 'float', 'required' => false, ], ], [ 'name' => 'BY', 'in' => 'formData', 'schema' => [ 'type' => 'number', 'format' => 'float', 'required' => false, ], ], [ 'name' => 'BW', 'in' => 'formData', 'schema' => [ 'type' => 'number', 'format' => 'float', 'required' => false, ], ], [ 'name' => 'BH', 'in' => 'formData', 'schema' => [ 'type' => 'number', 'format' => 'float', 'required' => false, ], ], ], ], 'GetAsyncJobResult' => [ 'methods' => [ 'get', 'post', ], 'schemes' => [ 'http', 'https', ], 'security' => [ [ 'AK' => [], ], ], 'deprecated' => false, 'parameters' => [ [ 'name' => 'JobId', 'in' => 'formData', 'schema' => [ 'type' => 'string', 'required' => true, ], ], ], ], 'AddFaceVideoTemplate' => [ 'methods' => [ 'post', ], 'schemes' => [ 'http', 'https', ], 'security' => [ [ 'AK' => [], ], ], 'deprecated' => false, 'parameters' => [ [ 'name' => 'VideoURL', 'in' => 'formData', 'schema' => [ 'type' => 'string', 'required' => true, ], ], [ 'name' => 'VideoScene', 'in' => 'formData', 'schema' => [ 'type' => 'string', 'required' => false, ], ], ], ], 'DeleteFaceVideoTemplate' => [ 'methods' => [ 'post', ], 'schemes' => [ 'http', 'https', ], 'security' => [ [ 'AK' => [], ], ], 'deprecated' => false, 'parameters' => [ [ 'name' => 'TemplateId', 'in' => 'formData', 'schema' => [ 'type' => 'string', 'required' => true, ], ], ], ], 'MergeVideoModelFace' => [ 'methods' => [ 'post', ], 'schemes' => [ 'http', 'https', ], 'security' => [ [ 'AK' => [], ], ], 'deprecated' => false, 'parameters' => [ [ 'name' => 'TemplateId', 'in' => 'formData', 'schema' => [ 'type' => 'string', 'required' => true, ], ], [ 'name' => 'FaceImageURL', 'in' => 'formData', 'schema' => [ 'type' => 'string', 'required' => false, ], ], [ 'name' => 'AddWatermark', 'in' => 'formData', 'schema' => [ 'type' => 'boolean', 'required' => false, ], ], [ 'name' => 'Enhance', 'in' => 'formData', 'schema' => [ 'type' => 'boolean', 'required' => false, ], ], [ 'name' => 'WatermarkType', 'in' => 'formData', 'schema' => [ 'type' => 'string', 'required' => false, ], ], [ 'name' => 'MergeInfos', 'in' => 'formData', 'style' => 'repeatList', 'schema' => [ 'type' => 'array', 'required' => false, 'items' => [ 'type' => 'object', 'required' => false, 'properties' => [ 'TemplateFaceID' => [ 'type' => 'string', 'required' => false, ], 'TemplateFaceURL' => [ 'type' => 'string', 'required' => false, ], 'ImageURL' => [ 'type' => 'string', 'required' => false, ], ], ], 'maxItems' => 100, ], ], ], ], 'QueryFaceVideoTemplate' => [ 'methods' => [ 'get', 'post', ], 'schemes' => [ 'http', 'https', ], 'security' => [ [ 'AK' => [], ], ], 'deprecated' => false, 'parameters' => [ [ 'name' => 'TemplateId', 'in' => 'query', 'schema' => [ 'type' => 'string', 'required' => false, ], ], [ 'name' => 'PageNo', 'in' => 'query', 'schema' => [ 'type' => 'integer', 'format' => 'int64', 'required' => false, 'minimum' => '1', 'maximum' => '5000', ], ], [ 'name' => 'PageSize', 'in' => 'query', 'schema' => [ 'type' => 'integer', 'format' => 'int64', 'required' => false, 'minimum' => '1', 'maximum' => '500', ], ], ], ], 'GenerateHumanAnimeStyleVideo' => [ 'methods' => [ 'post', ], 'schemes' => [ 'http', 'https', ], 'security' => [ [ 'AK' => [], ], ], 'deprecated' => false, 'parameters' => [ [ 'name' => 'VideoUrl', 'in' => 'formData', 'schema' => [ 'type' => 'string', 'required' => true, ], ], [ 'name' => 'CartoonStyle', 'in' => 'formData', 'schema' => [ 'type' => 'string', 'required' => true, ], ], ], ], 'EnhancePortraitVideo' => [ 'methods' => [ 'post', ], 'schemes' => [ 'http', 'https', ], 'security' => [ [ 'AK' => [], ], ], 'deprecated' => false, 'parameters' => [ [ 'name' => 'VideoUrl', 'in' => 'formData', 'schema' => [ 'type' => 'string', 'required' => true, ], ], ], ], ], 'endpoints' => [ [ 'regionId' => 'cn-shanghai', 'endpoint' => 'videoenhan.cn-shanghai.aliyuncs.com', ], ], ];