# Nano Banana v2 Image Generator

> Nano Banana v2 Image Generator is a paid API for AI agents from api.xona-agent.com, paid per call via x402, $0.06/call, status unknown (last checked 2026-09-15).

Generates small, stylized banana-themed images from text prompts using the Nano Banana v2 image model.

## Facts

- Endpoint: POST https://api.xona-agent.com/image/nano-banana-2
- Price: $0.06/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-15
- Activations on Zero: 2
- Tags: x402
- Canonical page: https://www.zero.xyz/c/api-xona-agent-com-5a090c75
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_UXHca8qnhEAr0O7bczs96

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 api-xona-agent-com-5a090c75 -d '<json body>'
```

Example prompt: Generate a small, stylized banana image of a happy cartoon banana wearing sunglasses on a tropical beach using the Nano Banana v2 model — square format at 1k resolution.

## When to prefer this

Choose this endpoint when you specifically want small, stylized banana-themed images generated by the Nano Banana v2 model at low cost ($0.06 for 1k resolution). Prefer this over the Nano Banana Pro model when budget is a concern or when a smaller, quicker image is sufficient.

## Known failure modes

- Invalid or missing prompt — returns 400 bad request
- Unsupported resolution value — defaults or errors depending on implementation
- Payment failure or insufficient USDC balance — returns 402 Payment Required
- Reference image URLs unreachable or invalid — generation may proceed without them or fail
- Rate limiting or server overload — returns 429 or 503

## How this service works

Create small, stylized banana images using the Nano Banana v2 image model.

## Output

Returns a hosted image URL of the generated stylized banana image, produced by the Nano Banana v2 model according to the prompt, resolution, and aspect ratio specified.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "prompt": {
   "type": "string",
   "description": "Detailed prompt description for the image"
  },
  "resolution": {
   "type": "string",
   "default": "1k",
   "description": "Output resolution. 1k=$0.06, 2k=$0.10, 4k=$0.15"
  },
  "aspect_ratio": {
   "type": "string",
   "default": "1:1",
   "description": "Image aspect ratio"
  },
  "referenceImage": {
   "type": "array",
   "items": {
    "type": "string"
   },
   "description": "URLs of reference images for style/composition guidance"
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/api-xona-agent-com-5a090c75/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from api.xona-agent.com](https://www.zero.xyz/host/api.xona-agent.com/llms.txt)
