跳转到主要内容
POST
/
mj
/
submit
/
action
cURL
curl --request POST \
  --url https://proxy.innk.cc/mj/submit/action \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "customId": "<string>",
  "taskId": "<string>"
}
'
{
  "code": 123,
  "description": "<string>",
  "result": "<string>",
  "properties": {}
}
查询任务后,其中的 buttons 参数中,包含了该任务可执行的子任务按钮,通过本接口继续调用。

授权

Authorization
string
header
必填

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

请求体

application/json
customId
string
必填

动作标识

示例:

"MJ::JOB::upsample::2::3dbbd469-36af-4a0f-8f02-df6c579e7011"

taskId
string
必填

任务ID

示例:

"14001934816969359"

enableRemix
boolean
默认值:false

是否使用remix模式,部分场景可重新修改提示词

notifyHook
string

回调地址

state
string

自定义参数

noStorage
boolean

返回原始图片链接

响应

200 - application/json

Midjourney action response

code
integer<int32>
必填

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

示例:

1

description
string
必填

描述

示例:

"提交成功"

result
string
必填

任务ID

示例:

1320098173412546

properties
object

扩展字段