Skip to main content

Midjourney 5.2 - Image Generator

Generate stunning, artistic images from text prompts using Midjourney's creative AI. Known for its exceptional artistic interpretation and unique aesthetic capabilities, Midjourney 5.2 excels at creating imaginative, stylized artwork with rich detail and creative flair.

Endpoint

Request Headers

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

Parameters

ParameterTypeRequiredDescription
typestringYesFeature type identifier. Must be IMAGE_GENERATOR
modelstringYesAI model identifier. Must be midjourney
promptObjectobjectYesConfiguration object containing all generation parameters

Prompt Object Parameters

ParameterTypeRequiredDescriptionDefault
promptstringYesText description of the image to generate-
modestringNoGeneration speed modefast
nnumberNoNumber of images to generate (fixed at 4)4
negativePromptstringNoText describing what to avoid in the image-
isNiji6booleanNoEnable Niji 6 anime style modefalse
maintainModerationbooleanNoEnable 1minAI content moderationtrue
aspect_widthnumberNoWidth aspect ratio (1-7)1
aspect_heightnumberNoHeight aspect ratio (1-7)1
nostringNoElements to exclude from the image-
image_weightnumberNoImage prompt weight (0.5-2.0)1
seednumberNoRandom seed for reproducibility (0-4294967295)Random
tilebooleanNoGenerate seamless tile patternsfalse
stylizenumberNoStylization strength (0-1000)100
chaosnumberNoVariation in results (0-100)0
weirdnumberNoExperimental aesthetic (0-3000)0
character_referencestringNoCharacter reference image asset path-
style_referencestringNoStyle reference image asset path-

Generation Modes

ModeDescriptionCostGeneration Time
fastHigh priority generation2x cost< 1 minute
relaxLower priority generation1x cost2-10 minutes

Supported Aspect Ratios

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

Midjourney 5.2 supports aspect ratios up to 2:1 and 1:2 maximum. Ratios greater than 2:1 in either direction are not accepted.

Style Parameters

ParameterRangeDescription
Stylize0-1000Controls artistic interpretation. Higher values = more stylized
Chaos0-100Adds variation and unpredictability to results
Weird0-3000Experimental aesthetic parameter for unusual results

Code Examples

curl --location 'https://api.1min.ai/api/features' \
--header 'API-KEY: <api-key>' \
--header 'Content-Type: application/json' \
--data '{
"type": "IMAGE_GENERATOR",
"model": "midjourney",
"promptObject": {
"prompt": "A mystical forest with glowing mushrooms and fairy lights, ethereal atmosphere",
"mode": "fast",
"n": 4,
"isNiji6": false,
"aspect_width": 3,
"aspect_height": 2,
"stylize": 150,
"chaos": 20,
"maintainModeration": true
}
}'

Interactive Playground

API Playground

https://api.1min.ai/api/features
Describe the image you want to generate
Generation speed and cost
Describe what you want to avoid in the image
Enable anime/manga aesthetic
Choose from supported aspect ratios
Artistic interpretation strength (0-1000)
Variation and unpredictability (0-100)
Experimental aesthetic (0-3000)
Image prompt weight relative to text (0.5-2.0)
Random seed for reproducibility (0-4294967295)
Generate seamless tile patterns
Character reference image asset path for consistency
Style reference image asset path to influence aesthetic
1minAI content moderation to prevent policy violations

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_GENERATOR",
"model": "midjourney",
"promptObject": {
"prompt": "A mystical forest with glowing mushrooms and fairy lights, ethereal atmosphere",
"mode": "fast",
"n": 4,
"isNiji6": false,
"aspect_width": 1,
"aspect_height": 1,
"stylize": 100,
"chaos": 0,
"maintainModeration": true
}
}'

Response Format

