# agentutility nano-banana Image Generator

> agentutility nano-banana Image Generator is a paid API for AI agents from x402.agentutility.ai, paid per call via x402, $0.22/call, status unknown (last checked 2026-12-02).

Generates an AI image from a text prompt using the nano-banana-pro model via Venice, returning a URL to the rendered image.

## Facts

- Endpoint: POST https://x402.agentutility.ai/nano-banana?utm_source=zero.xyz
- Price: $0.22/call
- Payment: x402
- Status: unknown
- Last checked: 2026-12-02
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/agentutility-nano-banana-image-generator-b2773f99
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_GWGn0naJ78GDjpw_K43SC

Status and success rate cover calls made through Zero and Zero's own probes. Third-party monitors may report differently.

## How to call it through Zero

Zero handles the 402 payment challenge and records the run. With the Zero CLI installed (`npm i -g @zeroxyz/cli`):

```sh
zero fetch --capability agentutility-nano-banana-image-generator-b2773f99 -d '<json body>'
```

Example prompt: Generate an image of a serene Japanese zen garden at sunset with cherry blossoms and a koi pond — make it 1024x768 and avoid any people or modern objects in the scene.

## When to prefer this

Choose this endpoint when you need pay-per-call AI image generation with no signup or API key — ideal for agent workflows that need on-demand images billed in USDC on Base or Solana. Prefer it over subscription-based image APIs when usage is sporadic or cost-per-call billing fits your architecture. The nano-banana-pro model via Venice is well-suited for general-purpose image generation with controllable dimensions, seeds, and negative prompts.

## Known failure modes

- Prompt too long (over 5000 characters) may be rejected
- Width or height outside [256, 1024] range returns a validation error
- Payment failure via x402 results in 402 response with no image generated
- Venice/fal.media backend unavailability causes 5xx errors
- Invalid bodyType enum value causes request to be rejected

## How this service works

817 pay-per-call APIs for AI agents. Every endpoint is POST /<name> and is payable in USDC over x402 on Base and Solana — no signup, no API key, just pay-per-call. GET https://x402.agentutility.ai/ returns the same catalog as machine-readable JSON.

## Output

Returns a JSON object containing the image URL hosted on fal.media CDN, the model name (nano-banana-pro), the tier identifier, and the actual pixel dimensions (width and height) of the generated image.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "$schema": "https://json-schema.org/draft/2020-12/schema",
 "required": [
  "input"
 ],
 "properties": {
  "input": {
   "type": "object",
   "required": [
    "type",
    "method",
    "bodyType",
    "body"
   ],
   "properties": {
    "body": {
     "required": [
      "prompt"
     ],
     "properties": {
      "seed": {
       "type": "number",
       "description": "Optional integer seed for reproducible output."
      },
      "steps": {
       "type": "number",
       "description": "Optional diffusion step count passed to Venice."
      },
      "width": {
       "type": "number",
       "description": "Output width in pixels. Range [256, 1024]. Default 1024."
      },
      "height": {
       "type": "number",
       "description": "Output height in pixels. Range [256, 1024]. Default 1024."
      },
      "prompt": {
       "type": "string",
       "description": "Image description. Up to 5000 chars."
      },
      "cfg_scale": {
       "type": "number",
       "description": "Optional classifier-free guidance scale passed to Venice."
      },
      "negative_prompt": {
       "type": "string",
       "description": "Optional text describing what to avoid in the image."
      }
     }
    },
    "type": {
     "type": "string",
     "const": "http"
    },
    "method": {
     "enum": [
      "POST"
     ],
     "type": "string"
    },
    "bodyType": {
     "enum": [
      "json",
      "form-data",
      "text"
     ],
     "type": "string"
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object",
     "properties": {
      "tier": {
       "type": "string"
      },
      "model": {
       "type": "string"
      },
      "width": {
       "type": "integer"
      },
      "height": {
       "type": "integer"
      },
      "source": {
       "type": "string"
      },
      "image_url": {
       "type": "string"
      }
     }
    }
   }
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "tier": "nano-banana",
  "model": "nano-banana-pro",
  "width": 1024,
  "height": 1024,
  "source": "venice",
  "image_url": "https://v3.fal.media/files/abc/xyz/image.png"
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/agentutility-nano-banana-image-generator-b2773f99/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from x402.agentutility.ai](https://www.zero.xyz/host/x402.agentutility.ai/llms.txt)
