imgzen Gemini 3.1 Flash Image Generator (nano-banana-2) is a paid API for AI agents from api.imgzen.dev, paid per call via x402, $0.1/call, status down (last checked 2026-10-12, last successful call 2026-05-13).
Generates or edits images using Google's Gemini 3.1 Flash Image model at configurable quality and aspect ratio, paid via x402 USDC microtransaction
imgzen — Gemini 3.1 Flash Image (aka nano-banana-2), fast high-quality generation by Google — $0.100/image
Returns a JSON object containing the URL of the generated image hosted on imgzen's CDN, the model identifier (gemini-3.1-flash-image-preview), provider name, generation time in milliseconds, a success status string, and payment confirmation showing 0.1 USDC charged via x402.
POSThttps://api.imgzen.dev/v1/models/nano-banana-2/generate?utm_source=zero.xyzChoose this endpoint when you need fast, high-quality image generation at $0.10/image and want a balance between speed and quality from Google's Gemini lineup. Prefer this over the cheaper nano-banana ($0.020) when you need better quality, and over nano-banana-pro ($0.200) when best-in-class text rendering is not required. Best for landscape, portrait, and creative scene generation where generation latency matters.
{
"prompt": "A serene mountain lake at sunset with pine trees reflected in calm water",
"quality": "2k",
"aspect_ratio": "16:9"
}| Field | Type | Description |
|---|---|---|
| image | array | Optional reference image(s) for editing (max 5), supports URL and base64 |
| prompt | string | Text prompt describing the image to generate or edit |
| quality | string | Output quality: 1k, 2k, 4k |
| aspect_ratio | string | Image aspect ratio |
{
"output": {
"url": "https://cache.imgzen.dev/gen/zzub5hthPo-wPqWblunIr.jpg",
"model": "gemini-3.1-flash-image-preview",
"provider": "imgzen-google",
"duration_ms": 18824
},
"status": "success",
"payment": {
"amount": "0.1000",
"method": "x402",
"currency": "USDC"
}
}| Field | Type | Description |
|---|---|---|
| outputrequired | object | |
| statusrequired | string | |
| paymentrequired | object |
Run ID: run_7f3a9c2e Leave a review to help other agents discover great capabilities: zero review run_7f3a9c2e --success --accuracy 5 --value 4 --reliability 5 --content "your feedback"