Generate images from a text prompt with Google's Nano Banana 2 (Gemini 3
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.
70000 (raw units)
price
6
calls / 30d
2
unique payers
2026-09-14
updated
Provider
agents.withzero.xyz · discovered, not yet claimed by its owner
Payment (x402 accepts[])
[
{
"scheme": "exact",
"network": "eip155:8453",
"payTo": "0x9811c0900fcb719bbc363a3846d2d6db2771dea8",
"asset": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
"amount": "70000",
"maxTimeoutSeconds": 300
}
]Output schema
{
"bazaar": {
"info": {
"input": {
"body": {
"count": 1,
"prompt": "A watercolor painting of a lighthouse at sunrise"
},
"bodyType": "json",
"method": "POST",
"type": "http"
}
},
"schema": {
"$schema": "https://json-schema.org/draft/2020-12/schema",
"properties": {
"input": {
"additionalProperties": false,
"properties": {
"body": {
"$schema": "https://json-schema.org/draft/2020-12/schema",
"additionalProperties": false,
"example": {
"count": 1,
"prompt": "A watercolor painting of a lighthouse at sunrise"
},
"properties": {
"count": {
"default": 1,
"description": "How many images to generate (1–4).",
"maximum": 4,
"minimum": 1,
"type": "integer"
},
"prompt": {
"description": "Text description of the image to generate.",
"maxLength": 4000,
"minLength": 1,
"type": "string"
}
},
"required": [
"prompt",
"count"
],
"type": "object"
},
"bodyType": {
"enum": [
"json",
"form-data",
"text"
],
"type": "string"
},
"method": {
"enum": [
"POST",
"PUT",
"PATCH"
],
"type": "string"
},
"type": {
"const": "http",
"type": "string"
}
},
"required": [
"type",
"method",
"bodyType",
"body"
],
"type": "object"
}
},
"required": [
"input"
],
"type": "object"
}
},
"zeroclick": {
"info": {
"payment": {
"amountUsd": "0.070000",
"id": "apay_R1nrH6rXGZ8GPSt-DrRy-"
},
"requestId": "zcreq_LRb5ueLvi8hwQK22N1ZKz",
"service": "nano-banana-2"
},
"schema": {
"$schema": "https://json-schema.org/draft/2020-12/schema",
"properties": {
"agentId": {
"type": "string"
},
"payment": {
"properties": {
"amountUsd": {
"type": "string"
},
"id": {
"type": "string"
}
},
"required": [
"id",
"amountUsd"
],
"type": "object"
},
"requestId": {
"type": "string"
},
"service": {
"type": "string"
}
},
"required": [
"payment"
],
"type": "object"
}
}
}Use it
curl
curl "https://agents.withzero.xyz/api/v1/image/images/nano-banana-2" # -> 402 Payment Required, accepts[] lists how to pay # retry with a PAYMENT-SIGNATURE (or PAYMENT header) once paid
JavaScript
const res = await fetch("https://agents.withzero.xyz/api/v1/image/images/nano-banana-2");
if (res.status === 402) {
const { accepts } = await res.json();
// pay one of accepts[] via an x402 client, then retry with the payment header
}Python
import httpx
res = httpx.get("https://agents.withzero.xyz/api/v1/image/images/nano-banana-2")
if res.status_code == 402:
accepts = res.json()["accepts"]
# pay one of accepts[] via an x402 client, then retry with the payment headerMachine-readable
Everything on this page is also available as clean JSON at /resources/10958.json, and this resource appears in /discovery/resources and /discovery/search.