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 30

Example:

0

data
object
required
message
string

Message

Example:

"success"