{
"aiRecord": {
"uuid": "a1b2c3d4-e5f6-7890-abcd-ef1234567890",
"userId": "user-12345",
"teamId": "team-67890",
"teamUser": {
"teamId": "team-67890",
"userId": "user-12345",
"userName": "John Doe",
"userAvatar": "https://example.com/avatar.jpg",
"status": "ACTIVE",
"role": "ADMIN",
"creditLimit": 100000000,
"usedCredit": 15000,
"createdAt": "2025-01-01T00:00:00.000Z",
"createdBy": "SYSTEM",
"updatedAt": "2025-01-15T10:30:00.000Z",
"updatedBy": "SYSTEM"
},
"model": "midjourney",
"type": "IMAGE_GENERATOR",
"metadata": null,
"rating": null,
"feedback": null,
"conversationId": null,
"status": "SUCCESS",
"createdAt": "2025-01-15T10:30:00.000Z",
"aiRecordDetail": {
"promptObject": {
"prompt": "A mystical forest with glowing mushrooms and fairy lights, ethereal atmosphere",
"mode": "fast",
"n": 4,
"isNiji6": false,
"aspect_width": 3,
"aspect_height": 2,
"stylize": 150,
"chaos": 20,
"maintainModeration": true
},
"resultObject": [
"development/images/2025_01_15_10_30_15_001_mystical_forest.png",
"development/images/2025_01_15_10_30_15_002_mystical_forest.png",
"development/images/2025_01_15_10_30_15_003_mystical_forest.png",
"development/images/2025_01_15_10_30_15_004_mystical_forest.png"
],
"responseObject": {}
},
"additionalData": null,
"temporaryUrl": "https://s3.us-east-1.amazonaws.com/asset.1min.ai/development/images/2025_01_15_10_30_15_001_mystical_forest.png?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Content-Sha256=UNSIGNED-PAYLOAD&X-Amz-Credential=EXAMPLE_CREDENTIAL&X-Amz-Date=20250115T103000Z&X-Amz-Expires=604800&X-Amz-Signature=example_signature&X-Amz-SignedHeaders=host&x-amz-checksum-mode=ENABLED&x-id=GetObject"
}
}

Use Cases

  • Artistic Creation: Generate unique artwork and illustrations
  • Concept Art: Create visual concepts for games, films, and projects
  • Creative Design: Produce imaginative designs for various media
  • Social Media Content: Generate engaging visual content for posts
  • Marketing Materials: Create eye-catching visuals for campaigns

Tips for Best Results

  1. Descriptive Prompts: Be specific and creative with your descriptions

    • Good: "A steampunk airship sailing through cotton candy clouds at sunset, brass fittings gleaming, Victorian aesthetic"
    • Avoid: "An airship"
  2. Artistic Style: Midjourney excels at artistic and creative interpretations

    • Perfect for fantasy, surreal, and artistic content
    • Great for stylized and imaginative imagery
  3. Mode Selection:

    • Fast: Use for quick iterations and immediate results
    • Relax: Use when you have time and want to save credits
  4. Aspect Ratios: Choose based on your intended use

    • 1:1: Perfect for social media posts
    • 3:2: Great for landscape artwork
    • 2:3: Ideal for portrait compositions
  5. Style Parameters:

    • Stylize 0-50: More literal interpretation
    • Stylize 100-250: Balanced artistic interpretation (recommended)
    • Stylize 500-1000: Highly stylized and artistic
    • Chaos 0-25: Slight variations
    • Chaos 50-100: Significant unpredictability
  6. Niji 6 Mode: Enable for anime/manga style content

    • Specializes in Japanese animation aesthetics
    • Better character consistency and anime-specific features

Advanced Features

Reference Images

  • Character Reference: Upload character images to maintain consistency across generations
  • Style Reference: Use style reference images to influence the aesthetic

Content Moderation

  • 1minAI Moderation: Recommended to prevent Midjourney account suspension
  • Bypass at Own Risk: Paid users can disable moderation but risk policy violations

Seamless Tiles

  • Enable tile parameter for patterns that seamlessly repeat
  • Perfect for textures, wallpapers, and pattern design

Notes

  • Midjourney 5.2 always generates 4 images per request
  • Image weight range is 0.5-2.0 for version 5.2
  • Maximum aspect ratio is 2:1 in either direction
  • Generation time varies by mode and server load
  • Best suited for artistic and creative applications