Generate images based on text prompts and image resources
Documentation Index
Fetch the complete documentation index at: https://docs.midjourney-api.com/llms.txt
Use this file to discover all available pages before exploring further.
You can obtain your API key from the Midjourney-api Dashboard.
Text prompt for image generation. Since this is a reverse-engineered model, it's recommended to include keywords in your prompt such as: "draw a xxx", "generate a", 'draw a xxx', Language is not restricted; OpenAI itself supports multilingual models with excellent Chinese support.
"draw a boy play with a girl"
Supported models: gpt-image-2
gpt-image-2 "gpt-image-2"
Reference image array
[
"https://example.com/image.png",
"https://example.com/image.png"
]Support model: gpt-image-2; Available options: 1:1, 3:4, 4:3, 16:9, 9:16
1:1, 3:4, 4:3, 16:9, 9:16 "1:1"
Image Size (width × height), Must meet the following constraints: Both width and height must be multiples of 16, Maximum edge ≤ 3840, Aspect ratio ≤ 3:1, Total pixels: 655,360 ~ 8,294,400, If the input size is invalid, it will be automatically adjusted to a valid range
"1024x1024"
Callback notification URL
"https://api.example.com/webhook"