# Google Imagen Nano Image Generation with Aspect Ratio Control

> Google Imagen Nano Image Generation with Aspect Ratio Control is a paid API for AI agents from x402-gateway-production.up.railway.app, paid per call via x402, $0.1/call, status unknown (last checked 2026-10-12, last successful call 2026-04-22).

Generates high-quality images using Google's Imagen Nano model with aspect ratio control and optional web search augmentation

## Facts

- Endpoint: POST https://x402-gateway-production.up.railway.app/api/image/nano-banana?utm_source=zero.xyz
- Price: $0.1/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-12
- Last successful call: 2026-04-22
- Success rate: 100% of calls made through Zero
- Rating: 3.7 / 5 from 1 review
- Activations on Zero: 1
- Tags: x402
- Canonical page: https://www.zero.xyz/c/x402-gateway-production-up-railway-app-ca5124a6
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_e0vCOAvTQB5341yrtA3sP

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-gateway-production-up-railway-app-ca5124a6 -d '<json body>'
```

Example prompt: Generate a photorealistic image of a misty Japanese mountain temple at sunrise in a 16:9 widescreen aspect ratio using Google Imagen — also search the web to make the scene more accurate.

## When to prefer this

Choose this endpoint when you need high-quality image generation with precise aspect ratio control backed by Google's Imagen Nano model. Prefer this over FLUX Schnell when quality matters more than speed, and over generic generation endpoints when you want optional web search grounding to improve prompt accuracy.

## Known failure modes

- Invalid or missing prompt returns 400 error
- Unsupported aspect ratio value returns validation error
- Web search augmentation fails silently or returns stale results
- Payment not fulfilled returns 402 Payment Required
- Model content policy violation causes generation refusal
- Timeout on complex or high-resolution prompts

## How this service works

Google's fast, high-quality image generation with aspect ratio control and optional web search

## Output

Returns a generated image (URL or binary image data) produced by Google's Imagen Nano model based on the provided text prompt, honoring the specified aspect ratio and optionally enriched with web search context.

## Example request

```json
{
 "prompt": "A serene Japanese mountain temple surrounded by morning mist and cherry blossoms at sunrise",
 "webSearch": true,
 "aspectRatio": "16:9"
}
```

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "$schema": "https://json-schema.org/draft/2020-12/schema",
 "required": [
  "input"
 ],
 "properties": {
  "input": {
   "type": "object",
   "required": [
    "type",
    "bodyType",
    "body",
    "method"
   ],
   "properties": {
    "body": {
     "type": "object",
     "required": [
      "prompt"
     ],
     "properties": {
      "seed": {
       "type": "number",
       "example": 42,
       "description": "Random seed for reproducibility"
      },
      "prompt": {
       "type": "string",
       "example": "a cyberpunk cityscape at sunset with neon signs",
       "description": "Text description of image to generate (up to 50,000 chars)"
      },
      "aspect_ratio": {
       "type": "string",
       "default": "1:1",
       "example": "16:9",
       "description": "Output aspect ratio (auto, 21:9, 16:9, 3:2, 4:3, 5:4, 1:1, 4:5, 3:4, 2:3, 9:16)"
      },
      "output_format": {
       "type": "string",
       "default": "png",
       "example": "png",
       "description": "Image format: png, jpeg, or webp"
      }
     },
     "additionalProperties": false
    },
    "type": {
     "type": "string",
     "const": "http"
    },
    "method": {
     "enum": [
      "POST"
     ],
     "type": "string"
    },
    "bodyType": {
     "enum": [
      "json",
      "form-data",
      "text"
     ],
     "type": "string"
    }
   },
   "additionalProperties": false
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/x402-gateway-production-up-railway-app-ca5124a6/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from x402-gateway-production.up.railway.app](https://www.zero.xyz/host/x402-gateway-production.up.railway.app/llms.txt)
