Skip to main content

Midjourney 5.2 - Image Variator

Create variations of existing images using Midjourney's 5.2 model. This feature automatically describes your image and generates multiple variations based on the extracted description.

Image Upload Requirement

Before using this API, you must first upload your image using the Asset API. The imageUrl parameter should contain the file path returned from the Asset API upload response.

📖 See Asset API documentation for details on how to upload images.

Endpoint​

Request Headers​

FieldValue
API-KEY<api-key>
Content-Typeapplication/json

Parameters​

ParameterTypeRequiredDescription
typestringYesFeature type identifier. Must be IMAGE_VARIATOR
imageUrlstringYesPath to uploaded image file (from Asset API)
modestringNoGeneration mode: fast or relax (default: fast)
nnumberNoNumber of variations to generate (default: 4)
isNiji6booleanNoEnable Niji 6 anime style mode (default: false)
aspect_widthnumberNoWidth aspect ratio - use predefined ratios: 1, 2, 3, 4, 5, 7
aspect_heightnumberNoHeight aspect ratio - use predefined ratios: 1, 2, 3, 4, 5, 7
maintainModerationbooleanNoMaintain content moderation (default: true)

Supported Aspect Ratios​

RatioWidthHeightBest For
4:545Portrait, social media posts
2:323Portrait photography
4:747Tall banners, mobile screens
1:111Square images, social media
5:454Landscape, traditional photos
3:232Standard landscape photography
7:474Wide banners, panoramic views

Code Examples​

curl --location 'https://api.1min.ai/api/features' \
--header 'API-KEY: <api-key>' \
--header 'Content-Type: application/json' \
--data '{
"type": "IMAGE_VARIATOR",
"model": "midjourney",
"promptObject": {
"imageUrl": "images/2025_10_26_05_43_42_184_cat.png",
"mode": "fast",
"n": 4,
"isNiji6": false,
"aspect_width": 3,
"aspect_height": 2,
"maintainModeration": true,
}
}'

Interactive Playground​

API Playground

https://api.1min.ai/api/features
Path to the uploaded image file (obtained from Asset API)
Generation speed mode
Number of variations to generate
Enable Niji 6 anime style mode
Choose from supported aspect ratios
Maintain content moderation

Generated cURL Command:

curl -X POST "https://api.1min.ai/api/features" \
-H "API-KEY: <your-api-key>" \
-H "Content-Type: application/json" \
-d '{
"type": "IMAGE_VARIATOR",
"model": "midjourney",
"promptObject": {
"imageUrl": "development/images/sample_image.jpeg",
"mode": "fast",
"n": 4,
"isNiji6": false,
"aspect_width": 3,
"aspect_height": 2,
"maintainModeration": true
}
}'

Response Format​

{
"aiRecord": {
"uuid": "ff5c12ce-7c3e-43e8-8995-d6e6fc0bdea9",
"userId": "c937fbcc-fa8f-4565-a440-c4d87f56fcb2",
"teamId": "a4e176b2-dabb-451e-9c58-62b451fa9630",
"teamUser": {
"teamId": "a4e176b2-dabb-451e-9c58-62b451fa9630",
"userId": "c937fbcc-fa8f-4565-a440-c4d87f56fcb2",
"userName": "John Doe",
"userAvatar": "https://lh3.googleusercontent.com/a/ACg8ocLqgsNsHRfmWF9d-E1RvJetVsEzxNOsOg-NXWNTpMxLDPJbwELI=s96-c",
"status": "ACTIVE",
"role": "ADMIN",
"creditLimit": 100000000,
"usedCredit": 27717459,
"createdAt": "2025-10-20T04:13:40.847Z",
"createdBy": "SYSTEM",
"updatedAt": "2025-10-22T09:26:17.394Z",
"updatedBy": "SYSTEM"
},
"model": "midjourney",
"type": "IMAGE_VARIATOR",
"metadata": null,
"rating": null,
"feedback": null,
"conversationId": null,
"status": "SUCCESS",
"createdAt": "2025-10-22T10:04:01.104Z",
"aiRecordDetail": {
"promptObject": {
"n": 4,
"mode": "fast",
"isNiji6": false,
"imageUrl": "images/2025_10_22_10_02_16_603_cat.png",
"aspect_width": 1,
"aspect_height": 1,
"maintainModeration": true
},
"resultObject": [
"development/images/2025_10_22_17_05_21_866_858917.png",
"development/images/2025_10_22_17_05_21_865_577469.png",
"development/images/2025_10_22_17_05_21_867_114665.png",
"development/images/2025_10_22_17_05_21_867_140203.png"
],
"responseObject": {}
},
"additionalData": null,
"temporaryUrl": "https://s3.us-east-1.amazonaws.com/asset.1min.ai/development/images/2025_10_22_17_05_21_866_858917.png?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Content-Sha256=UNSIGNED-PAYLOAD&X-Amz-Credential=AKIAVRUVQEFIHSKAXGE7%2F20251022%2Fus-east-1%2Fs3%2Faws4_request&X-Amz-Date=20251022T100528Z&X-Amz-Expires=604800&X-Amz-Signature=523863193c0e2214a54505249b60430f75cb64f82c76c870a1928f6ed188adc1&X-Amz-SignedHeaders=host&x-amz-checksum-mode=ENABLED&x-id=GetObject"
}
}

Use Cases​

  • Creative Exploration: Generate multiple artistic interpretations of your images
  • Content Creation: Create variations for social media, marketing materials
  • Design Iteration: Explore different visual directions for your projects

Tips for Best Results​

  1. Aspect Ratios: Use supported ratios from the list above:
    • 1:1 - Perfect for Instagram posts and profile pictures
    • 4:5 - Ideal for portrait-oriented social media content
    • 3:2 - Standard landscape photography ratio
    • 7:4 - Great for wide banners and headers
  2. Generation Mode: Choose 'fast' for quick iterations or 'relax' for best quality
  3. Niji 6 Mode: Enable for anime/manga style variations
  4. Variation Count: Adjust 'n' parameter to generate 1-10 variations as needed

Notes​

  • Midjourney 5.2 automatically generates 4 variations per request
  • The service first describes your image, then uses that description to create variations