Authorizations
All APIs require authentication using Bearer TokenGet API Key:Visit API Key Management Page to obtain your API KeyAdd to request header:
Body
Image generation model nameExample:
"gemini-3-pro-image-preview"Text description for image generation
Image generation sizeSupported formats:
- Ratios:
1:1,2:3,3:2,3:4,4:3,4:5,5:4,9:16,16:9,21:9
Number of images to generateFixed at 1⚠️ Note: Must be a pure number (e.g.
1), do not add quotes, otherwise it will errorList of reference image URLs for image-to-image or image editing💡 Quick Fill (Try it area):
- Click ”+ Add an item” to add an image URL
- Enter the complete image URL address or base64 data
Mask image URL
- Must be PNG format
- Size must match reference image
- Must not exceed 4MB
Response
Response status code
Response data array