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
All APIs require authentication via Bearer Token.
Get API Key:
- 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
Task ID returned from MJ generation task
Example:
"2584469c38e43c173dcae9e60663f645"
Image index, range (0, 1, 2, 3) for the 4 generated images
Required range:
0 <= x <= 3Example:
0
Watermark identifier
Example:
"watermark"
Callback URL to receive task completion updates
📖 Detailed Callback Mechanism: See Midjourney Image Generation Callbacks for callback format, status codes, best practices, and troubleshooting.
Example:
"https://bd86f681ddfb.ngrok-free.app/api/v1/mj/test"
Response
Request successful
Response status code
- 200: Success - Request has been processed successfully
- 400: Bad Request - Invalid request parameters
- 401: Unauthorized - Authentication credentials are missing or invalid
- 402: Insufficient Credits - Account does not have enough credits to perform the operation
- 404: Not Found - The requested resource or endpoint does not exist
- 422: Validation Error - The request parameters failed validation checks
- 429: Rate Limited - Request limit has been exceeded for this resource
- 455: Service Unavailable - System is currently undergoing maintenance
- 500: Server Error - An unexpected error occurred while processing the request
- 501: Generation Failed - Image generation task failed
- 505: Feature Disabled - The requested feature is currently disabled
Available options:
200, 400, 401, 402, 404, 422, 429, 455, 500, 501, 505 Response message
Example:
"success"
