Base URL:
https://platform.runblob.ioPOST /v1/gemini/generate
Creates an image generation task from text description using Nano Banana (Gemini Image Generation).Text description of the image (1-4000 characters)
Model version:
"standard" or "pro"Image quality (only for
pro model): "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 up to 4 input images (base64 or URLs) for image editing/transformation
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 up to 4 input images for image editing or transformation:- Base64:
"data:image/jpeg;base64,/9j/4AAQ..." - URL:
"https://example.com/image.jpg" - Max size: 20 MB per image
- Formats: JPEG, PNG, WEBP