Skip to main content
POST
/
mj
/
submit
/
modal
cURL
curl --request POST \
  --url https://proxy.innk.cc/mj/submit/modal \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "task_id": "<string>",
  "prompt": "<string>",
  "maskBase64": "<string>",
  "noStorage": false
}
'
{
  "code": 123,
  "description": "<string>",
  "result": "<string>",
  "properties": {}
}
in execution/mj/submit/actionAfter the interface, some tasks will returncode:21
{
"code":21,
"description":"Waiting for window confirm",
"result": "17381923542354"
}
At this time, you need to call this interface to continue submitting tasks.

Authorizations

Authorization
string
header
required

The authentication header format is Bearer <API_KEY>, where <API_KEY> is your API token.

Body

application/json
task_id
string
required

/mj/submit/action Task ID returned by the interface

prompt
string

prompt word

maskBase64
string

Must be provided when partially redrawing Inpaint. Base64 encoding of the mask image. Black is the unmodified area and white is the modified area.

noStorage
boolean
default:false

Return to original link

Response

200 - application/json

Midjourney action response

code
integer<int32>
required

Status code: 1 (submission successful), 21 (window waiting), 22 (queuing), 23 (queue full), other (error)

description
string
required

describe

result
string
required

Task ID

properties
object

extension fields