Skip to main content
POST
/
v3
/
async
/
mj-variation
Midjourney Variation
curl --request POST \
  --url https://api.myrouter.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 a previously generated image, creating variant images in different styles. 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

image_no
integer
required
Image number, specifying which image to apply variation to.Range: 0~3
task_id
string
required
The unique identifier of the original image generation task.
remix_prompt
string
A new prompt to guide the direction of the image variation.Length limit: 1-8192 characters.
type
integer
required
Variation type, controlling the intensity of the variation.Range: 0~1
  • 0: subtle variation
  • 1: strong variation

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.