Skip to main content
POST
/
midjourney
/
v1
/
submit-jobs
cURL
curl --request POST \
  --url https://api.midjourney-api.com/midjourney/v1/submit-jobs \
  --header 'API-KEY: <api-key>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "prompt": "a boy play with a girl --niji 7",
  "mode": "fast",
  "hookUrl": "https://api.example.com/webhook",
  "timeout": 600
}
'
{
  "status": 0,
  "data": {
    "taskId": "MtAd7mCuc4YqK_a1iAQSW"
  },
  "message": "success"
}

Documentation Index

Fetch the complete documentation index at: https://docs.midjourney-api.com/llms.txt

Use this file to discover all available pages before exploring further.

Authorizations

API-KEY
string
header
required

You can obtain your API key from the Midjourney-api Dashboard.

Body

application/json
prompt
string
required

Prompt

Example:

"a boy play with a girl --niji 7"

mode
enum<string>

Speed mode,default fast

Available options:
relaxed,
fast
Example:

"fast"

hookUrl
string

Callback notification URL

Example:

"https://api.example.com/webhook"

timeout
integer

Task timeout unit: seconds, range 300 - 1200, default 600

Example:

600

Response

Request successful

status
integer
required

Status code, 0: success; 1001: quota not enough,1002 concurrency limit, max 10

Example:

0

data
object
required
message
string

Message

Example:

"success"