POST
/
api
/
v1
/
mj
/
generateUpscale
Upscale
curl --request POST \
  --url https://api.kie.ai/api/v1/mj/generateUpscale \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "taskId": "2584469c38e43c173dcae9e60663f645",
  "imageIndex": 0,
  "waterMark": "watermark",
  "callBackUrl": "https://bd86f681ddfb.ngrok-free.app/api/v1/mj/test"
}'
{
  "code": 200,
  "msg": "success",
  "data": {
    "taskId": "mj_upscale_abcdef123456"
  }
}

Usage Guide

  • This endpoint is used to upscale Midjourney generated images
  • Requires providing the taskId from generation task and the image index to upscale
  • Supports adding watermarks and callback notifications

Developer Notes

  • imageIndex range is 0-3, corresponding to the 4 generated images
  • Upscaled images have higher quality, suitable for printing or high-resolution use
  • 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.