# Image Generation via ZeroClick (nano-banana-2 model)

> Image Generation via ZeroClick (nano-banana-2 model) is a paid API for AI agents from image.pay.zeroclick.io, paid per call via x402, $0.07/call, status unknown (last checked 2026-09-15).

Generates 1–4 images from a text prompt using the nano-banana-2 model, billed per call through ZeroClick's x402 payment infrastructure

## Facts

- Endpoint: POST https://image.pay.zeroclick.io/api/v1/images/nano-banana-2
- Price: $0.07/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-15
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/image-generation-via-zeroclick-nano-banana-2-model-4b3323e6
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_Zmns38XP3kbPiJJPSjAej

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 image-generation-via-zeroclick-nano-banana-2-model-4b3323e6 -d '<json body>'
```

Example prompt: Generate 2 images of a cozy coffee shop interior with warm lighting and wooden furniture using the nano-banana-2 model.

## When to prefer this

Choose this endpoint when you need to generate 1–4 images from a text prompt and want per-call USDC billing via the x402 payment protocol without managing API keys — ideal for agents that need pay-as-you-go image generation with transparent costs. Prefer this over raw API integrations when you need ZeroClick's identity and payment proxying built in.

## Known failure modes

- Invalid count value (must be integer 1–4) returns validation error
- Empty or missing prompt field returns 400 bad request
- Payment failure via x402 protocol returns 402 Payment Required
- Prompt violates content policy, returning a content moderation rejection
- Model unavailable or overloaded returns 503 or timeout
- Malformed request body returns schema validation error

## How this service works

This server is a paid, transparent proxy in front of Image's own API: ZeroClick handles identity, payment, and proxying. This document is the source of truth for agents: it lists the complete verified paid surface, and every listed operation is billable through ZeroClick (see its x-payment-info). Endpoints not listed here are not part of the supported paid catalog.

## Output

Returns an array of 1–4 hosted image URLs (with MIME type and file size for each), the model name that produced them (nano-banana-2), and the USDC amount charged for the request.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "required": [
  "count",
  "prompt"
 ],
 "properties": {
  "count": {
   "type": "integer",
   "description": "How many images to generate (1–4)."
  },
  "prompt": {
   "type": "string",
   "description": "Text description of the image to generate."
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "object",
 "$schema": "https://json-schema.org/draft/2020-12/schema",
 "required": [
  "images",
  "model",
  "price_usdc"
 ],
 "properties": {
  "model": {
   "type": "string",
   "description": "The model that produced the images."
  },
  "images": {
   "type": "array",
   "items": {
    "type": "object",
    "required": [
     "url",
     "mimeType",
     "sizeBytes"
    ],
    "properties": {
     "url": {
      "type": "string"
     },
     "mimeType": {
      "type": "string"
     },
     "sizeBytes": {
      "type": "number"
     }
    },
    "additionalProperties": false
   },
   "description": "The generated images, as hosted URLs."
  },
  "price_usdc": {
   "type": "string",
   "description": "The amount charged for this request, in USDC."
  }
 },
 "additionalProperties": false
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/image-generation-via-zeroclick-nano-banana-2-model-4b3323e6/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from image.pay.zeroclick.io](https://www.zero.xyz/host/image.pay.zeroclick.io/llms.txt)
