混合图片
开发中
POST
/api/v2/mdj/blend
请求参数
Header 参数
Authorization
string
管理后台获取的密钥
示例值:
Bearer 1333_zrT4KITp20HcxxxxxxxxxxRD2C513FK40Pvq
Body 参数application/json
mode
string
可选
imgUrlArray
array[string]
必需
aspectRatio
string
必需
notifyHook
string
可选
示例
{
"notifyHook": "",
"imgUrlArray": [
"https://reserve-clear-1256181000.cos.ap-shanghai.myqcloud.com/img/cdn/clear-20250605/f7eaa99498eb7c7aca0a7475a6137b3e.png",
"https://reserve-clear-1256181000.cos.ap-shanghai.myqcloud.com/img/cdn/clear-20250605/7ead651f61bb7bd186adeb61f5699657.png"
],
"aspectRatio": "3:4"
}
示例代码
Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
请求示例请求示例
Shell
JavaScript
Java
Swift
curl --location --request POST 'https://api.aihuihua.com/api/v2/mdj/blend' \
--header 'Authorization: Bearer 1333_zrT4KITp20HcxxxxxxxxxxRD2C513FK40Pvq' \
--header 'Content-Type: application/json' \
--data-raw '{
"notifyHook": "",
"imgUrlArray": [
"https://reserve-clear-1256181000.cos.ap-shanghai.myqcloud.com/img/cdn/clear-20250605/f7eaa99498eb7c7aca0a7475a6137b3e.png",
"https://reserve-clear-1256181000.cos.ap-shanghai.myqcloud.com/img/cdn/clear-20250605/7ead651f61bb7bd186adeb61f5699657.png"
],
"aspectRatio": "3:4"
}'
返回响应
🟢200成功
application/json
Body
code
string
必需
description
string
描述
result
string
必需
示例
{
"code": 1,
"description": "Submit success",
"result": "234"
}