Create a new image generation task using the Midjourney AI model.
All APIs require authentication via Bearer Token.
Get API Key:
Usage: Add to request header: Authorization: Bearer YOUR_API_KEY
Note:
Task type for generation mode.
Image Generation Types:
Video Generation Types:
mj_txt2img, mj_img2img, mj_style_reference, mj_omni_reference, mj_video, mj_video_hd "mj_txt2img"
Text prompt describing the desired image content. Required for all generation modes.
"Help me generate a sci-fi themed fighter jet in a beautiful sky, to be used as a computer wallpaper"
The speed of the API. It can be 'fast', 'relaxed' or 'turbo', which corresponds to different speed of Midjourney.
relaxed, fast, turbo "relaxed"
Input image URL (required for image-to-image and image-to-video generation).
"https://example.com/image.jpg"
Input image URL array (required for image-to-image and image-to-video generation).
["https://example.com/image.jpg"]
Output image/video aspect ratio.
Supported Aspect Ratios:
| Ratio | Format Type | Common Use Cases |
|---|---|---|
2:1 | Ultra-wide | Cinematic displays, panoramic views |
16:9 | Widescreen | HD video, desktop wallpapers |
4:3 | Standard | Traditional displays, presentations |
3:2 | Classic | Traditional photography, prints |
1:1 | Square | Social media posts, profile pictures |
3:4 | Portrait | Magazine layouts, portrait photos |
5:6 | Portrait | Mobile photography, stories |
9:16 | Mobile Portrait | Smartphone wallpapers, stories |
2:3 | Portrait | Mobile app splash screens |
6:5 | Landscape | Tablet wallpapers, digital art |
1:2 | Ultra-tall | Mobile app splash screens, banners |
1:2, 9:16, 2:3, 3:4, 5:6, 6:5, 4:3, 3:2, 1:1, 16:9, 2:1 "16:9"
Midjourney model version to use.
Midjourney routinely releases new model versions to improve efficiency, coherency, and quality. The latest model is the default, but each model excels at producing different types of images.
7, 6.1, 6, 5.2, 5.1, niji6 "7"
Controls the diversity of generated images.
0 <= x <= 10010
Stylization level (0-1000).
0 <= x <= 10001
Weirdness level (0-3000).
0 <= x <= 30001
Omni intensity parameter. Controls the strength of the omni reference effect. Range: 1-1000, increments of 1 (e.g. 1, 2, 3).
1 <= x <= 1000500
Watermark identifier.
"my_watermark"
Whether to enable automatic translation.
false
Callback URL to receive task completion updates.
📖 Detailed Callback Mechanism: See Midjourney Image Generation Callbacks for callback format, status codes, best practices, and troubleshooting.
"https://api.example.com/callback"
Number of videos to generate. Only effective when taskType is 'mj_video' or 'mj_video_hd'.
1, 2, 4 1
Motion parameter for video generation. Controls the level of motion in generated videos.
high, low "high"
Request successful
Response status code
200, 400, 401, 402, 404, 422, 429, 455, 500, 501, 505 Response message
"success"