Skip to main content
POST
cURL

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"