主题
提交Blend任务
POST
https://az.gptplus5.com/mj/submit/blend
官方文档:https://docs.midjourney.com/hc/en-us/articles/32635189884557-Blend-Images-on-Discord
请求参数
Authorization
在 Header 添加参数Authorization,其值为在 Bearer 之后拼接 Token
示例:Authorization: Bearer ********************
Header 参数
| 参数名 | 类型 | 必需 | 说明 | 示例 |
|---|---|---|---|---|
Authorization | string | 可选 | Bearer {{YOUR_API_KEY}} |
Body 参数 (application/json)
| 参数名 | 类型 | 必需 | 说明 |
|---|---|---|---|
botType | enum<string> | 必需 | bot类型,mj(默认)或niji |
base64Array | string | 可选 | 图片base64数组 |
dimensions | enum<string> | 可选 | 比例: PORTRAIT(2:3); SQUARE(1:1); LANDSCAPE(3:2) |
quality | string | 可选 | 将生成的图像的质量。hd创建具有更精细细节和更高一致性的图像。此参数仅支持dall-e-3. |
notifyHook | string | 可选 | 回调地址, 为空时使用全局notifyHook |
state | string | 可选 |
请求示例
json
{
"botType": "MID_JOURNEY",
"base64Array": [
"data:image/png;base64,xxx1",
"data:image/png;base64,xxx2"
],
"dimensions": "SQUARE",
"notifyHook": "",
"state": ""
}cURL 示例
bash
curl --location --request POST 'https://az.gptplus5.com/mj/submit/blend' \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data-raw '{
"botType": "MID_JOURNEY",
"base64Array": [
"data:image/png;base64,xxx1",
"data:image/png;base64,xxx2"
],
"dimensions": "SQUARE",
"notifyHook": "",
"state": ""
}'返回响应
🟢200Create image
响应 Body
| 参数名 | 类型 | 必需 | 说明 |
|---|---|---|---|
created | integer | 必需 | |
data | array[object] | 必需 | |
└ url | string | 必需 |
响应示例
json
{
"created": 1589478378,
"data": [
{
"url": "https://..."
},
{
"url": "https://..."
}
]
}