Skip to main content
POST
Midjourney Variation
Use the Midjourney Variation feature to apply subtle or strong transformations to generated images, creating variant images in different styles. This API uses asynchronous processing, so the client needs to query the final generation result using the task_id.

Request Headers

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

Request Body

integer
required
Image number, used to specify the image to vary.Value range: 0~3
string
required
The unique identifier of the original image generation task.
string
A new prompt used to guide the direction of the image variation.Length limit: 1-8192 characters.
integer
required
Transformation type, controlling the strength of the variation.Value range: 0~1
  • 0: subtle transformation
  • 1: strong transformation

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 generation result.