跳转到主要内容
POST
/
mj
/
submit
/
blend
cURL
curl --request POST \
  --url https://proxy.innk.cc/mj/submit/blend \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "base64Array": [
    "<string>"
  ]
}
'
{
  "code": 123,
  "description": "<string>",
  "result": "<string>",
  "properties": {}
}

授权

Authorization
string
header
必填

身份验证标头格式为 Bearer <API_KEY>,其中 <API_KEY> 是您的API令牌。

请求体

application/json
base64Array
string[]
必填

图片base64数组

示例:
[
"data:image/png;base64,xxx1",
"data:image/png;base64,xxx2"
]
botType
enum<string>

bot类型,mj(默认)或niji

可用选项:
MID_JOURNEY,
NIJI_JOURNEY
示例:

"MID_JOURNEY"

dimensions
enum<string>

比例: PORTRAIT(2:3); SQUARE(1:1); LANDSCAPE(3:2)

可用选项:
PORTRAIT,
SQUARE,
LANDSCAPE
示例:

"SQUARE"

notifyHook
string

回调地址

state
string

自定义参数

响应

200 - application/json

Midjourney blend response

code
integer<int32>
必填

状态码: 1(提交成功), 21(窗口等待), 22(排队中), 23(队列满), other(错误)

示例:

1

description
string
必填

描述

示例:

"提交成功"

result
string
必填

任务ID

示例:

1320098173412546

properties
object

扩展字段