Midjourney API 中文版
  1. 任务提交
Midjourney API 中文版
  • 简介
  • 账号管理
    • 创建账号
      POST
    • 分页查询账号
      POST
    • 执行账号相关动作
      POST
    • 更改mj绘图版本
      POST
    • 删除账号
      DELETE
    • 指定ID获取账号
      GET
    • 同步账号信息
      POST
    • 更新账号并重连
      PUT
  • 任务提交
    • 执行动作
      POST
    • 提交Blend任务
      POST
    • 提交Describe任务
      POST
    • 提交Imagine任务
      POST
    • 提交Modal
      POST
    • 提交Shorten任务
      POST
  • 任务查询
    • 查询所有任务
      GET
    • 根据ID列表查询任务
      POST
    • 分页查询任务
      POST
    • 查询任务队列
      GET
    • 取消任务
      POST
    • 指定ID获取任务
      GET
    • 获取任务图片的seed
      GET
  1. 任务提交

提交Blend任务

POST
/mj/submit/blend
任务提交

请求参数

Body 参数application/json
base64Array
array[string]
必需
图片base64数组
示例值:
["data:image/png;base64,xxx1","data:image/png;base64,xxx2"]
botType
enum<string> 
可选
bot类型,mj(默认)或niji
枚举值:
MID_JOURNEYNIJI_JOURNEY
示例值:
MID_JOURNEY
dimensions
enum<string> 
可选
比例: PORTRAIT(2:3); SQUARE(1:1); LANDSCAPE(3:2)
枚举值:
PORTRAITSQUARELANDSCAPE
示例值:
SQUARE
instanceId
string 
可选
账号实例ID,指定账号执行任务,为空时不过滤
modes
array[string]
可选
账号模式,筛选账号执行任务,为空时不过滤
枚举值:
RELAXFASTTURBO
notifyHook
string 
可选
回调地址, 为空时使用全局notifyHook
remix
boolean 
可选
账号remix,筛选账号执行任务,为空时不过滤
remixAutoConsidered
boolean 
可选
账号过滤时,remix自动提交 视为 remix=false
state
string 
自定义参数
可选
示例
{
    "base64Array": [
        "data:image/png;base64,xxx1",
        "data:image/png;base64,xxx2"
    ],
    "botType": "MID_JOURNEY",
    "dimensions": "PORTRAIT",
    "instanceId": "string",
    "modes": [
        "RELAX"
    ],
    "notifyHook": "string",
    "remix": true,
    "remixAutoConsidered": true,
    "state": "string"
}

示例代码

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.aigcbest.top/mj/submit/blend' \
--header 'Content-Type: application/json' \
--data-raw '{
    "base64Array": [
        "data:image/png;base64,xxx1",
        "data:image/png;base64,xxx2"
    ],
    "botType": "MID_JOURNEY",
    "dimensions": "PORTRAIT",
    "instanceId": "string",
    "modes": [
        "RELAX"
    ],
    "notifyHook": "string",
    "remix": true,
    "remixAutoConsidered": true,
    "state": "string"
}'

返回响应

🟢200OK
application/json
Body
code
integer <int32>
必需
状态码: 1(提交成功), 22(排队中), other(错误)
示例值:
1
description
string 
描述
必需
示例值:
提交成功
properties
object 
扩展字段
可选
result
string 
任务ID
可选
示例值:
1320098173412546
示例
{
    "code": 1,
    "description": "提交成功",
    "properties": {},
    "result": 1320098173412546
}
🟢201Created
🟠401Unauthorized
🟠403Forbidden
🟠404Not Found
上一页
执行动作
下一页
提交Describe任务
Built with