'1.0',
'info' => [
'style' => 'RPC',
'product' => 'aigen',
'version' => '2024-01-11',
],
'directories' => [
[
'id' => 0,
'title' => '其它',
'type' => 'directory',
'children' => [
'GenerateCosplayImage',
'InteractiveFullSegmentation',
'InteractiveScribbleSegmentation',
],
],
],
'components' => [
'schemas' => [],
],
'apis' => [
'GenerateCosplayImage' => [
'summary' => 'Cosplay动漫人物生成',
'methods' => [
'post',
],
'schemes' => [
'https',
],
'security' => [
[
'AK' => [],
],
],
'deprecated' => false,
'systemTags' => [
'operationType' => 'none',
],
'parameters' => [
[
'name' => 'FaceImageUrl',
'in' => 'formData',
'schema' => [
'description' => '',
'example' => 'http://viapi-test.oss-cn-shanghai.aliyuncs.com/viapi-3.0domepic/aigen/xxx01.png',
'isFileTransferUrl' => true,
'required' => true,
'type' => 'string',
],
],
[
'name' => 'TemplateImageUrl',
'in' => 'formData',
'schema' => [
'description' => '',
'example' => 'http://viapi-test.oss-cn-shanghai.aliyuncs.com/viapi-3.0domepic/aigen/xxx02.png',
'isFileTransferUrl' => true,
'required' => true,
'type' => 'string',
],
],
[
'name' => 'Style',
'in' => 'formData',
'schema' => [
'description' => '',
'example' => '0',
'format' => 'int64',
'required' => true,
'type' => 'integer',
],
],
],
'responses' => [
200 => [
'schema' => [
'description' => 'Schema of Response',
'properties' => [
'RequestId' => [
'description' => '',
'example' => '59697D68-2A6E-4553-89BD-0FADD07881E8',
'title' => 'Id of the request',
'type' => 'string',
],
'Data' => [
'description' => '',
'properties' => [
'ResultUrl' => [
'description' => '',
'example' => 'https://dashscope-result-sh.oss-cn-shanghai.aliyuncs.com/viapi-video/person_image_cartoonizer/2023-10-25/55798d04-0957-4ab1-accc-0e4d2d01a039/20231025092636774205_styleanime_n2vedxruht.jpg?Expires=1698283596&OSSAccessKeyId=LTAI4FoLmvQ9urWXgSR****&Signature=ut2kn46Lz%2FRwqJ9jWJ0RBDut12****',
'type' => 'string',
],
],
'type' => 'object',
],
'Message' => [
'description' => '',
'example' => '',
'type' => 'string',
],
],
'title' => 'Schema of Response',
'type' => 'object',
],
],
],
'staticInfo' => [
'returnType' => 'synchronous',
],
'responseDemo' => '[{"type":"json","example":"{\\n \\"RequestId\\": \\"59697D68-2A6E-4553-89BD-0FADD07881E8\\",\\n \\"Data\\": {\\n \\"ResultUrl\\": \\"https://dashscope-result-sh.oss-cn-shanghai.aliyuncs.com/viapi-video/person_image_cartoonizer/2023-10-25/55798d04-0957-4ab1-accc-0e4d2d01a039/20231025092636774205_styleanime_n2vedxruht.jpg?Expires=1698283596&OSSAccessKeyId=LTAI****************&Signature=ut2kn46Lz%2FRwqJ9jWJ0RBDut12****\\"\\n },\\n \\"Message\\": \\"该调用为异步调用,任务已提交成功,请以requestId的值作为jobId参数调用同类目下GetAsyncJobResult接口查询任务执行状态和结果。\\"\\n}","errorExample":""},{"type":"xml","example":"\\n 59697D68-2A6E-4553-89BD-0FADD07881E8\\n 该调用为异步调用,任务已提交成功,请以requestId的值作为jobId参数调用同类目下GetAsyncJobResult接口查询任务执行状态和结果。\\n","errorExample":""}]',
],
'InteractiveFullSegmentation' => [
'summary' => '全图分割',
'methods' => [
'post',
],
'schemes' => [
'https',
],
'security' => [
[
'AK' => [],
],
],
'deprecated' => false,
'systemTags' => [
'operationType' => 'none',
],
'parameters' => [
[
'name' => 'ImageUrl',
'in' => 'formData',
'schema' => [
'description' => '',
'type' => 'string',
'required' => true,
'example' => 'http://viapi-test.oss-cn-shanghai.aliyuncs.com/viapi-3.0domepic/aigen/xxx01.png',
'isFileTransferUrl' => true,
],
],
[
'name' => 'ReturnFormat',
'in' => 'formData',
'schema' => [
'description' => '',
'type' => 'string',
'required' => false,
'example' => 'PNG',
],
],
],
'responses' => [
200 => [
'schema' => [
'title' => 'Schema of Response',
'description' => 'Schema of Response',
'type' => 'object',
'properties' => [
'RequestId' => [
'title' => 'Id of the request',
'description' => '',
'type' => 'string',
'example' => '7574ee8f-38a3-4b1e-9280-11c33ab46e51',
],
'Data' => [
'description' => '',
'type' => 'object',
'properties' => [
'ResultUrl' => [
'description' => '',
'type' => 'string',
'example' => 'https://dashscope-result-sh.oss-cn-shanghai.aliyuncs.com/viapi-video/person_image_cartoonizer/2023-10-25/55798d04-0957-4ab1-accc-0e4d2d01a039/20231025092636774205_styleanime_n2vedxruht.jpg?Expires=1698283596&OSSAccessKeyId=LTAI4FoLmvQ9urWXgSR****&Signature=ut2kn46Lz%2FRwqJ9jWJ0RBDut12****',
],
],
],
'Message' => [
'description' => '',
'type' => 'string',
'example' => '',
],
],
],
],
],
'staticInfo' => [
'returnType' => 'synchronous',
],
'responseDemo' => '[{"type":"json","example":"{\\n \\"RequestId\\": \\"7574ee8f-38a3-4b1e-9280-11c33ab46e51\\",\\n \\"Data\\": {\\n \\"ResultUrl\\": \\"https://dashscope-result-sh.oss-cn-shanghai.aliyuncs.com/viapi-video/interactive_seg_wanx/2024-02-21/6013dba4-2ce3-4f00-a2e7-14b8d22e81a5/20240221_120038993181_wcmohvxj9a.txt?Expires=1708574441&OSSAccessKeyId=LTAI****************&Signature=GZuvrbw8F3GOv0ykq9al%2FFBdg8****\\"\\n },\\n \\"Message\\": \\"该调用为异步调用,任务已提交成功,请以requestId的值作为jobId参数调用同类目下GetAsyncJobResult接口查询任务执行状态和结果。\\"\\n}","errorExample":""},{"type":"xml","example":"\\n 7574ee8f-38a3-4b1e-9280-11c33ab46e51\\n 该调用为异步调用,任务已提交成功,请以requestId的值作为jobId参数调用同类目下GetAsyncJobResult接口查询任务执行状态和结果。\\n","errorExample":""}]',
],
'InteractiveScribbleSegmentation' => [
'summary' => '交互式涂抹分割',
'methods' => [
'post',
],
'schemes' => [
'https',
],
'security' => [
[
'AK' => [],
],
],
'deprecated' => false,
'systemTags' => [
'operationType' => 'none',
],
'parameters' => [
[
'name' => 'ImageUrl',
'in' => 'formData',
'schema' => [
'description' => '',
'type' => 'string',
'required' => true,
'example' => 'http://viapi-test.oss-cn-shanghai.aliyuncs.com/viapi-3.0domepic/aigen/xxx01.png',
'isFileTransferUrl' => true,
],
],
[
'name' => 'MaskImageUrl',
'in' => 'formData',
'schema' => [
'description' => '',
'type' => 'string',
'required' => false,
'example' => 'http://viapi-test.oss-cn-shanghai.aliyuncs.com/viapi-3.0domepic/aigen/xxx02.png',
'isFileTransferUrl' => true,
],
],
[
'name' => 'PosScribbleImageUrl',
'in' => 'formData',
'schema' => [
'description' => '',
'type' => 'string',
'required' => false,
'example' => 'http://viapi-test.oss-cn-shanghai.aliyuncs.com/viapi-3.0domepic/aigen/xxx03.png',
'isFileTransferUrl' => true,
],
],
[
'name' => 'NegScribbleImageUrl',
'in' => 'formData',
'schema' => [
'description' => '',
'type' => 'string',
'required' => false,
'example' => 'http://viapi-test.oss-cn-shanghai.aliyuncs.com/viapi-3.0domepic/aigen/xxx04.png',
'isFileTransferUrl' => true,
],
],
[
'name' => 'IntegratedMaskUrl',
'in' => 'formData',
'schema' => [
'description' => '',
'type' => 'string',
'required' => false,
'example' => 'http://viapi-test.oss-cn-shanghai.aliyuncs.com/viapi-3.0domepic/aigen/xxx05.png',
'isFileTransferUrl' => true,
],
],
[
'name' => 'ReturnForm',
'in' => 'formData',
'schema' => [
'description' => '',
'type' => 'string',
'required' => false,
'example' => 'only_alpha',
],
],
[
'name' => 'ReturnFormat',
'in' => 'formData',
'schema' => [
'description' => '',
'type' => 'string',
'required' => false,
'example' => 'PNG',
],
],
[
'name' => 'EdgeFeathering',
'in' => 'formData',
'schema' => [
'description' => '',
'type' => 'string',
'required' => false,
'example' => 'true',
],
],
[
'name' => 'PostprocessOption',
'in' => 'formData',
'schema' => [
'description' => '',
'type' => 'string',
'required' => false,
'example' => 'edgerefine',
],
],
],
'responses' => [
200 => [
'schema' => [
'title' => 'Schema of Response',
'description' => 'Schema of Response',
'type' => 'object',
'properties' => [
'RequestId' => [
'title' => 'Id of the request',
'description' => '',
'type' => 'string',
'example' => '7574ee8f-38a3-4b1e-9280-11c33ab46e51',
],
'Data' => [
'description' => '',
'type' => 'object',
'properties' => [
'ResultUrl' => [
'description' => '',
'type' => 'string',
'example' => 'https://dashscope-result-sh.oss-cn-shanghai.aliyuncs.com/viapi-video/person_image_cartoonizer/2023-10-25/55798d04-0957-4ab1-accc-0e4d2d01a039/20231025092636774205_styleanime_n2vedxruht.jpg?Expires=1698283596&OSSAccessKeyId=LTAI4FoLmvQ9urWXgSR****&Signature=ut2kn46Lz%2FRwqJ9jWJ0RBDut12****',
],
],
],
],
],
],
],
'staticInfo' => [
'returnType' => 'synchronous',
],
'responseDemo' => '[{"type":"json","example":"{\\n \\"RequestId\\": \\"7574ee8f-38a3-4b1e-9280-11c33ab46e51\\",\\n \\"Data\\": {\\n \\"ResultUrl\\": \\"https://dashscope-result-sh.oss-cn-shanghai.aliyuncs.com/viapi-video/person_image_cartoonizer/2023-10-25/55798d04-0957-4ab1-accc-0e4d2d01a039/20231025092636774205_styleanime_n2vedxruht.jpg?Expires=1698283596&OSSAccessKeyId=LTAI****************&Signature=ut2kn46Lz%2FRwqJ9jWJ0RBDut12****\\"\\n }\\n}","errorExample":""},{"type":"xml","example":"\\n 7574ee8f-38a3-4b1e-9280-11c33ab46e51\\n \\n https://dashscope-result-sh.oss-cn-shanghai.aliyuncs.com/viapi-video/person_image_cartoonizer/2023-10-25/55798d04-0957-4ab1-accc-0e4d2d01a039/20231025092636774205_styleanime_n2vedxruht.jpg?Expires=1698283596&OSSAccessKeyId=LTAI****************&Signature=ut2kn46Lz%2FRwqJ9jWJ0RBDut12****\\n \\n","errorExample":""}]',
],
],
'endpoints' => [
[
'regionId' => 'cn-shanghai',
'endpoint' => 'aigen.cn-shanghai.aliyuncs.com',
],
],
];