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.
Endpoint
Request Body
The request must include the following parameters:
Parameter | Type | Required | Description |
---|---|---|---|
type | string | Yes | Feature type identifier. Must be IMAGE_VARIATOR |
model | string | Yes | AI model identifier. Must be midjourney |
promptObject | object | Yes | Feature-specific parameters |
Prompt Object Parameters
Parameter | Type | Required | Description |
---|---|---|---|
imageUrl | string | Yes | Path to the image for variation |
aspect_width | number | No | Width aspect ratio (default: 1) |
aspect_height | number | No | Height aspect ratio (default: 1) |
no | string | No | Negative prompt - elements to exclude from the image |
image_weight | number | No | Image prompt weight (0.5-2, default: 1) |
seed | number | No | Random seed for reproducible results |
tile | boolean | No | Create seamless patterns |
stylize | number | No | Stylization strength (0-1000, default: 100) |
chaos | number | No | Variation amount (0-100, default: 0) |
weird | number | No | Unconventional aesthetics level (0-3000, default: 0) |
Example Request
- JavaScript
- cURL
- Python
fetch('https://api.1min.ai/api/features', {
method: 'POST',
headers: {
'Content-Type': 'application/json',
'API-KEY': 'YOUR_API_KEY'
},
body: JSON.stringify({
type: 'IMAGE_VARIATOR',
model: 'midjourney',
promptObject: {
imageUrl: 'development/images/2025_02_14_17_41_01_211_images.jpeg',
aspect_width: 16,
aspect_height: 9,
stylize: 200,
chaos: 20
}
})
})
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": "development/images/2025_02_14_17_41_01_211_images.jpeg",
"aspect_width": 16,
"aspect_height": 9,
"stylize": 200,
"chaos": 20
}
}'
import requests
url = "https://api.1min.ai/api/features"
headers = {
"Content-Type": "application/json",
"API-KEY": "YOUR_API_KEY"
}
data = {
"type": "IMAGE_VARIATOR",
"model": "midjourney",
"promptObject": {
"imageUrl": "development/images/2025_02_14_17_41_01_211_images.jpeg",
"aspect_width": 16,
"aspect_height": 9,
"stylize": 200,
"chaos": 20
}
}
response = requests.post(url, headers=headers, json=data)
Responses
Success Response (200)
Successful response contains the generated image variation data. The service will:
- Analyze your input image to extract a description
- Use the description to generate 4 image variations
- Return the variation images
{
"success": true,
"data": {
"resultObject": [
"path/to/variation1.png",
"path/to/variation2.png",
"path/to/variation3.png",
"path/to/variation4.png"
]
}
}
Notes
- Midjourney 5.2 automatically generates 4 variations per request
- The service first describes your image, then uses that description to create variations
- Higher
stylize
values create more artistic interpretations - Use
chaos
to increase variation between the generated images - The
weird
parameter can produce more experimental and unconventional results