piapi_image-gen_gemini-3-pro-image $0.22625 per call
Google: Gemini 3 Pro Image (Nano Banana Pro). Generate or edit an image with Gemini 3 Pro Image at 1K, 2K or 4K from a prompt and up to 14 reference images. (PiAPI · Image generation) Async task: answers 202 with a job id; poll GET /v1/jobs/<id>. Price depends on the options ($0.13125 to $0.22625); refunded if the task fails. Prepaid credits only.
For AI agents: call piapi_image-gen_gemini-3-pro-image
POST https://toll402.dev/v1/p/piapi.image-gen.gemini-3-pro-image
{
"model": "gemini",
"task_type": "nano-banana-pro",
"input": {
"prompt": "A clean editorial illustration of a paper airplane.",
"resolution": "1K",
"aspect_ratio": "1:1",
"output_format": "png"
}
}Answers 402 with x402 payment requirements; pay with any x402 client (@x402/fetch, x402 for Python, toll402-client, toll402-mcp) or send a prepaid-credits key as x-toll402-key (https://toll402.dev/credits). Paid per call via x402 (USDC on Base) or with a prepaid-credits key (x-toll402-key, card at /credits); charged only on success. Start at /llms.txt or connect the MCP server:
npx -y toll402-mcp · remote https://toll402.dev/mcp.Input schema
{
"type": "object",
"properties": {
"model": {
"type": "string",
"enum": [
"gemini"
],
"examples": [
"gemini"
]
},
"task_type": {
"type": "string",
"enum": [
"nano-banana-pro"
],
"examples": [
"nano-banana-pro"
]
},
"input": {
"type": "object",
"properties": {
"prompt": {
"type": "string",
"examples": [
"A clean editorial illustration of a paper airplane."
]
},
"image_urls": {
"type": "array",
"description": "Up to 14 public image URLs to edit or reference. Each URL must answer a plain GET with the raw image bytes and an image/* content-type (signed cloud-storage or CDN links work; file-page hosts such as tmpfiles.org return HTML and the task fa"
},
"resolution": {
"type": "string",
"enum": [
"1K",
"2K",
"4K"
],
"default": "1K",
"examples": [
"1K"
]
},
"aspect_ratio": {
"type": "string",
"enum": [
"1:1",
"16:9",
"9:16",
"4:3",
"3:4",
"3:2",
"2:3",
"21:9",
"5:4",
"4:5"
],
"default": "1:1",
"examples": [
"1:1"
]
},
"output_format": {
"type": "string",
"enum": [
"png",
"jpeg"
],
"default": "png",
"examples": [
"png"
]
},
"safety_level": {
"type": "string",
"enum": [
"low",
"medium",
"high"
],
"default": "high",
"examples": [
"high"
]
}
},
"required": [
"prompt"
]
}
},
"additionalProperties": true,
"required": [
"model",
"task_type",
"input"
]
}
MCP
{"mcpServers":{"toll402":{"command":"npx","args":["-y","toll402-mcp"],"env":{"TOLL402_WALLET_KEY":"0x..."}}}}