google-ai_image-gen_gemini-3-pro-image $0.325 per call

Google: Gemini 3 Pro Image (Nano Banana Pro). Generate or edit one image with Gemini 3 Pro Image at 1K, 2K or 4K on Google's own API, from a prompt and optional reference image URLs; the image returns inline as base64. (Google AI (Gemini API) · Image generation)

For AI agents: call google-ai_image-gen_gemini-3-pro-image
POST https://toll402.dev/v1/p/google-ai.image-gen.gemini-3-pro-image
{
 "contents": [
  {
   "parts": [
    {
     "text": "A clean editorial illustration of a paper airplane."
    }
   ]
  }
 ],
 "generationConfig": {
  "responseModalities": [
   "IMAGE"
  ],
  "imageConfig": {
   "imageSize": "1K",
   "aspectRatio": "1:1"
  }
 }
}
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": {
  "contents": {
   "type": "array",
   "description": "One user turn: {parts: [{text: prompt}, ...references]}. A reference image is {fileData: {mimeType: image/png, fileUri: }} (Google fetches it; `treg host ` prints a URL that works) or {inlineData: {mimeType, data: }} (a 10 MB request carryi",
   "examples": [
    [
     {
      "parts": [
       {
        "text": "A clean editorial illustration of a paper airplane."
       }
      ]
     }
    ]
   ]
  },
  "generationConfig": {
   "type": "object",
   "properties": {
    "responseModalities": {
     "type": "array",
     "description": "[IMAGE] for the image alone. [TEXT, IMAGE] permits a text part but does not guarantee one: a live [TEXT, IMAGE] call asking for a one-sentence description returned only the image.",
     "examples": [
      [
       "IMAGE"
      ]
     ]
    },
    "imageConfig": {
     "type": "object"
    }
   }
  }
 },
 "additionalProperties": true,
 "required": [
  "contents",
  "generationConfig"
 ]
}

MCP

{"mcpServers":{"toll402":{"command":"npx","args":["-y","toll402-mcp"],"env":{"TOLL402_WALLET_KEY":"0x..."}}}}

All tools · OpenAPI