GPT-Image
Generate images based on text prompts and image resources
Authorizations
You can obtain your API key from the Midjourney-api Dashboard.
Body
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"
Callback notification URL
"https://api.example.com/webhook"