Skip to main content
POST
/
v3
/
async
/
mj-txt2img
Midjourney Text-to-Image
curl --request POST \
  --url https://api.myrouter.ai/v3/async/mj-txt2img \
  --header 'Authorization: <authorization>' \
  --header 'Content-Type: <content-type>' \
  --data '
{
  "text": "<string>"
}
'
{
  "task_id": "<string>"
}
Generate high-quality images from text descriptions using the Midjourney image generation model. This API uses async processing; the client needs to use the task_id to query the final result.

Request Headers

Content-Type
string
required
Enum: application/json
Authorization
string
required
Bearer authentication format: Bearer {{API Key}}.

Request Body

text
string
required
Text information describing the desired image content.Length limit: 1-8192 characters.

Response

task_id
string
required
The task_id of the async task. Use the task_id to call the Get Async Task Result API to retrieve the generated result.