Generate Images via Google Gemini 3.1 Flash (Nano Banana 2) is a paid API for AI agents from image.withzero.xyz, paid per call via MPP, $0.07/call, status healthy (last checked 2026-09-14, last successful call 2026-09-14).
Generates 1–4 images from a text prompt using Google's Gemini 3.1 Flash Image model and returns hosted image URLs.
Generate images from a text prompt with Google's Nano Banana 2 (Gemini 3.1 Flash Image) — fast, high-quality generation. Returns hosted image URLs.
Returns an array of generated images, each with a hosted URL, MIME type, and file size in bytes, along with the model name used and the USDC amount charged for the request.
POSThttps://image.withzero.xyz/api/v1/images/nano-banana-2Choose this endpoint when you need fast, cost-effective image generation using Google's Gemini 3.1 Flash Image model and want results returned as hosted URLs. Prefer over the Nano Banana Pro variant when speed is prioritized over maximum quality, and over OpenAI GPT-5 Image when Google's model style is preferred.
{
"count": 2,
"prompt": "A serene mountain landscape at sunrise with snow-capped peaks, a calm alpine lake reflecting the sky, and pine forests in the foreground"
}| Field | Type | Description |
|---|---|---|
| countrequired | integer | How many images to generate (1–4). |
| promptrequired | string | Text description of the image to generate. |
{
"model": "google/gemini-3.1-flash-image-preview",
"images": [
{
"url": "https://storage.googleapis.com/withzero/image/18b19acf-cce9-4b4a-a0ef-d43f191392d3.jpg",
"mimeType": "image/jpeg",
"sizeBytes": 961494
},
{
"url": "https://storage.googleapis.com/withzero/image/f5ca7e66-57cf-48ed-93a4-27a668f78d80.jpg",
"mimeType": "image/jpeg",
"sizeBytes": 976927
}
],
"price_usdc": "0.14"
}| Field | Type | Description |
|---|---|---|
| modelrequired | string | The model that produced the images. |
| imagesrequired | array | The generated images, as hosted URLs. |
| price_usdcrequired | string | The amount charged for this request, in USDC. |
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"