Generate images using Google Gemini models with support for multiple aspect ratios and resolutions up to 4K
https://api.wisgate.ai (replace generativelanguage.googleapis.com)$GEMINI_API_KEY with your $WISDOM_GATE_KEYgemini-3-pro-image-preview supports using multiple images as inputs.
You can mix up to 14 reference images in a single request:
openapi.json. Scroll down to see the interactive API reference.| Model | Description | Resolutions | Aspect Ratios |
|---|---|---|---|
gemini-3.1-flash-image-preview (Nano Banana 2) | High-efficiency version of Gemini 3 Pro Image, optimized for speed | 0.5K, 1K, 2K, 4K | 1:1, 1:4, 1:8, 2:3, 3:2, 3:4, 4:1, 4:3, 4:5, 5:4, 8:1, 9:16, 16:9, 21:9 |
gemini-3-pro-image-preview | Full-featured image generation model | 1K, 2K, 4K | 1:1, 2:3, 3:2, 3:4, 4:3, 4:5, 5:4, 9:16, 16:9, 21:9 |
gemini-2.5-flash-image | Fast and economical image generation | 1K, 2K | 1:1, 2:3, 3:2, 3:4, 4:3, 4:5, 5:4, 9:16, 16:9, 21:9 |
aspectRatio and imageSize in the imageConfig field:
"responseModalities": ["IMAGE"] (without TEXT):
inlineData field:
gemini-3.1-flash-image-preview (Nano Banana 2) and gemini-2.5-flash-image are more economical than gemini-3-pro-image-previewusageMetadata field in responsesBearer token authentication. Include your API key in the Authorization header as 'Bearer YOUR_API_KEY'
The model identifier (e.g., 'gemini-pro', 'gemini-pro-vision')
The operation to perform. Use 'generateContent' for standard requests, or 'streamGenerateContent?alt=sse' for streaming responses with Server-Sent Events format.