Skip to main content
POST
/
v3
/
async
/
mj-variation
Midjourney Variation
curl --request POST \
  --url https://api.highwayapi.ai/v3/async/mj-variation \
  --header 'Authorization: <authorization>' \
  --header 'Content-Type: <content-type>' \
  --data '
{
  "image_no": 123,
  "task_id": "<string>",
  "remix_prompt": "<string>",
  "type": 123
}
'
{
  "task_id": "<string>"
}
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

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

Request Body

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

Response Parameters

task_id
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.