Skip to main content
POST
Midjourney Text-to-Image
Use the Midjourney image generation model to quickly generate high-quality images from text descriptions. This API uses asynchronous processing, so the client needs to query the final generated result using the task_id.

Request Headers

string
required
Enum value: application/json
string
required
Bearer authentication format: Bearer {{API key}}.

Request Body

string
required
Text information used to describe the desired image content.Length limit: 1-8192 characters.

Response Parameters

string
required
The task_id of the asynchronous task. You should use this task_id to request the Get Task Result API to obtain the generated result.