# X402 Cloud AI Nano Banana Image Generation

> X402 Cloud AI Nano Banana Image Generation is a paid API for AI agents from api.x402cloud.space, paid per call via x402, $0.054/call, status unknown (last checked 2026-09-14).

Generates one to four images from a text prompt using AI inference, returning inline PNG data, with pay-per-call USDC pricing via x402

## Facts

- Endpoint: POST https://api.x402cloud.space/nano-banana-3
- Price: $0.054/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-14
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/x402-cloud-ai-nano-banana-image-generation-ceeef941
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_jBUpLbA8TkQviWFoprpyH

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 x402-cloud-ai-nano-banana-image-generation-ceeef941 -d '<json body>'
```

Example prompt: Generate 2 images of a neon-lit cyberpunk cityscape at night in 16:9 widescreen format using x402 Cloud's nano-banana image endpoint.

## When to prefer this

Choose this endpoint when you need pay-per-call AI image generation without a subscription, especially in autonomous agent pipelines, RAG systems, or creative automation workflows that require USDC micropayments via the x402 protocol. It is well-suited for applications needing Gemini-quality image generation at low per-call cost with support for multiple aspect ratios and batch image generation up to 4 images per call.

## Known failure modes

- Invalid or missing prompt returns 400 bad request
- Aspect ratio value not in allowed enum returns validation error
- numberOfImages outside 1-4 range returns validation error
- Insufficient USDC balance or x402 payment failure blocks the request
- Prompt too long (over 4000 characters) triggers maxLength validation error
- Service unavailability or upstream Gemini inference failure returns 5xx error

## How this service works

X402 Cloud AI Inference Endpoints is an agent-ready x402 API provider for Gemini, image, audio, video, realtime, and specialized AI inference workflows. We expose pay-per-call USDC endpoints designed for autonomous AI agents, application backends, trading bots, creative automation, and RAG systems with some of the lowest x402 AI inference prices available in the market.

## Output

A JSON object with a 'candidates' array where each candidate contains content parts with inlineData including a fileUri (URL to the generated PNG image) and mimeType of 'image/png'. Up to 4 candidate images can be returned depending on the numberOfImages requested.

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "candidates": [
   {
    "content": {
     "parts": [
      {
       "inlineData": {
        "fileUri": "https://...",
        "mimeType": "image/png"
       }
      }
     ]
    }
   }
  ]
 },
 "outputSchema": {
  "type": "object",
  "properties": {
   "candidates": {
    "type": "array"
   }
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/x402-cloud-ai-nano-banana-image-generation-ceeef941/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from api.x402cloud.space](https://www.zero.xyz/host/api.x402cloud.space/llms.txt)
