diff options
| author | Zhineng Li <[email protected]> | 2026-02-13 10:54:11 +0800 |
|---|---|---|
| committer | Zhineng Li <[email protected]> | 2026-02-13 10:54:11 +0800 |
| commit | 7347bac4ab7e136157fc94777e6cf87ef9e08599 (patch) | |
| tree | 0dec367dac6e152161a6f7cc0dba6ebbef1f34a2 /data/en_us/imageenhan/2019-09-30 | |
| download | acs-metadata-full-7347bac4ab7e136157fc94777e6cf87ef9e08599.tar.gz acs-metadata-full-7347bac4ab7e136157fc94777e6cf87ef9e08599.zip | |
first commitHEADv1.0.0+20260212main
Diffstat (limited to 'data/en_us/imageenhan/2019-09-30')
| -rw-r--r-- | data/en_us/imageenhan/2019-09-30/api-docs.php | 2392 |
1 files changed, 2392 insertions, 0 deletions
diff --git a/data/en_us/imageenhan/2019-09-30/api-docs.php b/data/en_us/imageenhan/2019-09-30/api-docs.php new file mode 100644 index 0000000..7187840 --- /dev/null +++ b/data/en_us/imageenhan/2019-09-30/api-docs.php @@ -0,0 +1,2392 @@ +<?php return [ + 'version' => '1.0', + 'info' => [ + 'style' => 'RPC', + 'product' => 'imageenhan', + 'version' => '2019-09-30', + ], + 'directories' => [ + [ + 'id' => 64304, + 'title' => null, + 'type' => 'directory', + 'children' => [ + 'ImageBlindCharacterWatermark', + 'ImageBlindPicWatermark', + ], + ], + [ + 'id' => 64307, + 'title' => null, + 'type' => 'directory', + 'children' => [ + 'ExtendImageStyle', + 'RecolorHDImage', + 'RecolorImage', + ], + ], + [ + 'id' => 64311, + 'title' => null, + 'type' => 'directory', + 'children' => [ + 'ErasePerson', + 'RemoveImageSubtitles', + 'RemoveImageWatermark', + ], + ], + [ + 'id' => 64315, + 'title' => null, + 'type' => 'directory', + 'children' => [ + 'AssessComposition', + 'AssessExposure', + 'AssessSharpness', + ], + ], + [ + 'id' => 64319, + 'title' => null, + 'type' => 'directory', + 'children' => [ + 'ChangeImageSize', + 'ColorizeImage', + 'EnhanceImageColor', + 'ImitatePhotoStyle', + 'IntelligentComposition', + 'MakeSuperResolutionImage', + ], + ], + [ + 'id' => 64327, + 'title' => null, + 'type' => 'directory', + 'children' => [ + 'GetAsyncJobResult', + ], + ], + [ + 'id' => 0, + 'title' => '其它', + 'type' => 'directory', + 'children' => [ + 'GenerateCartoonizedImage', + 'GenerateSuperResolutionImage', + ], + ], + ], + 'components' => [ + 'schemas' => [], + ], + 'apis' => [ + 'ImageBlindCharacterWatermark' => [ + 'methods' => [ + 'post', + ], + 'schemes' => [ + 'http', + 'https', + ], + 'security' => [ + [ + 'AK' => [], + ], + ], + 'operationType' => 'readAndWrite', + 'deprecated' => false, + 'systemTags' => [], + 'parameters' => [ + [ + 'name' => 'FunctionType', + 'in' => 'formData', + 'schema' => [ + 'description' => '', + 'type' => 'string', + 'required' => true, + 'example' => 'encode_text', + ], + ], + [ + 'name' => 'Text', + 'in' => 'formData', + 'schema' => [ + 'description' => '', + 'type' => 'string', + 'required' => false, + 'example' => '', + ], + ], + [ + 'name' => 'WatermarkImageURL', + 'in' => 'formData', + 'schema' => [ + 'description' => '', + 'type' => 'string', + 'required' => false, + 'example' => 'https://viapi-doc.oss-cn-shanghai.aliyuncs.com/imageenhan/xxxxx.jpg', + 'isFileTransferUrl' => true, + ], + ], + [ + 'name' => 'OutputFileType', + 'in' => 'formData', + 'schema' => [ + 'description' => '', + 'type' => 'string', + 'required' => false, + 'example' => 'jpg', + ], + ], + [ + 'name' => 'QualityFactor', + 'in' => 'formData', + 'schema' => [ + 'description' => '', + 'type' => 'integer', + 'format' => 'int32', + 'required' => false, + 'example' => '100', + ], + ], + [ + 'name' => 'OriginImageURL', + 'in' => 'formData', + 'schema' => [ + 'description' => '', + 'type' => 'string', + 'required' => false, + 'example' => 'https://viapi-test.oss-cn-shanghai.aliyuncs.com/test-team/xxxxx.jpg', + 'isFileTransferUrl' => true, + ], + ], + ], + 'responses' => [ + 200 => [ + 'schema' => [ + 'type' => 'object', + 'properties' => [ + 'RequestId' => [ + 'description' => '', + 'type' => 'string', + 'example' => '2457E1ED-9C76-4386-B9A2-7E41B7D6E849', + ], + 'Data' => [ + 'description' => '', + 'type' => 'object', + 'properties' => [ + 'WatermarkImageURL' => [ + 'description' => '', + 'type' => 'string', + 'example' => 'http://algo-app-taobao-mm-cn-shanghai-prod.oss-cn-shanghai.aliyuncs.com/pixelai-portrait-beauty%2F2020_03_04%2F61f544a1a5004c88a2bf29452db494e9.jpeg?OSSAccessKeyId=LTAI4Fmdm1gQonFLrghJ****&Expires=158340****&Signature=Heet1ivG0xFP3YlO6usvd0pmrH****', + ], + 'TextImageURL' => [ + 'description' => '', + 'type' => 'string', + 'example' => 'http://algo-app-taobao-mm-cn-shanghai-prod.oss-cn-shanghai.aliyuncs.com/pixelai-portrait-beauty%2F2020_03_04%2F61f544a1a5004c88a2bf29452db494e9.jpeg?OSSAccessKeyId=LTAI4Fmdm1gQonFLrghJ****&Expires=158340****&Signature=Heet1ivG0xFP3YlO6usvd0pmrH****', + ], + ], + ], + ], + ], + ], + ], + 'errorCodes' => [ + 400 => [ + [ + 'errorCode' => 'ParameterError', + 'errorMessage' => 'The parameter is invalid. Please check again.', + ], + ], + 403 => [ + [ + 'errorCode' => 'AuthFailed', + 'errorMessage' => 'An error occurred while performing authorization. Please check your RAM configuration.', + ], + ], + 408 => [ + [ + 'errorCode' => 'Timeout', + 'errorMessage' => 'The request has timed out.', + ], + ], + 503 => [ + [ + 'errorCode' => 'ServiceUnavailable', + 'errorMessage' => 'The service is unavailable.', + ], + ], + ], + 'responseDemo' => '[{"type":"json","example":"{\\n \\"RequestId\\": \\"2457E1ED-9C76-4386-B9A2-7E41B7D6E849\\",\\n \\"Data\\": {\\n \\"WatermarkImageURL\\": \\"http://algo-app-taobao-mm-cn-shanghai-prod.oss-cn-shanghai.aliyuncs.com/pixelai-portrait-beauty%2F2020_03_04%2F61f544a1a5004c88a2bf29452db494e9.jpeg?OSSAccessKeyId=LTAI****************&Expires=158340****&Signature=Heet1ivG0xFP3YlO6usvd0pmrH****\\",\\n \\"TextImageURL\\": \\"http://algo-app-taobao-mm-cn-shanghai-prod.oss-cn-shanghai.aliyuncs.com/pixelai-portrait-beauty%2F2020_03_04%2F61f544a1a5004c88a2bf29452db494e9.jpeg?OSSAccessKeyId=LTAI****************&Expires=158340****&Signature=Heet1ivG0xFP3YlO6usvd0pmrH****\\"\\n }\\n}","errorExample":""},{"type":"xml","example":"<ImageBlindCharacterWatermarkResponse>\\n <RequestId>2457E1ED-9C76-4386-B9A2-7E41B7D6E849</RequestId>\\n <Data>\\n <WatermarkImageURL>http://algo-app-taobao-mm-cn-shanghai-prod.oss-cn-shanghai.aliyuncs.com/pixelai-portrait-beauty%2F2020_03_04%2F61f544a1a5004c88a2bf29452db494e9.jpeg?OSSAccessKeyId=LTAI****************&Expires=158340****&Signature=Heet1ivG0xFP3YlO6usvd0pmrH****</WatermarkImageURL>\\n <TextImageURL>http://algo-app-taobao-mm-cn-shanghai-prod.oss-cn-shanghai.aliyuncs.com/pixelai-portrait-beauty%2F2020_03_04%2F61f544a1a5004c88a2bf29452db494e9.jpeg?OSSAccessKeyId=LTAI****************&Expires=158340****&Signature=Heet1ivG0xFP3YlO6usvd0pmrH****</TextImageURL>\\n </Data>\\n</ImageBlindCharacterWatermarkResponse>","errorExample":""}]', + 'requestParamsDescription' => ' ', + ], + 'ImageBlindPicWatermark' => [ + 'methods' => [ + 'post', + ], + 'schemes' => [ + 'http', + 'https', + ], + 'security' => [ + [ + 'AK' => [], + ], + ], + 'operationType' => 'readAndWrite', + 'deprecated' => false, + 'systemTags' => [], + 'parameters' => [ + [ + 'name' => 'FunctionType', + 'in' => 'formData', + 'schema' => [ + 'description' => '', + 'example' => 'encode_pic', + 'required' => true, + 'type' => 'string', + ], + ], + [ + 'name' => 'LogoURL', + 'in' => 'formData', + 'schema' => [ + 'description' => '', + 'example' => 'https://viapi-test.oss-cn-shanghai.aliyuncs.com/test-team/xxxxx.jpg', + 'isFileTransferUrl' => true, + 'required' => false, + 'type' => 'string', + ], + ], + [ + 'name' => 'WatermarkImageURL', + 'in' => 'formData', + 'schema' => [ + 'description' => '', + 'example' => 'https://viapi-doc.oss-cn-shanghai.aliyuncs.com/imageenhan/xxxxx.jpg', + 'isFileTransferUrl' => true, + 'required' => false, + 'type' => 'string', + ], + ], + [ + 'name' => 'OutputFileType', + 'in' => 'formData', + 'schema' => [ + 'description' => '', + 'example' => 'jpg', + 'required' => false, + 'type' => 'string', + ], + ], + [ + 'name' => 'QualityFactor', + 'in' => 'formData', + 'schema' => [ + 'description' => '', + 'example' => '100', + 'format' => 'int32', + 'required' => false, + 'type' => 'integer', + ], + ], + [ + 'name' => 'OriginImageURL', + 'in' => 'formData', + 'schema' => [ + 'description' => '', + 'example' => 'https://viapi-test.oss-cn-shanghai.aliyuncs.com/test-team/xxxxx.jpg', + 'isFileTransferUrl' => true, + 'required' => false, + 'type' => 'string', + ], + ], + ], + 'responses' => [ + 200 => [ + 'schema' => [ + 'description' => '1', + 'properties' => [ + 'RequestId' => [ + 'description' => '', + 'example' => 'DE7869E4-0ACE-4C02-8B98-540B49F49205', + 'type' => 'string', + ], + 'Data' => [ + 'description' => '', + 'properties' => [ + 'WatermarkImageURL' => [ + 'description' => '', + 'example' => 'http://algo-app-taobao-mm-cn-shanghai-prod.oss-cn-shanghai.aliyuncs.com/pixelai-portrait-beauty%2F2020_03_04%2F61f544a1a5004c88a2bf29452db494e9.jpeg?OSSAccessKeyId=LTAI4Fmdm1gQonFLrghJ****&Expires=158340****&Signature=Heet1ivG0xFP3YlO6usvd0pmrH****', + 'type' => 'string', + ], + 'LogoURL' => [ + 'description' => '', + 'example' => 'http://algo-app-taobao-mm-cn-shanghai-prod.oss-cn-shanghai.aliyuncs.com/pixelai-portrait-beauty%2F2020_03_04%2F61f544a1a5004c88a2bf29452db494e9.jpeg?OSSAccessKeyId=LTAI4Fmdm1gQonFLrghJ****&Expires=158340****&Signature=Heet1ivG0xFP3YlO6usvd0pmrH****', + 'type' => 'string', + ], + ], + 'type' => 'object', + ], + ], + 'type' => 'object', + ], + ], + ], + 'errorCodes' => [ + 400 => [ + [ + 'errorCode' => 'ParameterError', + 'errorMessage' => 'The parameter is invalid. Please check again.', + ], + ], + 403 => [ + [ + 'errorCode' => 'AuthFailed', + 'errorMessage' => 'An error occurred while performing authorization. Please check your RAM configuration.', + ], + ], + 408 => [ + [ + 'errorCode' => 'Timeout', + 'errorMessage' => 'The request has timed out.', + ], + ], + 503 => [ + [ + 'errorCode' => 'ServiceUnavailable', + 'errorMessage' => 'The service is unavailable.', + ], + ], + ], + 'responseDemo' => '[{"type":"json","example":"{\\n \\"RequestId\\": \\"DE7869E4-0ACE-4C02-8B98-540B49F49205\\",\\n \\"Data\\": {\\n \\"WatermarkImageURL\\": \\"http://algo-app-taobao-mm-cn-shanghai-prod.oss-cn-shanghai.aliyuncs.com/pixelai-portrait-beauty%2F2020_03_04%2F61f544a1a5004c88a2bf29452db494e9.jpeg?OSSAccessKeyId=LTAI4Fmdm1gQonFLrghJ****&Expires=158340****&Signature=Heet1ivG0xFP3YlO6usvd0pmrH****\\",\\n \\"LogoURL\\": \\"http://algo-app-taobao-mm-cn-shanghai-prod.oss-cn-shanghai.aliyuncs.com/pixelai-portrait-beauty%2F2020_03_04%2F61f544a1a5004c88a2bf29452db494e9.jpeg?OSSAccessKeyId=LTAI4Fmdm1gQonFLrghJ****&Expires=158340****&Signature=Heet1ivG0xFP3YlO6usvd0pmrH****\\"\\n }\\n}","errorExample":""},{"type":"xml","example":"<RequestId>DE7869E4-0ACE-4C02-8B98-540B49F49205</RequestId>\\n<Data>\\n <WatermarkImageURL>http://algo-app-taobao-mm-cn-shanghai-prod.oss-cn-shanghai.aliyuncs.com/pixelai-portrait-beauty%2F2020_03_04%2F61f544a1a5004c88a2bf29452db494e9.jpeg?OSSAccessKeyId=LTAI4Fmdm1gQonFLrghJ****&Expires=158340****&Signature=Heet1ivG0xFP3YlO6usvd0pmrH****</WatermarkImageURL>\\n <LogoURL>http://algo-app-taobao-mm-cn-shanghai-prod.oss-cn-shanghai.aliyuncs.com/pixelai-portrait-beauty%2F2020_03_04%2F61f544a1a5004c88a2bf29452db494e9.jpeg?OSSAccessKeyId=LTAI4Fmdm1gQonFLrghJ****&Expires=158340****&Signature=Heet1ivG0xFP3YlO6usvd0pmrH****</LogoURL>\\n</Data>","errorExample":""}]', + 'requestParamsDescription' => ' ', + 'responseParamsDescription' => ' ', + ], + 'ExtendImageStyle' => [ + 'methods' => [ + 'post', + ], + 'schemes' => [ + 'http', + 'https', + ], + 'security' => [ + [ + 'AK' => [], + ], + ], + 'operationType' => 'readAndWrite', + 'deprecated' => false, + 'systemTags' => [], + 'parameters' => [ + [ + 'name' => 'StyleUrl', + 'in' => 'formData', + 'schema' => [ + 'description' => '', + 'example' => 'http://viapi-test.oss-cn-shanghai.aliyuncs.com/viapi-3.0domepic/imageenhan/ExtendImageStyle/ExtendImageStyle6.jpg', + 'isFileTransferUrl' => true, + 'required' => true, + 'type' => 'string', + ], + ], + [ + 'name' => 'MajorUrl', + 'in' => 'formData', + 'schema' => [ + 'description' => '', + 'example' => 'http://viapi-test.oss-cn-shanghai.aliyuncs.com/viapi-3.0domepic/imageenhan/ExtendImageStyle/ExtendImageStyle1.jpg', + 'isFileTransferUrl' => true, + 'required' => true, + 'type' => 'string', + ], + ], + ], + 'responses' => [ + 200 => [ + 'schema' => [ + 'properties' => [ + 'RequestId' => [ + 'description' => '', + 'example' => 'F1ABC965-2612-4680-9DE3-B5C77434B9B7', + 'type' => 'string', + ], + 'Data' => [ + 'description' => '', + 'properties' => [ + 'Url' => [ + 'description' => '', + 'example' => 'http://luban-vgd-invi.oss-cn-hangzhou.aliyuncs.com/upload/result_/2019-9-26/invi__015694889247201016812_spCq4n.jpg?Expires=1569492524&OSSAccessKeyId=LTAI4Fc5SVvzUQ19K1Cz****&Signature=uOEP8gKvdgPtDcrXxRz1v37dsT****', + 'type' => 'string', + ], + 'MajorUrl' => [ + 'description' => '', + 'example' => '-', + 'type' => 'string', + ], + ], + 'type' => 'object', + ], + ], + 'type' => 'object', + ], + ], + ], + 'errorCodes' => [ + 400 => [ + [ + 'errorCode' => 'ParameterError', + 'errorMessage' => 'The parameter is invalid. Please check again.', + ], + ], + 403 => [ + [ + 'errorCode' => 'AuthFailed', + 'errorMessage' => 'An error occurred while performing authorization. Please check your RAM configuration.', + ], + ], + 408 => [ + [ + 'errorCode' => 'Timeout', + 'errorMessage' => 'The request has timed out.', + ], + ], + 503 => [ + [ + 'errorCode' => 'ServiceUnavailable', + 'errorMessage' => 'The service is unavailable.', + ], + ], + ], + 'responseDemo' => '[{"type":"json","example":"{\\n \\"RequestId\\": \\"F1ABC965-2612-4680-9DE3-B5C77434B9B7\\",\\n \\"Data\\": {\\n \\"Url\\": \\"http://luban-vgd-invi.oss-cn-hangzhou.aliyuncs.com/upload/result_/2019-9-26/invi__015694889247201016812_spCq4n.jpg?Expires=1569492524&OSSAccessKeyId=LTAI****************&Signature=uOEP8gKvdgPtDcrXxRz1v37dsT****\\",\\n \\"MajorUrl\\": \\"-\\"\\n }\\n}","errorExample":""},{"type":"xml","example":"<ExtendImageStyleResponse>\\n <RequestId>F1ABC965-2612-4680-9DE3-B5C77434B9B7</RequestId>\\n <Data>\\n <Url>http://luban-vgd-invi.oss-cn-hangzhou.aliyuncs.com/upload/result_/2019-9-26/invi__015694889247201016812_spCq4n.jpg?Expires=1569492524&OSSAccessKeyId=LTAI****************&Signature=uOEP8gKvdgPtDcrXxRz1v37dsT****</Url>\\n <MajorUrl>-</MajorUrl>\\n </Data>\\n</ExtendImageStyleResponse>","errorExample":""}]', + 'requestParamsDescription' => ' ', + 'responseParamsDescription' => ' ', + ], + 'RecolorHDImage' => [ + 'methods' => [ + 'post', + ], + 'schemes' => [ + 'http', + 'https', + ], + 'security' => [ + [ + 'AK' => [], + ], + ], + 'operationType' => 'readAndWrite', + 'deprecated' => false, + 'systemTags' => [], + 'parameters' => [ + [ + 'name' => 'Url', + 'in' => 'formData', + 'schema' => [ + 'description' => '', + 'example' => 'http://viapi-test.oss-cn-shanghai.aliyuncs.com/viapi-3.0domepic/imageenhan/RecolorHDImage/RecolorHDImage-auto1.jpg', + 'isFileTransferUrl' => true, + 'required' => true, + 'type' => 'string', + ], + ], + [ + 'name' => 'Mode', + 'in' => 'formData', + 'schema' => [ + 'description' => '', + 'example' => 'REF_PIC', + 'required' => false, + 'type' => 'string', + 'default' => 'AUTO', + 'enum' => [ + 'AUTO', + 'TEMPLATE', + 'REF_PIC', + ], + ], + ], + [ + 'name' => 'RefUrl', + 'in' => 'formData', + 'schema' => [ + 'description' => '', + 'example' => 'http://viapi-test.oss-cn-shanghai.aliyuncs.com/viapi-3.0domepic/imageenhan/RecolorHDImage/RecolorHDImage-REF_PIC6.jpg', + 'isFileTransferUrl' => true, + 'required' => false, + 'type' => 'string', + ], + ], + [ + 'name' => 'ColorCount', + 'in' => 'formData', + 'schema' => [ + 'description' => '', + 'example' => '2', + 'format' => 'int32', + 'maximum' => '8', + 'minimum' => '1', + 'required' => false, + 'type' => 'integer', + 'default' => '1', + ], + ], + [ + 'name' => 'Degree', + 'in' => 'formData', + 'schema' => [ + 'description' => '', + 'example' => '0.4', + 'required' => true, + 'type' => 'string', + ], + ], + [ + 'name' => 'ColorTemplate', + 'in' => 'formData', + 'style' => 'repeatList', + 'schema' => [ + 'description' => '1', + 'items' => [ + 'properties' => [ + 'Color' => [ + 'description' => '', + 'example' => '[3F6A6B,0A0A6F]', + 'required' => false, + 'type' => 'string', + ], + ], + 'required' => false, + 'type' => 'object', + ], + 'maxItems' => 7, + 'required' => false, + 'type' => 'array', + ], + ], + ], + 'responses' => [ + 200 => [ + 'schema' => [ + 'properties' => [ + 'RequestId' => [ + 'description' => '', + 'example' => '9364CEB1-1C39-489F-B6DB-6E65577429F1', + 'type' => 'string', + ], + 'Data' => [ + 'description' => '', + 'properties' => [ + 'ImageList' => [ + 'description' => '1', + 'items' => [ + 'description' => '', + 'example' => 'http://viapi-cn-shanghai-dha-filter.oss-cn-shanghai.aliyuncs.com/upload/recoloring-hd-2020-06-22-19-39-25-798c9cb57f-v6pj4/2020-6-23/invi_filter_015928996015951000042_EBPBLN.jpg?Expires=1592901401&OSSAccessKeyId=LTAI4FoLmvQ9urWXgSRp****&Signature=ICWehJZ1tjpz6qDFVONv5%2Fyvbo****', + 'type' => 'string', + ], + 'type' => 'array', + ], + ], + 'type' => 'object', + ], + 'Message' => [ + 'description' => '', + 'example' => '', + 'type' => 'string', + ], + ], + 'type' => 'object', + ], + ], + ], + 'errorCodes' => [ + 400 => [ + [ + 'errorCode' => 'ParameterError', + 'errorMessage' => 'The parameter is invalid. Please check again.', + ], + ], + 403 => [ + [ + 'errorCode' => 'AuthFailed', + 'errorMessage' => 'An error occurred while performing authorization. Please check your RAM configuration.', + ], + ], + 408 => [ + [ + 'errorCode' => 'Timeout', + 'errorMessage' => 'The request has timed out.', + ], + ], + 503 => [ + [ + 'errorCode' => 'ServiceUnavailable', + 'errorMessage' => 'The service is unavailable.', + ], + ], + ], + 'responseDemo' => '[{"type":"json","example":"{\\n \\"RequestId\\": \\"9364CEB1-1C39-489F-B6DB-6E65577429F1\\",\\n \\"Data\\": {\\n \\"ImageList\\": [\\n \\"http://viapi-cn-shanghai-dha-filter.oss-cn-shanghai.aliyuncs.com/upload/recoloring-hd-2020-06-22-19-39-25-798c9cb57f-v6pj4/2020-6-23/invi_filter_015928996015951000042_EBPBLN.jpg?Expires=1592901401&OSSAccessKeyId=LTAI****************&Signature=ICWehJZ1tjpz6qDFVONv5%2Fyvbo****\\"\\n ]\\n },\\n \\"Message\\": \\"该调用为异步调用,任务已提交成功,请以requestId的值作为jobId参数调用同类目下GetAsyncJobResult接口查询任务执行状态和结果。\\"\\n}","errorExample":""},{"type":"xml","example":"<RecolorHDImageResponse>\\n <RequestId>9364CEB1-1C39-489F-B6DB-6E65577429F1</RequestId>\\n <Message>该调用为异步调用,任务已提交成功,请以requestId的值作为jobId参数调用同类目下GetAsyncJobResult接口查询任务执行状态和结果。</Message>\\n</RecolorHDImageResponse>","errorExample":""}]', + 'requestParamsDescription' => ' ', + 'responseParamsDescription' => ' ', + ], + 'RecolorImage' => [ + 'methods' => [ + 'post', + ], + 'schemes' => [ + 'http', + 'https', + ], + 'security' => [ + [ + 'AK' => [], + ], + ], + 'operationType' => 'readAndWrite', + 'deprecated' => false, + 'systemTags' => [], + 'parameters' => [ + [ + 'name' => 'Url', + 'in' => 'formData', + 'schema' => [ + 'description' => '', + 'example' => 'http://viapi-test.oss-cn-shanghai.aliyuncs.com/viapi-3.0domepic/imageenhan/RecolorImage/RecolorImage-REF_PIC1.jpg', + 'isFileTransferUrl' => true, + 'required' => true, + 'type' => 'string', + ], + ], + [ + 'name' => 'Mode', + 'in' => 'formData', + 'schema' => [ + 'description' => '', + 'example' => 'TEMPLATE', + 'required' => false, + 'type' => 'string', + 'default' => 'AUTO', + 'enum' => [ + 'AUTO', + 'TEMPLATE', + 'REF_PIC', + ], + ], + ], + [ + 'name' => 'RefUrl', + 'in' => 'formData', + 'schema' => [ + 'description' => '', + 'example' => 'http://viapi-test.oss-cn-shanghai.aliyuncs.com/viapi-3.0domepic/imageenhan/RecolorImage/RecolorImage-REF_PIC7.jpg', + 'isFileTransferUrl' => true, + 'required' => false, + 'type' => 'string', + ], + ], + [ + 'name' => 'ColorCount', + 'in' => 'formData', + 'schema' => [ + 'description' => '', + 'example' => '3', + 'format' => 'int32', + 'maximum' => '8', + 'minimum' => '1', + 'required' => false, + 'type' => 'integer', + 'default' => '1', + ], + ], + [ + 'name' => 'ColorTemplate', + 'in' => 'formData', + 'style' => 'repeatList', + 'schema' => [ + 'description' => '1', + 'items' => [ + 'properties' => [ + 'Color' => [ + 'description' => '', + 'example' => '056A6B', + 'required' => false, + 'type' => 'string', + ], + ], + 'required' => false, + 'type' => 'object', + ], + 'maxItems' => 7, + 'required' => false, + 'type' => 'array', + ], + ], + ], + 'responses' => [ + 200 => [ + 'schema' => [ + 'properties' => [ + 'RequestId' => [ + 'description' => '', + 'example' => '3A9BFC5E-3F7C-4D9A-9445-908C6D14AB5B', + 'type' => 'string', + ], + 'Data' => [ + 'description' => '', + 'properties' => [ + 'ImageList' => [ + 'description' => '1', + 'items' => [ + 'description' => '', + 'example' => 'http://ivpd-cn-shanghai.oss-cn-shanghai.aliyuncs.com/viapi-demo/images/RecolorImage/recolor-1-src.png?Expires=1574600624&OSSAccessKeyId=LTAI4FeJ8qKkYn6SrHhQ****&Signature=y6MqVvFjrV9lnmhcCHZSulXOc2****', + 'type' => 'string', + ], + 'type' => 'array', + ], + ], + 'type' => 'object', + ], + ], + 'type' => 'object', + ], + ], + ], + 'errorCodes' => [ + 400 => [ + [ + 'errorCode' => 'ParameterError', + 'errorMessage' => 'The parameter is invalid. Please check again.', + ], + ], + 403 => [ + [ + 'errorCode' => 'AuthFailed', + 'errorMessage' => 'An error occurred while performing authorization. Please check your RAM configuration.', + ], + ], + 408 => [ + [ + 'errorCode' => 'Timeout', + 'errorMessage' => 'The request has timed out.', + ], + ], + 503 => [ + [ + 'errorCode' => 'ServiceUnavailable', + 'errorMessage' => 'The service is unavailable.', + ], + ], + ], + 'responseDemo' => '[{"type":"json","example":"{\\n \\"RequestId\\": \\"3A9BFC5E-3F7C-4D9A-9445-908C6D14AB5B\\",\\n \\"Data\\": {\\n \\"ImageList\\": [\\n \\"http://ivpd-cn-shanghai.oss-cn-shanghai.aliyuncs.com/viapi-demo/images/RecolorImage/recolor-1-src.png?Expires=1574600624&OSSAccessKeyId=LTAI****************&Signature=y6MqVvFjrV9lnmhcCHZSulXOc2****\\"\\n ]\\n }\\n}","errorExample":""},{"type":"xml","example":"自动拓色\\n<RecolorImageResponse>\\n <Data>\\n <ImageList>http://ivpd-cn-shanghai.oss-cn-shanghai.aliyuncs.com/viapi-demo/images/RecolorImage/recolor-1-src.png?Expires=1574600624&OSSAccessKeyId=LTAI****************&Signature=y6MqVvFjrV9lnmhcCHZSulXOc2****</ImageList>\\n </Data>\\n <RequestId>77D09611-9FBC-406E-8506-405C468F310B</RequestId>\\n</RecolorImageResponse>\\n参考图拓色\\n<RecolorImageResponse>\\n <Data>\\n <ImageList>http://ivpd-cn-shanghai.oss-cn-shanghai.aliyuncs.com/upload/result_/2019-11-21/invi__015743415515071000118_nBp2Ej.png?Expires=1574600751&OSSAccessKeyId=LTAI****************&Signature=rMwWX2dRlosApH3A3DSjxwVaFK****</ImageList>\\n </Data>\\n <RequestId>4299F194-6F92-4939-BCD8-02FDD9EF790C</RequestId>\\n</RecolorImageResponse>\\n色板拓色\\n<RecolorImageResponse>\\n <Data>\\n <ImageList>http://ivpd-cn-shanghai.oss-cn-shanghai.aliyuncs.com/upload/result_/2019-11-21/invi__015743416356921000120_bnAO7l.png?Expires=1574600835&OSSAccessKeyId=LTAI****************&Signature=XurCY8jIvhpT58INfe8eJ7psVS****</ImageList>\\n </Data>\\n <RequestId>3A9BFC5E-3F7C-4D9A-9445-908C6D14AB5B</RequestId>\\n</RecolorImageResponse>","errorExample":""}]', + ], + 'ErasePerson' => [ + 'methods' => [ + 'post', + 'get', + ], + 'schemes' => [ + 'http', + 'https', + ], + 'security' => [ + [ + 'AK' => [], + ], + ], + 'operationType' => 'readAndWrite', + 'deprecated' => false, + 'systemTags' => [], + 'parameters' => [ + [ + 'name' => 'ImageURL', + 'in' => 'formData', + 'schema' => [ + 'description' => '', + 'example' => 'http://viapi-test.oss-cn-shanghai.aliyuncs.com/viapi-3.0domepic/imageenhan/ErasePerson/ErasePerson1.jpg', + 'isFileTransferUrl' => true, + 'required' => true, + 'type' => 'string', + ], + ], + [ + 'name' => 'UserMask', + 'in' => 'formData', + 'schema' => [ + 'description' => '', + 'example' => 'http://viapi-test.oss-cn-shanghai.aliyuncs.com/viapi-3.0domepic/imageenhan/ErasePerson/ErasePerson6.jpg', + 'required' => true, + 'type' => 'string', + 'isFileTransferUrl' => true, + ], + ], + ], + 'responses' => [ + 200 => [ + 'schema' => [ + 'properties' => [ + 'RequestId' => [ + 'description' => '', + 'example' => '2FEDA495-9A5D-48B5-8922-98A4FE01D381', + 'type' => 'string', + ], + 'Data' => [ + 'description' => '', + 'properties' => [ + 'ImageUrl' => [ + 'description' => '', + 'example' => 'http://algo-app-isr-lab-cn-shanghai-prod.oss-cn-shanghai.aliyuncs.com/remove-person/2020-10-29_10%3A59%3A21.421276_img19.png?Expires=1603970961&OSSAccessKeyId=LTAI4FoLmvQ9urWXgSRp****&Signature=9lBakx0r6FOssTEYTcKs5pk8ta****', + 'type' => 'string', + ], + ], + 'type' => 'object', + ], + ], + 'type' => 'object', + ], + ], + ], + 'errorCodes' => [ + 400 => [ + [ + 'errorCode' => 'ParameterError', + 'errorMessage' => 'The parameter is invalid. Please check again.', + ], + ], + 403 => [ + [ + 'errorCode' => 'AuthFailed', + 'errorMessage' => 'An error occurred while performing authorization. Please check your RAM configuration.', + ], + [ + 'errorCode' => 'NeedOpen', + 'errorMessage' => 'Please activate the service first.', + ], + ], + 408 => [ + [ + 'errorCode' => 'Timeout', + 'errorMessage' => 'The request has timed out.', + ], + ], + 500 => [ + [ + 'errorCode' => 'InternalServerError', + 'errorMessage' => 'A server error occurred while processing your request.', + ], + ], + 503 => [ + [ + 'errorCode' => 'ServiceUnavailable', + 'errorMessage' => 'The service is unavailable.', + ], + ], + ], + 'responseDemo' => '[{"type":"json","example":"{\\n \\"RequestId\\": \\"2FEDA495-9A5D-48B5-8922-98A4FE01D381\\",\\n \\"Data\\": {\\n \\"ImageUrl\\": \\"http://algo-app-isr-lab-cn-shanghai-prod.oss-cn-shanghai.aliyuncs.com/remove-person/2020-10-29_10%3A59%3A21.421276_img19.png?Expires=1603970961&OSSAccessKeyId=LTAI****************&Signature=9lBakx0r6FOssTEYTcKs5pk8ta****\\"\\n }\\n}","errorExample":""},{"type":"xml","example":"<ErasePersonResponse>\\n <RequestId>2FEDA495-9A5D-48B5-8922-98A4FE01D381</RequestId>\\n <Data>\\n <ImageUrl>http://algo-app-isr-lab-cn-shanghai-prod.oss-cn-shanghai.aliyuncs.com/remove-person/2020-10-29_10%3A59%3A21.421276_img19.png?Expires=1603970961&OSSAccessKeyId=LTAI****************&Signature=9lBakx0r6FOssTEYTcKs5pk8ta****</ImageUrl>\\n </Data>\\n</ErasePersonResponse>","errorExample":""}]', + 'requestParamsDescription' => ' ', + 'responseParamsDescription' => ' ', + ], + 'RemoveImageSubtitles' => [ + 'methods' => [ + 'post', + ], + 'schemes' => [ + 'http', + 'https', + ], + 'security' => [ + [ + 'AK' => [], + ], + ], + 'operationType' => 'readAndWrite', + 'deprecated' => false, + 'systemTags' => [], + 'parameters' => [ + [ + 'name' => 'ImageURL', + 'in' => 'formData', + 'schema' => [ + 'description' => '', + 'example' => 'http://viapi-test.oss-cn-shanghai.aliyuncs.com/viapi-3.0domepic/imageenhan/RemoveImageSubtitles/RemoveImageSubtitles1.jpg', + 'isFileTransferUrl' => true, + 'required' => true, + 'type' => 'string', + ], + ], + [ + 'name' => 'BX', + 'in' => 'formData', + 'schema' => [ + 'description' => '', + 'example' => '0', + 'format' => 'float', + 'required' => false, + 'type' => 'number', + ], + ], + [ + 'name' => 'BY', + 'in' => 'formData', + 'schema' => [ + 'description' => '', + 'example' => '0.75', + 'format' => 'float', + 'required' => false, + 'type' => 'number', + ], + ], + [ + 'name' => 'BW', + 'in' => 'formData', + 'schema' => [ + 'description' => '', + 'example' => '1', + 'format' => 'float', + 'required' => false, + 'type' => 'number', + ], + ], + [ + 'name' => 'BH', + 'in' => 'formData', + 'schema' => [ + 'description' => '', + 'example' => '0.25', + 'format' => 'float', + 'required' => false, + 'type' => 'number', + ], + ], + ], + 'responses' => [ + 200 => [ + 'schema' => [ + 'properties' => [ + 'RequestId' => [ + 'description' => '', + 'example' => '939B2103-EE28-4F2D-9773-9A37AD00E5B7', + 'type' => 'string', + ], + 'Data' => [ + 'description' => '', + 'properties' => [ + 'ImageURL' => [ + 'description' => '', + 'example' => 'http://algo-app-aic-vd-cn-shanghai-prod.oss-cn-shanghai.aliyuncs.com/image-desubtitle/2020-03-23-08/02%3A50-e8af2ea3-bddc-4ec8-b21c-493ee687465e.jpg?Expires=1584952370&OSSAccessKeyId=LTAI4FoLmvQ9urWXgSRp****&Signature=qVnfWZJ2QtI9NRWQ410FsEFioq****', + 'type' => 'string', + ], + ], + 'type' => 'object', + ], + ], + 'type' => 'object', + ], + ], + ], + 'errorCodes' => [ + 400 => [ + [ + 'errorCode' => 'ParameterError', + 'errorMessage' => 'The parameter is invalid. Please check again.', + ], + ], + 403 => [ + [ + 'errorCode' => 'AuthFailed', + 'errorMessage' => 'An error occurred while performing authorization. Please check your RAM configuration.', + ], + ], + 408 => [ + [ + 'errorCode' => 'Timeout', + 'errorMessage' => 'The request has timed out.', + ], + ], + 503 => [ + [ + 'errorCode' => 'ServiceUnavailable', + 'errorMessage' => 'The service is unavailable.', + ], + ], + ], + 'responseDemo' => '[{"type":"json","example":"{\\n \\"RequestId\\": \\"939B2103-EE28-4F2D-9773-9A37AD00E5B7\\",\\n \\"Data\\": {\\n \\"ImageURL\\": \\"http://algo-app-aic-vd-cn-shanghai-prod.oss-cn-shanghai.aliyuncs.com/image-desubtitle/2020-03-23-08/02%3A50-e8af2ea3-bddc-4ec8-b21c-493ee687465e.jpg?Expires=1584952370&OSSAccessKeyId=LTAI****************&Signature=qVnfWZJ2QtI9NRWQ410FsEFioq****\\"\\n }\\n}","errorExample":""},{"type":"xml","example":"<RemoveImageSubtitlesResponse>\\n <RequestId>939B2103-EE28-4F2D-9773-9A37AD00E5B7</RequestId>\\n <Data>\\n <ImageURL>http://algo-app-aic-vd-cn-shanghai-prod.oss-cn-shanghai.aliyuncs.com/image-desubtitle/2020-03-23-08/02%3A50-e8af2ea3-bddc-4ec8-b21c-493ee687465e.jpg?Expires=1584952370&OSSAccessKeyId=LTAI****************&Signature=qVnfWZJ2QtI9NRWQ410FsEFioq****</ImageURL>\\n </Data>\\n</RemoveImageSubtitlesResponse>","errorExample":""}]', + ], + 'RemoveImageWatermark' => [ + 'methods' => [ + 'post', + ], + 'schemes' => [ + 'http', + 'https', + ], + 'security' => [ + [ + 'AK' => [], + ], + ], + 'operationType' => 'readAndWrite', + 'deprecated' => false, + 'systemTags' => [], + 'parameters' => [ + [ + 'name' => 'ImageURL', + 'in' => 'formData', + 'schema' => [ + 'description' => '', + 'example' => 'http://viapi-test.oss-cn-shanghai.aliyuncs.com/viapi-3.0domepic/imageenhan/RemoveImageWatermark/RemoveImageWatermark3.jpg', + 'isFileTransferUrl' => true, + 'required' => true, + 'type' => 'string', + ], + ], + ], + 'responses' => [ + 200 => [ + 'schema' => [ + 'properties' => [ + 'RequestId' => [ + 'description' => '', + 'example' => '885070A7-E721-4062-99A0-80C0EBBF9406', + 'type' => 'string', + ], + 'Data' => [ + 'description' => '', + 'properties' => [ + 'ImageURL' => [ + 'description' => '', + 'example' => 'http://algo-app-aic-vd-cn-shanghai-prod.oss-cn-shanghai.aliyuncs.com/image-delogo/2020-03-27-03/00%3A06-5a6f0a0f-c940-4955-af75-79e8267f1699.jpg?Expires=1585279806&OSSAccessKeyId=LTAI4FoLmvQ9urWXgSRp****&Signature=R4OC2R5%2Fkw08XYFXmCWjgk7Y9N****', + 'type' => 'string', + ], + ], + 'type' => 'object', + ], + ], + 'type' => 'object', + ], + ], + ], + 'errorCodes' => [ + 400 => [ + [ + 'errorCode' => 'ParameterError', + 'errorMessage' => 'The parameter is invalid. Please check again.', + ], + ], + 403 => [ + [ + 'errorCode' => 'AuthFailed', + 'errorMessage' => 'An error occurred while performing authorization. Please check your RAM configuration.', + ], + ], + 408 => [ + [ + 'errorCode' => 'Timeout', + 'errorMessage' => 'The request has timed out.', + ], + ], + 503 => [ + [ + 'errorCode' => 'ServiceUnavailable', + 'errorMessage' => 'The service is unavailable.', + ], + ], + ], + 'responseDemo' => '[{"type":"json","example":"{\\n \\"RequestId\\": \\"885070A7-E721-4062-99A0-80C0EBBF9406\\",\\n \\"Data\\": {\\n \\"ImageURL\\": \\"http://algo-app-aic-vd-cn-shanghai-prod.oss-cn-shanghai.aliyuncs.com/image-delogo/2020-03-27-03/00%3A06-5a6f0a0f-c940-4955-af75-79e8267f1699.jpg?Expires=1585279806&OSSAccessKeyId=LTAI****************&Signature=R4OC2R5%2Fkw08XYFXmCWjgk7Y9N****\\"\\n }\\n}","errorExample":""},{"type":"xml","example":"<RemoveImageWatermarkResponse>\\n <RequestId>885070A7-E721-4062-99A0-80C0EBBF9406</RequestId>\\n <Data>\\n <ImageURL>http://algo-app-aic-vd-cn-shanghai-prod.oss-cn-shanghai.aliyuncs.com/image-delogo/2020-03-27-03/00%3A06-5a6f0a0f-c940-4955-af75-79e8267f1699.jpg?Expires=1585279806&OSSAccessKeyId=LTAI****************&Signature=R4OC2R5%2Fkw08XYFXmCWjgk7Y9N****</ImageURL>\\n </Data>\\n</RemoveImageWatermarkResponse>","errorExample":""}]', + 'requestParamsDescription' => ' ', + 'responseParamsDescription' => ' ', + ], + 'AssessComposition' => [ + 'methods' => [ + 'post', + ], + 'schemes' => [ + 'http', + 'https', + ], + 'security' => [ + [ + 'AK' => [], + ], + ], + 'operationType' => 'readAndWrite', + 'deprecated' => false, + 'systemTags' => [], + 'parameters' => [ + [ + 'name' => 'ImageURL', + 'in' => 'formData', + 'schema' => [ + 'description' => '', + 'example' => 'http://viapi-test.oss-cn-shanghai.aliyuncs.com/viapi-3.0domepic/imageenhan/AssessComposition/AssessComposition1.jpg', + 'isFileTransferUrl' => true, + 'required' => true, + 'type' => 'string', + ], + ], + ], + 'responses' => [ + 200 => [ + 'schema' => [ + 'description' => '1', + 'properties' => [ + 'RequestId' => [ + 'description' => '', + 'example' => 'CCAD9435-AEDB-49E4-BCCC-99B65ECC6693', + 'type' => 'string', + ], + 'Data' => [ + 'description' => '', + 'properties' => [ + 'Score' => [ + 'description' => '', + 'example' => '4.2551436', + 'format' => 'float', + 'type' => 'number', + ], + ], + 'type' => 'object', + ], + ], + 'type' => 'object', + ], + ], + ], + 'errorCodes' => [ + 400 => [ + [ + 'errorCode' => 'ParameterError', + 'errorMessage' => 'The parameter is invalid. Please check again.', + ], + ], + 403 => [ + [ + 'errorCode' => 'AuthFailed', + 'errorMessage' => 'An error occurred while performing authorization. Please check your RAM configuration.', + ], + ], + 408 => [ + [ + 'errorCode' => 'Timeout', + 'errorMessage' => 'The request has timed out.', + ], + ], + 503 => [ + [ + 'errorCode' => 'ServiceUnavailable', + 'errorMessage' => 'The service is unavailable.', + ], + ], + ], + 'responseDemo' => '[{"type":"json","example":"{\\n \\"RequestId\\": \\"CCAD9435-AEDB-49E4-BCCC-99B65ECC6693\\",\\n \\"Data\\": {\\n \\"Score\\": 4.2551436\\n }\\n}","errorExample":""},{"type":"xml","example":"<AssessCompositionResponse>\\n <RequestId>CCAD9435-AEDB-49E4-BCCC-99B65ECC6693</RequestId>\\n <Data>\\n <Score>4.2551436</Score>\\n </Data>\\n</AssessCompositionResponse>","errorExample":""}]', + 'requestParamsDescription' => ' ', + 'responseParamsDescription' => ' ', + ], + 'AssessExposure' => [ + 'methods' => [ + 'post', + ], + 'schemes' => [ + 'http', + 'https', + ], + 'security' => [ + [ + 'AK' => [], + ], + ], + 'operationType' => 'readAndWrite', + 'deprecated' => false, + 'systemTags' => [], + 'parameters' => [ + [ + 'name' => 'ImageURL', + 'in' => 'formData', + 'schema' => [ + 'description' => '', + 'example' => 'http://viapi-test.oss-cn-shanghai.aliyuncs.com/viapi-3.0domepic/imageenhan/AssessExposure/AssessExposure1.jpg', + 'isFileTransferUrl' => true, + 'required' => true, + 'type' => 'string', + ], + ], + ], + 'responses' => [ + 200 => [ + 'schema' => [ + 'description' => '1', + 'properties' => [ + 'RequestId' => [ + 'description' => '', + 'example' => '4EF3C65B-C3CC-425B-AFB3-2FE6B98C578B', + 'type' => 'string', + ], + 'Data' => [ + 'description' => '', + 'properties' => [ + 'Exposure' => [ + 'description' => '', + 'example' => '0.1', + 'format' => 'float', + 'type' => 'number', + ], + ], + 'type' => 'object', + ], + ], + 'type' => 'object', + ], + ], + ], + 'errorCodes' => [ + 400 => [ + [ + 'errorCode' => 'ParameterError', + 'errorMessage' => 'The parameter is invalid. Please check again.', + ], + ], + 403 => [ + [ + 'errorCode' => 'AuthFailed', + 'errorMessage' => 'An error occurred while performing authorization. Please check your RAM configuration.', + ], + ], + 408 => [ + [ + 'errorCode' => 'Timeout', + 'errorMessage' => 'The request has timed out.', + ], + ], + 503 => [ + [ + 'errorCode' => 'ServiceUnavailable', + 'errorMessage' => 'The service is unavailable.', + ], + ], + ], + 'responseDemo' => '[{"type":"json","example":"{\\n \\"RequestId\\": \\"4EF3C65B-C3CC-425B-AFB3-2FE6B98C578B\\",\\n \\"Data\\": {\\n \\"Exposure\\": 0.1\\n }\\n}","errorExample":""},{"type":"xml","example":"<AssessExposureResponse>\\n <RequestId>4EF3C65B-C3CC-425B-AFB3-2FE6B98C578B</RequestId>\\n <Data>\\n <Exposure>0.1</Exposure>\\n </Data>\\n</AssessExposureResponse>","errorExample":""}]', + 'requestParamsDescription' => ' ', + 'responseParamsDescription' => ' ', + ], + 'AssessSharpness' => [ + 'methods' => [ + 'post', + ], + 'schemes' => [ + 'http', + 'https', + ], + 'security' => [ + [ + 'AK' => [], + ], + ], + 'operationType' => 'readAndWrite', + 'deprecated' => false, + 'systemTags' => [], + 'parameters' => [ + [ + 'name' => 'ImageURL', + 'in' => 'formData', + 'schema' => [ + 'description' => '', + 'example' => 'http://viapi-test.oss-cn-shanghai.aliyuncs.com/viapi-3.0domepic/imageenhan/AssessSharpness/AssessSharpness1.jpg', + 'isFileTransferUrl' => true, + 'required' => true, + 'type' => 'string', + ], + ], + ], + 'responses' => [ + 200 => [ + 'schema' => [ + 'description' => '1', + 'properties' => [ + 'RequestId' => [ + 'description' => '', + 'example' => 'C0B594A1-383E-4F97-A740-0D51CF8E37D2', + 'type' => 'string', + ], + 'Data' => [ + 'description' => '', + 'properties' => [ + 'Sharpness' => [ + 'description' => '', + 'example' => '0.1', + 'format' => 'float', + 'type' => 'number', + ], + ], + 'type' => 'object', + ], + ], + 'type' => 'object', + ], + ], + ], + 'errorCodes' => [ + 400 => [ + [ + 'errorCode' => 'ParameterError', + 'errorMessage' => 'The parameter is invalid. Please check again.', + ], + ], + 403 => [ + [ + 'errorCode' => 'AuthFailed', + 'errorMessage' => 'An error occurred while performing authorization. Please check your RAM configuration.', + ], + ], + 408 => [ + [ + 'errorCode' => 'Timeout', + 'errorMessage' => 'The request has timed out.', + ], + ], + 503 => [ + [ + 'errorCode' => 'ServiceUnavailable', + 'errorMessage' => 'The service is unavailable.', + ], + ], + ], + 'responseDemo' => '[{"type":"json","example":"{\\n \\"RequestId\\": \\"C0B594A1-383E-4F97-A740-0D51CF8E37D2\\",\\n \\"Data\\": {\\n \\"Sharpness\\": 0.1\\n }\\n}","errorExample":""},{"type":"xml","example":"<AssessSharpnessResponse>\\n <RequestId>C0B594A1-383E-4F97-A740-0D51CF8E37D2</RequestId>\\n <Data>\\n <Sharpness>0.1</Sharpness>\\n </Data>\\n</AssessSharpnessResponse>","errorExample":""}]', + 'requestParamsDescription' => ' ', + 'responseParamsDescription' => ' ', + ], + 'ChangeImageSize' => [ + 'methods' => [ + 'post', + ], + 'schemes' => [ + 'http', + 'https', + ], + 'security' => [ + [ + 'AK' => [], + ], + ], + 'operationType' => 'readAndWrite', + 'deprecated' => false, + 'systemTags' => [ + 'operationType' => 'update', + ], + 'parameters' => [ + [ + 'name' => 'Width', + 'in' => 'formData', + 'schema' => [ + 'description' => '', + 'example' => '800', + 'format' => 'int32', + 'maximum' => '2000', + 'minimum' => '10', + 'required' => true, + 'type' => 'integer', + ], + ], + [ + 'name' => 'Height', + 'in' => 'formData', + 'schema' => [ + 'description' => '', + 'example' => '600', + 'format' => 'int32', + 'maximum' => '2000', + 'minimum' => '10', + 'required' => true, + 'type' => 'integer', + ], + ], + [ + 'name' => 'Url', + 'in' => 'formData', + 'schema' => [ + 'description' => '', + 'example' => 'http://viapi-test.oss-cn-shanghai.aliyuncs.com/viapi-3.0domepic/imageenhan/ChangeImageSize/ChangeImageSize5.jpg', + 'isFileTransferUrl' => true, + 'required' => true, + 'type' => 'string', + ], + ], + ], + 'responses' => [ + 200 => [ + 'schema' => [ + 'properties' => [ + 'RequestId' => [ + 'description' => '', + 'example' => '2833446F-A431-40EB-A502-6EC9DFEEEEB0', + 'type' => 'string', + ], + 'Data' => [ + 'description' => '', + 'properties' => [ + 'Url' => [ + 'description' => '', + 'example' => 'http://ivpd-cn-shanghai.oss-cn-shanghai.aliyuncs.com/upload/result_filter/2019-11-21/invi_filter_015743271470661000112_NVKmET.png?Expires=1574586347&OSSAccessKeyId=LTAI4FeJ8qKkYn6SrHhQ****&Signature=QqRAiqvyXsVlZ77M8yFc5QKJDE****', + 'type' => 'string', + ], + 'RetainLocation' => [ + 'description' => '', + 'properties' => [ + 'Width' => [ + 'description' => '', + 'example' => '298', + 'format' => 'int32', + 'type' => 'integer', + ], + 'Height' => [ + 'description' => '', + 'example' => '224', + 'format' => 'int32', + 'type' => 'integer', + ], + 'Y' => [ + 'description' => '', + 'example' => '0', + 'format' => 'int32', + 'type' => 'integer', + ], + 'X' => [ + 'description' => '', + 'example' => '0', + 'format' => 'int32', + 'type' => 'integer', + ], + ], + 'type' => 'object', + ], + ], + 'type' => 'object', + ], + ], + 'type' => 'object', + ], + ], + ], + 'errorCodes' => [ + 400 => [ + [ + 'errorCode' => 'ParameterError', + 'errorMessage' => 'The parameter is invalid. Please check again.', + ], + ], + 403 => [ + [ + 'errorCode' => 'AuthFailed', + 'errorMessage' => 'An error occurred while performing authorization. Please check your RAM configuration.', + ], + ], + 408 => [ + [ + 'errorCode' => 'Timeout', + 'errorMessage' => 'The request has timed out.', + ], + ], + 503 => [ + [ + 'errorCode' => 'ServiceUnavailable', + 'errorMessage' => 'The service is unavailable.', + ], + ], + ], + 'responseDemo' => '[{"type":"json","example":"{\\n \\"RequestId\\": \\"2833446F-A431-40EB-A502-6EC9DFEEEEB0\\",\\n \\"Data\\": {\\n \\"Url\\": \\"http://ivpd-cn-shanghai.oss-cn-shanghai.aliyuncs.com/upload/result_filter/2019-11-21/invi_filter_015743271470661000112_NVKmET.png?Expires=1574586347&OSSAccessKeyId=LTAI4FeJ8qKkYn6SrHhQ****&Signature=QqRAiqvyXsVlZ77M8yFc5QKJDE****\\",\\n \\"RetainLocation\\": {\\n \\"Width\\": 298,\\n \\"Height\\": 224,\\n \\"Y\\": 0,\\n \\"X\\": 0\\n }\\n }\\n}","errorExample":""},{"type":"xml","example":"<ChangeImageSizeResponse>\\n <RequestId>2833446F-A431-40EB-A502-6EC9DFEEEEB0</RequestId>\\n <Data>\\n <Url>http://ivpd-cn-shanghai.oss-cn-shanghai.aliyuncs.com/upload/result_filter/2019-11-21/invi_filter_015743271470661000112_NVKmET.png?Expires=1574586347&OSSAccessKeyId=LTAI4FeJ8qKkYn6SrHhQ****&Signature=QqRAiqvyXsVlZ77M8yFc5QKJDE****</Url>\\n <RetainLocation>\\n <Width>298</Width>\\n <Height>224</Height>\\n <Y>0</Y>\\n <X>0</X>\\n </RetainLocation>\\n </Data>\\n</ChangeImageSizeResponse>","errorExample":""}]', + 'requestParamsDescription' => ' ', + ], + 'ColorizeImage' => [ + 'methods' => [ + 'post', + ], + 'schemes' => [ + 'http', + 'https', + ], + 'security' => [ + [ + 'AK' => [], + ], + ], + 'operationType' => 'readAndWrite', + 'deprecated' => false, + 'systemTags' => [], + 'parameters' => [ + [ + 'name' => 'ImageURL', + 'in' => 'formData', + 'schema' => [ + 'description' => '', + 'example' => 'http://viapi-test.oss-cn-shanghai.aliyuncs.com/viapi-3.0domepic/imageenhan/ColorizeImage/ColorizeImage1.jpg', + 'isFileTransferUrl' => true, + 'required' => true, + 'type' => 'string', + ], + ], + ], + 'responses' => [ + 200 => [ + 'schema' => [ + 'properties' => [ + 'RequestId' => [ + 'description' => '', + 'example' => '124A4B09-68EF-4178-B98D-319089D4268B', + 'type' => 'string', + ], + 'Data' => [ + 'description' => '', + 'properties' => [ + 'ImageURL' => [ + 'description' => '', + 'example' => 'http://algo-app-aic-vc-cn-shanghai-prod.oss-cn-shanghai.aliyuncs.com/face-enhancement/2020_11_26/20201126_182812286268_079260.jpg?Expires=1606388292&OSSAccessKeyId=LTAI4FoLmvQ9urWXgSRp****&Signature=f71Bx37g%2BGhM%2B6FOXM0EbNL8W4****', + 'type' => 'string', + ], + ], + 'type' => 'object', + ], + ], + 'type' => 'object', + ], + ], + ], + 'errorCodes' => [ + 400 => [ + [ + 'errorCode' => 'ParameterError', + 'errorMessage' => 'The parameter is invalid. Please check again.', + ], + ], + 403 => [ + [ + 'errorCode' => 'AuthFailed', + 'errorMessage' => 'An error occurred while performing authorization. Please check your RAM configuration.', + ], + ], + 408 => [ + [ + 'errorCode' => 'Timeout', + 'errorMessage' => 'The request has timed out.', + ], + ], + 503 => [ + [ + 'errorCode' => 'ServiceUnavailable', + 'errorMessage' => 'The service is unavailable.', + ], + ], + ], + 'responseDemo' => '[{"type":"json","example":"{\\n \\"RequestId\\": \\"124A4B09-68EF-4178-B98D-319089D4268B\\",\\n \\"Data\\": {\\n \\"ImageURL\\": \\"http://algo-app-aic-vc-cn-shanghai-prod.oss-cn-shanghai.aliyuncs.com/face-enhancement/2020_11_26/20201126_182812286268_079260.jpg?Expires=1606388292&OSSAccessKeyId=LTAI****************&Signature=f71Bx37g%2BGhM%2B6FOXM0EbNL8W4****\\"\\n }\\n}","errorExample":""},{"type":"xml","example":"<ColorizeImageResponse>\\n <RequestId>124A4B09-68EF-4178-B98D-319089D4268B</RequestId>\\n <Data>\\n <ImageURL>http://algo-app-aic-vc-cn-shanghai-prod.oss-cn-shanghai.aliyuncs.com/face-enhancement/2020_11_26/20201126_182812286268_079260.jpg?Expires=1606388292&OSSAccessKeyId=LTAI****************&Signature=f71Bx37g%2BGhM%2B6FOXM0EbNL8W4****</ImageURL>\\n </Data>\\n</ColorizeImageResponse>","errorExample":""}]', + 'requestParamsDescription' => ' ', + 'responseParamsDescription' => ' ', + ], + 'EnhanceImageColor' => [ + 'methods' => [ + 'post', + ], + 'schemes' => [ + 'http', + 'https', + ], + 'security' => [ + [ + 'AK' => [], + ], + ], + 'operationType' => 'readAndWrite', + 'deprecated' => false, + 'systemTags' => [], + 'parameters' => [ + [ + 'name' => 'ImageURL', + 'in' => 'formData', + 'schema' => [ + 'description' => '', + 'example' => 'http://viapi-test.oss-cn-shanghai.aliyuncs.com/viapi-3.0domepic/imageenhan/EnhanceImageColor/EnhanceImageColor1.jpg', + 'isFileTransferUrl' => true, + 'required' => true, + 'type' => 'string', + ], + ], + [ + 'name' => 'OutputFormat', + 'in' => 'formData', + 'schema' => [ + 'description' => '', + 'example' => 'png', + 'required' => true, + 'type' => 'string', + ], + ], + [ + 'name' => 'Mode', + 'in' => 'formData', + 'schema' => [ + 'description' => '', + 'example' => 'LogC', + 'required' => true, + 'type' => 'string', + ], + ], + ], + 'responses' => [ + 200 => [ + 'schema' => [ + 'properties' => [ + 'RequestId' => [ + 'description' => '', + 'example' => '2F306ABD-5BC3-4FA0-89CF-0DED5B3654EB', + 'type' => 'string', + ], + 'Data' => [ + 'description' => '', + 'properties' => [ + 'ImageURL' => [ + 'description' => '', + 'example' => 'http://algo-app-aic-vd-cn-shanghai-prod.oss-cn-shanghai.aliyuncs.com/image-recolor/2020-06-23-10/24%3A14-3cf26e84-a5d2-49b0-8332-0e139e20c49e.png?Expires=1592909654&OSSAccessKeyId=LTAI4FoLmvQ9urWXgSRp****&Signature=fHrYvitvm0qZJ9nrWYa%2Fjd4pQS****', + 'type' => 'string', + ], + ], + 'type' => 'object', + ], + ], + 'type' => 'object', + ], + ], + ], + 'errorCodes' => [ + 400 => [ + [ + 'errorCode' => 'ParameterError', + 'errorMessage' => 'The parameter is invalid. Please check again.', + ], + ], + 403 => [ + [ + 'errorCode' => 'AuthFailed', + 'errorMessage' => 'An error occurred while performing authorization. Please check your RAM configuration.', + ], + ], + 408 => [ + [ + 'errorCode' => 'Timeout', + 'errorMessage' => 'The request has timed out.', + ], + ], + 503 => [ + [ + 'errorCode' => 'ServiceUnavailable', + 'errorMessage' => 'The service is unavailable.', + ], + ], + ], + 'responseDemo' => '[{"type":"json","example":"{\\n \\"RequestId\\": \\"2F306ABD-5BC3-4FA0-89CF-0DED5B3654EB\\",\\n \\"Data\\": {\\n \\"ImageURL\\": \\"http://algo-app-aic-vd-cn-shanghai-prod.oss-cn-shanghai.aliyuncs.com/image-recolor/2020-06-23-10/24%3A14-3cf26e84-a5d2-49b0-8332-0e139e20c49e.png?Expires=1592909654&OSSAccessKeyId=LTAI****************&Signature=fHrYvitvm0qZJ9nrWYa%2Fjd4pQS****\\"\\n }\\n}","errorExample":""},{"type":"xml","example":"<EnhanceImageColorResponse>\\n <RequestId>2F306ABD-5BC3-4FA0-89CF-0DED5B3654EB</RequestId>\\n <Data>\\n <ImageURL>http://algo-app-aic-vd-cn-shanghai-prod.oss-cn-shanghai.aliyuncs.com/image-recolor/2020-06-23-10/24%3A14-3cf26e84-a5d2-49b0-8332-0e139e20c49e.png?Expires=1592909654&OSSAccessKeyId=LTAI****************&Signature=fHrYvitvm0qZJ9nrWYa%2Fjd4pQS****</ImageURL>\\n </Data>\\n</EnhanceImageColorResponse>","errorExample":""}]', + 'requestParamsDescription' => ' ', + ], + 'ImitatePhotoStyle' => [ + 'methods' => [ + 'post', + ], + 'schemes' => [ + 'http', + 'https', + ], + 'security' => [ + [ + 'AK' => [], + ], + ], + 'operationType' => 'readAndWrite', + 'deprecated' => false, + 'systemTags' => [], + 'parameters' => [ + [ + 'name' => 'StyleUrl', + 'in' => 'formData', + 'schema' => [ + 'description' => '', + 'example' => 'http://viapi-test.oss-cn-shanghai.aliyuncs.com/viapi-3.0domepic/imageenhan/ImitatePhotoStyle/ImitatePhotoStyle7.jpg', + 'required' => true, + 'type' => 'string', + 'isFileTransferUrl' => true, + ], + ], + [ + 'name' => 'ImageURL', + 'in' => 'formData', + 'schema' => [ + 'description' => '', + 'example' => 'http://viapi-test.oss-cn-shanghai.aliyuncs.com/viapi-3.0domepic/imageenhan/ImitatePhotoStyle/ImitatePhotoStyle1.jpg', + 'isFileTransferUrl' => true, + 'required' => true, + 'type' => 'string', + ], + ], + ], + 'responses' => [ + 200 => [ + 'schema' => [ + 'properties' => [ + 'RequestId' => [ + 'description' => '', + 'example' => 'A880432B-6D9A-4EF4-B7B7-863F38A930D9', + 'type' => 'string', + ], + 'Data' => [ + 'description' => '', + 'properties' => [ + 'ImageURL' => [ + 'description' => '', + 'example' => 'http://vibktprfx-prod-prod-aic-gd-cn-shanghai.oss-cn-shanghai.aliyuncs.com/photo-style-imitation/7c4c0809-5e15-4ca7-84b3-ba16711e3255__5cb220200622-075203.jpg?Expires=1592814125&OSSAccessKeyId=LTAI4FoLmvQ9urWXgSRp****&Signature=DNhhRFPbMBwpHCEhrLdL%2BBF%2BXs****', + 'type' => 'string', + ], + ], + 'type' => 'object', + ], + ], + 'type' => 'object', + ], + ], + ], + 'errorCodes' => [ + 400 => [ + [ + 'errorCode' => 'ParameterError', + 'errorMessage' => 'The parameter is invalid. Please check again.', + ], + ], + 403 => [ + [ + 'errorCode' => 'AuthFailed', + 'errorMessage' => 'An error occurred while performing authorization. Please check your RAM configuration.', + ], + ], + 408 => [ + [ + 'errorCode' => 'Timeout', + 'errorMessage' => 'The request has timed out.', + ], + ], + 503 => [ + [ + 'errorCode' => 'ServiceUnavailable', + 'errorMessage' => 'The service is unavailable.', + ], + ], + ], + 'responseDemo' => '[{"type":"json","example":"{\\n \\"RequestId\\": \\"A880432B-6D9A-4EF4-B7B7-863F38A930D9\\",\\n \\"Data\\": {\\n \\"ImageURL\\": \\"http://vibktprfx-prod-prod-aic-gd-cn-shanghai.oss-cn-shanghai.aliyuncs.com/photo-style-imitation/7c4c0809-5e15-4ca7-84b3-ba16711e3255__5cb220200622-075203.jpg?Expires=1592814125&OSSAccessKeyId=LTAI****************&Signature=DNhhRFPbMBwpHCEhrLdL%2BBF%2BXs****\\"\\n }\\n}","errorExample":""},{"type":"xml","example":"<ImitatePhotoStyleResponse>\\n <RequestId>A880432B-6D9A-4EF4-B7B7-863F38A930D9</RequestId>\\n <Data>\\n <ImageURL>http://vibktprfx-prod-prod-aic-gd-cn-shanghai.oss-cn-shanghai.aliyuncs.com/photo-style-imitation/7c4c0809-5e15-4ca7-84b3-ba16711e3255__5cb220200622-075203.jpg?Expires=1592814125&OSSAccessKeyId=LTAI****************&Signature=DNhhRFPbMBwpHCEhrLdL%2BBF%2BXs****</ImageURL>\\n </Data>\\n</ImitatePhotoStyleResponse>","errorExample":""}]', + 'requestParamsDescription' => ' ', + 'responseParamsDescription' => ' ', + ], + 'IntelligentComposition' => [ + 'methods' => [ + 'post', + ], + 'schemes' => [ + 'http', + 'https', + ], + 'security' => [ + [ + 'AK' => [], + ], + ], + 'operationType' => 'readAndWrite', + 'deprecated' => false, + 'systemTags' => [], + 'parameters' => [ + [ + 'name' => 'NumBoxes', + 'in' => 'formData', + 'schema' => [ + 'description' => '', + 'example' => '5', + 'format' => 'int32', + 'isFileTransferUrl' => false, + 'required' => false, + 'type' => 'integer', + ], + ], + [ + 'name' => 'ImageURL', + 'in' => 'formData', + 'schema' => [ + 'description' => '', + 'example' => 'http://viapi-test.oss-cn-shanghai.aliyuncs.com/viapi-3.0domepic/imageenhan/IntelligentComposition/IntelligentComposition3.jpg', + 'isFileTransferUrl' => true, + 'required' => true, + 'type' => 'string', + ], + ], + ], + 'responses' => [ + 200 => [ + 'schema' => [ + 'properties' => [ + 'RequestId' => [ + 'description' => '', + 'example' => 'C1D52018-D67A-46AD-9AAA-031750A6E770', + 'type' => 'string', + ], + 'Data' => [ + 'description' => '', + 'properties' => [ + 'Elements' => [ + 'description' => '', + 'items' => [ + 'properties' => [ + 'MinX' => [ + 'description' => '', + 'example' => '43', + 'format' => 'int32', + 'type' => 'integer', + ], + 'Score' => [ + 'description' => '', + 'example' => '3.6567564', + 'format' => 'float', + 'type' => 'number', + ], + 'MaxY' => [ + 'description' => '', + 'example' => '672', + 'format' => 'int32', + 'type' => 'integer', + ], + 'MaxX' => [ + 'description' => '', + 'example' => '981', + 'format' => 'int32', + 'type' => 'integer', + ], + 'MinY' => [ + 'description' => '', + 'example' => '96', + 'format' => 'int32', + 'type' => 'integer', + ], + ], + 'type' => 'object', + ], + 'type' => 'array', + ], + ], + 'type' => 'object', + ], + ], + 'type' => 'object', + ], + ], + ], + 'errorCodes' => [ + 400 => [ + [ + 'errorCode' => 'ParameterError', + 'errorMessage' => 'The parameter is invalid. Please check again.', + ], + ], + 403 => [ + [ + 'errorCode' => 'AuthFailed', + 'errorMessage' => 'An error occurred while performing authorization. Please check your RAM configuration.', + ], + ], + 408 => [ + [ + 'errorCode' => 'Timeout', + 'errorMessage' => 'The request has timed out.', + ], + ], + 503 => [ + [ + 'errorCode' => 'ServiceUnavailable', + 'errorMessage' => 'The service is unavailable.', + ], + ], + ], + 'responseDemo' => '[{"type":"json","example":"{\\n \\"RequestId\\": \\"C1D52018-D67A-46AD-9AAA-031750A6E770\\",\\n \\"Data\\": {\\n \\"Elements\\": [\\n {\\n \\"MinX\\": 43,\\n \\"Score\\": 3.6567564,\\n \\"MaxY\\": 672,\\n \\"MaxX\\": 981,\\n \\"MinY\\": 96\\n }\\n ]\\n }\\n}","errorExample":""},{"type":"xml","example":"<RequestId>C1D52018-D67A-46AD-9AAA-031750A6E770</RequestId>\\n<Data>\\n <Elements>\\n <MaxX>981</MaxX>\\n <MaxY>672</MaxY>\\n <MinX>43</MinX>\\n <Score>3.6567564</Score>\\n <MinY>96</MinY>\\n </Elements>\\n <Elements>\\n <MaxX>896</MaxX>\\n <MaxY>736</MaxY>\\n <MinX>43</MinX>\\n <Score>3.594815</Score>\\n <MinY>32</MinY>\\n </Elements>\\n <Elements>\\n <MaxX>981</MaxX>\\n <MaxY>736</MaxY>\\n <MinX>43</MinX>\\n <Score>3.5908668</Score>\\n <MinY>32</MinY>\\n </Elements>\\n <Elements>\\n <MaxX>981</MaxX>\\n <MaxY>608</MaxY>\\n <MinX>43</MinX>\\n <Score>3.5745924</Score>\\n <MinY>96</MinY>\\n </Elements>\\n <Elements>\\n <MaxX>896</MaxX>\\n <MaxY>672</MaxY>\\n <MinX>43</MinX>\\n <Score>3.5324287</Score>\\n <MinY>96</MinY>\\n </Elements>\\n</Data>","errorExample":""}]', + 'requestParamsDescription' => ' ', + ], + 'MakeSuperResolutionImage' => [ + 'methods' => [ + 'post', + ], + 'schemes' => [ + 'http', + 'https', + ], + 'security' => [ + [ + 'AK' => [], + ], + ], + 'operationType' => 'readAndWrite', + 'deprecated' => false, + 'systemTags' => [], + 'parameters' => [ + [ + 'name' => 'Url', + 'in' => 'formData', + 'schema' => [ + 'description' => '', + 'example' => 'http://viapi-test.oss-cn-shanghai.aliyuncs.com/viapi-3.0domepic/imageenhan/MakeSuperResolutionImage/MakeSuperResolutionImage5.png', + 'isFileTransferUrl' => true, + 'required' => true, + 'type' => 'string', + ], + ], + [ + 'name' => 'Mode', + 'in' => 'formData', + 'schema' => [ + 'description' => '', + 'example' => 'base', + 'required' => false, + 'type' => 'string', + 'default' => 'base', + ], + ], + [ + 'name' => 'UpscaleFactor', + 'in' => 'formData', + 'schema' => [ + 'description' => '', + 'example' => '2', + 'format' => 'int64', + 'required' => false, + 'type' => 'integer', + 'default' => '2', + ], + ], + [ + 'name' => 'OutputFormat', + 'in' => 'formData', + 'schema' => [ + 'description' => '', + 'example' => 'png', + 'required' => false, + 'type' => 'string', + ], + ], + [ + 'name' => 'OutputQuality', + 'in' => 'formData', + 'schema' => [ + 'description' => '', + 'example' => '95', + 'format' => 'int64', + 'required' => false, + 'type' => 'integer', + ], + ], + ], + 'responses' => [ + 200 => [ + 'schema' => [ + 'properties' => [ + 'RequestId' => [ + 'description' => '', + 'example' => '47DD87F1-D077-499A-8D96-C82F006A6839', + 'type' => 'string', + ], + 'Data' => [ + 'description' => '', + 'properties' => [ + 'Url' => [ + 'description' => '', + 'example' => 'http://ivpd-cn-shanghai.oss-cn-shanghai.aliyuncs.com/upload/ai-gateway_prod/ds%253D20191121/sisrx2_157433961551387538.jpg?Expires=1574598816&OSSAccessKeyId=LTAI4FeJ8qKkYn6SrHhQ****&Signature=8phY6dOz4U889nHfHC1g51nwAi****', + 'type' => 'string', + ], + ], + 'type' => 'object', + ], + ], + 'type' => 'object', + ], + ], + ], + 'errorCodes' => [ + 400 => [ + [ + 'errorCode' => 'ParameterError', + 'errorMessage' => 'The parameter is invalid. Please check again.', + ], + ], + 403 => [ + [ + 'errorCode' => 'AuthFailed', + 'errorMessage' => 'An error occurred while performing authorization. Please check your RAM configuration.', + ], + ], + 408 => [ + [ + 'errorCode' => 'Timeout', + 'errorMessage' => 'The request has timed out.', + ], + ], + 503 => [ + [ + 'errorCode' => 'ServiceUnavailable', + 'errorMessage' => 'The service is unavailable.', + ], + ], + ], + 'responseDemo' => '[{"type":"json","example":"{\\n \\"RequestId\\": \\"47DD87F1-D077-499A-8D96-C82F006A6839\\",\\n \\"Data\\": {\\n \\"Url\\": \\"http://ivpd-cn-shanghai.oss-cn-shanghai.aliyuncs.com/upload/ai-gateway_prod/ds%253D20191121/sisrx2_157433961551387538.jpg?Expires=1574598816&OSSAccessKeyId=LTAI****************&Signature=8phY6dOz4U889nHfHC1g51nwAi****\\"\\n }\\n}","errorExample":""},{"type":"xml","example":"<MakeSuperResolutionImageResponse>\\n <RequestId>47DD87F1-D077-499A-8D96-C82F006A6839</RequestId>\\n <Data>\\n <Url>http://ivpd-cn-shanghai.oss-cn-shanghai.aliyuncs.com/upload/ai-gateway_prod/ds%253D20191121/sisrx2_157433961551387538.jpg?Expires=1574598816&OSSAccessKeyId=LTAI****************&Signature=8phY6dOz4U889nHfHC1g51nwAi****</Url>\\n </Data>\\n</MakeSuperResolutionImageResponse>","errorExample":""}]', + 'requestParamsDescription' => ' ', + ], + 'GetAsyncJobResult' => [ + 'methods' => [ + 'post', + ], + 'schemes' => [ + 'http', + 'https', + ], + 'security' => [ + [ + 'AK' => [], + ], + ], + 'operationType' => 'read', + 'deprecated' => false, + 'systemTags' => [ + 'operationType' => 'get', + ], + 'parameters' => [ + [ + 'name' => 'JobId', + 'in' => 'formData', + 'schema' => [ + 'description' => '', + 'type' => 'string', + 'required' => true, + 'example' => '11A898F7-29D7-4AB3-B639-8BBDE671BBD5', + ], + ], + ], + 'responses' => [ + 200 => [ + 'schema' => [ + 'description' => '1', + 'type' => 'object', + 'properties' => [ + 'RequestId' => [ + 'description' => '', + 'type' => 'string', + 'example' => '6B4B827E-1CAA-43CD-BBDF-BB572E035976', + ], + 'Data' => [ + 'description' => '', + 'type' => 'object', + 'properties' => [ + 'Status' => [ + 'description' => '', + 'type' => 'string', + 'example' => 'PROCESS_SUCCESS', + ], + 'ErrorMessage' => [ + 'description' => '', + 'type' => 'string', + 'example' => 'paramsIllegal', + ], + 'Result' => [ + 'description' => '', + 'type' => 'string', + 'example' => 'http://viapi-cn-shanghai-dha-filter.oss-cn-shanghai.aliyuncs.com/upload/recoloring-hd-2020-06-22-19-39-25-798c9cb57f-v6pj4/2020-6-23/invi_filter_015928997797691000043_tIPX7W.jpg?Expires=1592901579&OSSAccessKeyId=LTAI4FoLmvQ9urWXgSRp****&Signature=qelgcQJBnzRogPybEPDDrDIjHd****', + ], + 'ErrorCode' => [ + 'description' => '', + 'type' => 'string', + 'example' => 'InvalidParameter', + ], + 'JobId' => [ + 'description' => '', + 'type' => 'string', + 'example' => '7435839A-5B92-4AA1-B2DE-5B6C98C04DDE', + ], + ], + ], + ], + ], + ], + ], + 'errorCodes' => [ + 400 => [ + [ + 'errorCode' => 'ParameterError', + 'errorMessage' => 'The parameter is invalid. Please check again.', + ], + ], + 403 => [ + [ + 'errorCode' => 'AuthFailed', + 'errorMessage' => 'An error occurred while performing authorization. Please check your RAM configuration.', + ], + ], + 408 => [ + [ + 'errorCode' => 'Timeout', + 'errorMessage' => 'The request has timed out.', + ], + ], + 503 => [ + [ + 'errorCode' => 'ServiceUnavailable', + 'errorMessage' => 'The service is unavailable.', + ], + ], + ], + 'responseDemo' => '[{"type":"json","example":"{\\n \\"RequestId\\": \\"6B4B827E-1CAA-43CD-BBDF-BB572E035976\\",\\n \\"Data\\": {\\n \\"Status\\": \\"PROCESS_SUCCESS\\",\\n \\"ErrorMessage\\": \\"paramsIllegal\\",\\n \\"Result\\": \\"http://viapi-cn-shanghai-dha-filter.oss-cn-shanghai.aliyuncs.com/upload/recoloring-hd-2020-06-22-19-39-25-798c9cb57f-v6pj4/2020-6-23/invi_filter_015928997797691000043_tIPX7W.jpg?Expires=1592901579&OSSAccessKeyId=LTAI4FoLmvQ9urWXgSRp****&Signature=qelgcQJBnzRogPybEPDDrDIjHd****\\",\\n \\"ErrorCode\\": \\"InvalidParameter\\",\\n \\"JobId\\": \\"7435839A-5B92-4AA1-B2DE-5B6C98C04DDE\\"\\n }\\n}","errorExample":""},{"type":"xml","example":"<RequestId>6B4B827E-1CAA-43CD-BBDF-BB572E035976</RequestId>\\n<Data>\\n <Status>PROCESS_SUCCESS</Status>\\n <JobId>7435839A-5B92-4AA1-B2DE-5B6C98C04DDE</JobId>\\n <Result>{\\"ImageList\\":[\\"http://viapi-cn-shanghai-dha-filter.oss-cn-shanghai.aliyuncs.com/upload/recoloring-hd-2020-06-22-19-39-25-798c9cb57f-v6pj4/2020-6-23/invi_filter_015928997797691000043_tIPX7W.jpg?Expires=1592901579&OSSAccessKeyId=LTAI4FoLmvQ9urWXgSRp****&Signature=qelgcQJBnzRogPybEPDDrDIjHd****\\"]}</Result>\\n</Data>","errorExample":""}]', + 'requestParamsDescription' => ' ', + ], + 'GenerateCartoonizedImage' => [ + 'summary' => '生成式图像卡通化', + 'methods' => [ + 'post', + ], + 'schemes' => [ + 'http', + 'https', + ], + 'security' => [ + [ + 'AK' => [], + ], + ], + 'deprecated' => false, + 'systemTags' => [], + 'parameters' => [ + [ + 'name' => 'ImageUrl', + 'in' => 'formData', + 'schema' => [ + 'description' => '', + 'type' => 'string', + 'required' => true, + 'example' => 'https://viapi-test.oss-cn-shanghai.aliyuncs.com/test-team/zhangchaorun/1025.jpg', + 'isFileTransferUrl' => true, + ], + ], + [ + 'name' => 'ImageType', + 'in' => 'formData', + 'schema' => [ + 'description' => '', + 'type' => 'string', + 'required' => false, + 'example' => 'girl', + ], + ], + [ + 'name' => 'Index', + 'in' => 'formData', + 'schema' => [ + 'description' => '', + 'type' => 'string', + 'required' => true, + 'example' => '0', + ], + ], + ], + 'responses' => [ + 200 => [ + 'schema' => [ + 'title' => 'Schema of Response', + 'description' => 'Schema of Response', + 'type' => 'object', + 'properties' => [ + 'RequestId' => [ + 'description' => '', + 'type' => 'string', + 'example' => '48f38719-f0c2-4784-a9cc-30df95e393a9', + ], + 'Data' => [ + 'description' => '', + 'type' => 'object', + 'properties' => [ + 'ResultUrl' => [ + 'description' => '', + 'type' => 'string', + 'example' => 'http://vibktprfx-prod-prod-damo-eas-cn-shanghai.oss-cn-shanghai.aliyuncs.com/generative-cartoon/2023-02-02/5a3e5760-ff27-4321-8976-d05656fb716a/20230202_154009511910_pclb0gomva.jpg?Expires=1675325422&OSSAccessKeyId=LTAI4FoLmvQ9urWXgSRp****&Signature=UmAa7HxeumVkDfrdoL02dtztwS****', + ], + ], + ], + 'Message' => [ + 'description' => '', + 'type' => 'string', + 'example' => '', + ], + ], + ], + ], + ], + 'errorCodes' => [ + 400 => [ + [ + 'errorCode' => 'ParameterError', + 'errorMessage' => 'The parameter is invalid. Please check again.', + ], + ], + 403 => [ + [ + 'errorCode' => 'AuthFailed', + 'errorMessage' => 'An error occurred while performing authorization. Please check your RAM configuration.', + ], + ], + 408 => [ + [ + 'errorCode' => 'Timeout', + 'errorMessage' => 'The request has timed out.', + ], + ], + 503 => [ + [ + 'errorCode' => 'ServiceUnavailable', + 'errorMessage' => 'The service is unavailable.', + ], + ], + ], + 'staticInfo' => [ + 'returnType' => 'synchronous', + ], + 'responseDemo' => '[{"type":"json","example":"{\\n \\"RequestId\\": \\"48f38719-f0c2-4784-a9cc-30df95e393a9\\",\\n \\"Data\\": {\\n \\"ResultUrl\\": \\"http://vibktprfx-prod-prod-damo-eas-cn-shanghai.oss-cn-shanghai.aliyuncs.com/generative-cartoon/2023-02-02/5a3e5760-ff27-4321-8976-d05656fb716a/20230202_154009511910_pclb0gomva.jpg?Expires=1675325422&OSSAccessKeyId=LTAI****************&Signature=UmAa7HxeumVkDfrdoL02dtztwS****\\"\\n },\\n \\"Message\\": \\"该调用为异步调用,任务已提交成功,请以requestId的值作为jobId参数调用同类目下GetAsyncJobResult接口查询任务执行状态和结果。\\"\\n}","errorExample":""},{"type":"xml","example":"<GenerateCartoonizedImageResponse>\\n <RequestId>48f38719-f0c2-4784-a9cc-30df95e393a9</RequestId>\\n <Message>该调用为异步调用,任务已提交成功,请以requestId的值作为jobId参数调用同类目下GetAsyncJobResult接口查询任务执行状态和结果。</Message>\\n</GenerateCartoonizedImageResponse>","errorExample":""}]', + ], + 'GenerateSuperResolutionImage' => [ + 'summary' => '生成式图像超分', + 'methods' => [ + 'post', + ], + 'schemes' => [ + 'http', + 'https', + ], + 'security' => [ + [ + 'AK' => [], + ], + ], + 'deprecated' => false, + 'systemTags' => [], + 'parameters' => [ + [ + 'name' => 'ImageUrl', + 'in' => 'formData', + 'schema' => [ + 'description' => '', + 'type' => 'string', + 'required' => true, + 'example' => 'https://viapi-test.oss-cn-shanghai.aliyuncs.com/test/xxx/1025.jpg', + 'isFileTransferUrl' => true, + ], + ], + [ + 'name' => 'Scale', + 'in' => 'formData', + 'schema' => [ + 'description' => '', + 'type' => 'integer', + 'format' => 'int32', + 'required' => false, + 'example' => '2', + ], + ], + [ + 'name' => 'UserData', + 'in' => 'formData', + 'schema' => [ + 'type' => 'string', + ], + ], + [ + 'name' => 'OutputFormat', + 'in' => 'formData', + 'schema' => [ + 'description' => '', + 'type' => 'string', + 'required' => false, + 'example' => '95', + ], + ], + [ + 'name' => 'OutputQuality', + 'in' => 'formData', + 'schema' => [ + 'description' => '', + 'type' => 'integer', + 'format' => 'int32', + 'required' => false, + 'example' => 'jpg', + ], + ], + ], + 'responses' => [ + 200 => [ + 'schema' => [ + 'title' => 'Schema of Response', + 'description' => 'Schema of Response', + 'type' => 'object', + 'properties' => [ + 'RequestId' => [ + 'title' => 'Id of the request', + 'description' => '', + 'type' => 'string', + 'example' => '4ad5c3ef-5ac4-4e1c-b14f-90d939aa73eb', + ], + 'Data' => [ + 'description' => '', + 'type' => 'object', + 'properties' => [ + 'ResultUrl' => [ + 'description' => '', + 'type' => 'string', + 'example' => 'http://vibktprfx-prod-prod-damo-eas-cn-shanghai.oss-cn-shanghai.aliyuncs.com/diffusion-sr/2023-02-07/d01cede5-28bf-4719-96d9-77198d51c2f2/20230207_150650515242_3dbctnjy5f.jpg?Expires=1675755681&OSSAccessKeyId=LTAI4FoLmvQ9urWXgSRp****&Signature=4FeDXpp0DilXsHdt7qc%2Ffh3zoC****', + ], + ], + ], + 'Message' => [ + 'description' => '', + 'type' => 'string', + 'example' => '', + ], + ], + ], + ], + ], + 'errorCodes' => [ + 400 => [ + [ + 'errorCode' => 'ParameterError', + 'errorMessage' => 'The parameter is invalid. Please check again.', + ], + ], + 403 => [ + [ + 'errorCode' => 'AuthFailed', + 'errorMessage' => 'An error occurred while performing authorization. Please check your RAM configuration.', + ], + ], + 408 => [ + [ + 'errorCode' => 'Timeout', + 'errorMessage' => 'The request has timed out.', + ], + ], + 503 => [ + [ + 'errorCode' => 'ServiceUnavailable', + 'errorMessage' => 'The service is unavailable.', + ], + ], + ], + 'staticInfo' => [ + 'returnType' => 'synchronous', + ], + 'responseDemo' => '[{"type":"json","example":"{\\n \\"RequestId\\": \\"4ad5c3ef-5ac4-4e1c-b14f-90d939aa73eb\\",\\n \\"Data\\": {\\n \\"ResultUrl\\": \\"http://vibktprfx-prod-prod-damo-eas-cn-shanghai.oss-cn-shanghai.aliyuncs.com/diffusion-sr/2023-02-07/d01cede5-28bf-4719-96d9-77198d51c2f2/20230207_150650515242_3dbctnjy5f.jpg?Expires=1675755681&OSSAccessKeyId=LTAI****************&Signature=4FeDXpp0DilXsHdt7qc%2Ffh3zoC****\\"\\n },\\n \\"Message\\": \\"该调用为异步调用,任务已提交成功,请以requestId的值作为jobId参数调用同类目下GetAsyncJobResult接口查询任务执行状态和结果。\\"\\n}","errorExample":""},{"type":"xml","example":"<GenerateSuperResolutionImageResponse>\\n <RequestId>4ad5c3ef-5ac4-4e1c-b14f-90d939aa73eb</RequestId>\\n <Message>该调用为异步调用,任务已提交成功,请以requestId的值作为jobId参数调用同类目下GetAsyncJobResult接口查询任务执行状态和结果。</Message>\\n</GenerateSuperResolutionImageResponse>","errorExample":""}]', + ], + ], + 'endpoints' => [ + [ + 'regionId' => 'cn-shanghai', + 'endpoint' => 'imageenhan.cn-shanghai.aliyuncs.com', + ], + ], +]; |
