Base URL:
https://platform.runblob.ioPOST /v1/gemini/generate
Creates an image generation task from text description using Nano Banana (Gemini Image Generation).Available Models
| Model | Value | Quality Options | Max Images | Description |
|---|---|---|---|---|
| Standard | standard | standard only | 4 | Fast generation with Gemini 2.5 Flash |
| Pro | pro | standard, 2k, 4k | 8 | High quality with Gemini 3.0 Pro |
| Nano Banana 2 | v2 | standard, 2k, 4k | 8 | Next-gen with Gemini 3.1 Flash |
Text description of the image (1-4000 characters)
Model version:
"standard", "pro", or "v2"Image quality (for
pro and v2 models): "standard", "2k", or "4k"Image aspect ratio. Options:
"auto"- automatic- Landscape:
"21:9","16:9","4:3","3:2" - Square:
"1:1" - Portrait:
"9:16","3:4","2:3" - Flexible:
"5:4","4:5"
Creativity level from 0 to 1. Higher values = more creative results.
Array of input images (base64 or URLs) for image editing/transformation. Up to 4 for
standard, up to 8 for pro and v2.Webhook URL for completion notifications
Response
UUID of the generation task for status checking
Initial status, always
"pending"Amount charged in USD
Image generation typically takes 7-30 seconds. Use the
task_uuid to check status or set up webhooks for notifications.Input Images
You can provide input images for image editing or transformation. Limit: 4 images forstandard, 8 images for pro and v2.
- Base64:
"data:image/jpeg;base64,/9j/4AAQ..." - URL:
"https://example.com/image.jpg" - Max size: 20 MB per image
- Formats: JPEG, PNG, WEBP