POST
/
api
/
v1
/
mj
/
generateVary
Vary
curl --request POST \
  --url https://api.kie.ai/api/v1/mj/generateVary \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "taskId": "96a5****67tr",
  "imageIndex": 1,
  "waterMark": "my_watermark",
  "callBackUrl": "https://example.com/callback"
}'
{
  "code": 200,
  "msg": "success",
  "data": {
    "taskId": "2182668588ae82da0bc553c07c48ca38"
  }
}

Usage Guide

  • This endpoint is used to create variations of Midjourney generated images
  • Requires providing the taskId from generation task and the image index to vary
  • Supports adding watermarks and callback notifications
  • Enhances image clarity and provides style simulation

Developer Notes

  • imageIndex range is 1-4, corresponding to the 4 generated images
  • Varied images have enhanced clarity and style simulation
  • Recommended to use callback URL in production environments for result notifications

Authorizations

Authorization
string
header
required

All APIs require authentication via Bearer Token.

Get API Key:

  1. Visit API Key Management Page to get your API Key

Usage: Add to request header: Authorization: Bearer YOUR_API_KEY

Note:

  • Keep your API Key secure and do not share it with others
  • If you suspect your API Key has been compromised, reset it immediately in the management page

Body

application/json

Response

200
application/json

Request successful

The response is of type object.