Skip to main content
POST
/
midjourney
/
v1
/
imagine
cURL
curl --request POST \
  --url https://api.ttapi.io/midjourney/v1/imagine \
  --header 'Content-Type: application/json' \
  --header 'TT-API-KEY: <api-key>' \
  --data '
{
  "prompt": "A cute cat",
  "mode": "fast",
  "timeout": "300",
  "hookUrl": "<string>"
}
'
{
  "status": "SUCCESS",
  "message": "success",
  "data": {
    "job_id": "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx"
  }
}

Documentation Index

Fetch the complete documentation index at: https://docs.ttapi.io/llms.txt

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

Start here if you need the main endpoint for Midjourney API image generation. For the complete endpoint directory, workflow guidance, and related links, see the Midjourney API overview.

Authorizations

TT-API-KEY
string
header
required

You can obtain your API key from the TTAPI Dashboard.

Body

application/json
prompt
string
required

Prompt

Example:

"A cute cat"

mode
enum<string>
required

Speed mode

Available options:
relax,
fast,
turbo
Example:

"fast"

timeout
integer

Task timeout, unit: seconds, range 300 - 1200

Example:

"300"

hookUrl
string

Callback notification URL

Response

Request successful

status
string
required
Example:

"SUCCESS"

message
string
required
Example:

"success"

data
object
required
Example:
{
"job_id": "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx"
}
Last modified on March 23, 2026