# Midjourney/任务提交

# POST 提交Blend任务

POST /mj/submit/blend

Body 请求参数

{
  "base64Array": [
    "data:image/png;base64,xxx1",
    "data:image/png;base64,xxx2"
  ],
  "dimensions": "SQUARE",
  "notifyHook": "string",
  "state": "string"
}

# 请求参数

名称 位置 类型 必选 说明
Authorization header string none
body body any none

返回示例

200 Response

{
  "code": 1,
  "description": "提交成功",
  "properties": {},
  "result": 1320098173412546
}

# 返回结果

状态码 状态码含义 说明 数据模型
200 OK (opens new window) OK Inline
201 Created (opens new window) Created Inline
401 Unauthorized (opens new window) Unauthorized Inline
403 Forbidden (opens new window) Forbidden Inline
404 Not Found (opens new window) Not Found Inline

# 返回数据结构

# POST 绘图变化

POST /mj/submit/change

Body 请求参数

{
  "action": "UPSCALE",
  "index": 1,
  "notifyHook": "string",
  "state": "string",
  "taskId": "1320098173412546"
}

# 请求参数

名称 位置 类型 必选 说明
Authorization header string none
body body any none

返回示例

200 Response

{
  "code": 1,
  "description": "提交成功",
  "properties": {},
  "result": 1320098173412546
}

# 返回结果

状态码 状态码含义 说明 数据模型
200 OK (opens new window) OK Inline
201 Created (opens new window) Created Inline
401 Unauthorized (opens new window) Unauthorized Inline
403 Forbidden (opens new window) Forbidden Inline
404 Not Found (opens new window) Not Found Inline

# 返回数据结构

# POST 提交Describe任务

POST /mj/submit/describe

Body 请求参数

{
  "base64": "data:image/png;base64,xxx",
  "notifyHook": "string",
  "state": "string"
}

# 请求参数

名称 位置 类型 必选 说明
Authorization header string none
body body any none

返回示例

200 Response

{
  "code": 1,
  "description": "提交成功",
  "properties": {},
  "result": 1320098173412546
}

# 返回结果

状态码 状态码含义 说明 数据模型
200 OK (opens new window) OK Inline
201 Created (opens new window) Created Inline
401 Unauthorized (opens new window) Unauthorized Inline
403 Forbidden (opens new window) Forbidden Inline
404 Not Found (opens new window) Not Found Inline

# 返回数据结构

# POST 提交Imagine任务

POST /mj/submit/imagine

Body 请求参数

{
  "prompt": "cat",
  "notifyHook": "",
  "state": "",
  "base64Array": []
}

# 请求参数

名称 位置 类型 必选 说明
Authorization header string none
body body any none

返回示例

200 Response

{
  "code": 1,
  "description": "提交成功",
  "properties": {},
  "result": 1320098173412546
}

# 返回结果

状态码 状态码含义 说明 数据模型
200 OK (opens new window) OK Inline
201 Created (opens new window) Created Inline
401 Unauthorized (opens new window) Unauthorized Inline
403 Forbidden (opens new window) Forbidden Inline
404 Not Found (opens new window) Not Found Inline

# 返回数据结构

# POST 绘图变化-simple

POST /mj/submit/simple-change

Body 请求参数

{
  "content": "1320098173412546 U2",
  "notifyHook": "string",
  "state": "string"
}

# 请求参数

名称 位置 类型 必选 说明
Authorization header string none
body body any none

返回示例

200 Response

{
  "code": 1,
  "description": "提交成功",
  "properties": {},
  "result": 1320098173412546
}

# 返回结果

状态码 状态码含义 说明 数据模型
200 OK (opens new window) OK Inline
201 Created (opens new window) Created Inline
401 Unauthorized (opens new window) Unauthorized Inline
403 Forbidden (opens new window) Forbidden Inline
404 Not Found (opens new window) Not Found Inline

# 返回数据结构