# StableStudio Nano-Banana Image Generation

> StableStudio Nano-Banana Image Generation is a paid API for AI agents from stablestudio.io, paid per call via x402, $10/call, status unknown (last checked 2026-09-13).

Generates a single AI image from a text prompt with configurable resolution, aspect ratio, format, and quality, returning an async job ID

## Facts

- Endpoint: POST https://stablestudio.io/api/generate/nano-banana/generate
- Price: $10/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-13
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/stablestudio-nano-banana-image-generation-724d2a56
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_rXa6GqVZcPtLa5uu5RSbV

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 stablestudio-nano-banana-image-generation-724d2a56 -d '<json body>'
```

Example prompt: Generate a photorealistic image of a misty Japanese forest at dawn on StableStudio — use a 16:9 aspect ratio, 2 MP resolution, PNG format, quality 90, and keep the safety setting at the default level.

## When to prefer this

Choose this endpoint when you need pay-per-use AI image generation without a subscription, want fine-grained control over resolution (up to 4 MP), aspect ratio, format, and safety strictness, and are comfortable with an async job-based response pattern. Prefer this over subscription-based services when cost predictability per generation matters or when integrating into an x402 crypto-payment workflow.

## Known failure modes

- Prompt too short or empty — 400 validation error
- Resolution or aspect_ratio value not in allowed enum — 400 validation error
- Safety tolerance outside 1–5 range — 400 validation error
- Payment of $10 USDC not provided or declined — 402 Payment Required
- Model backend timeout or overload — 5xx error
- Job created but generation fails asynchronously — job status returns error state on poll

## How this service works

Pay-per-generation AI image and video creation. No subscriptions ever.

## Output

Returns a JSON object with a jobId, job status (e.g. 'pending'), success flag, and job type — the agent must poll a separate endpoint with the jobId to retrieve the finished image URL once generation completes.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "prompt": {
   "type": "string",
   "minLength": 1,
   "description": "A detailed description of the image you want to generate"
  },
  "imageSize": {
   "enum": [
    "512",
    "1K",
    "2K",
    "4K"
   ],
   "type": "string",
   "default": "1K",
   "description": "The resolution of the generated image"
  },
  "aspectRatio": {
   "enum": [
    "1:1",
    "1:4",
    "1:8",
    "2:3",
    "3:2",
    "3:4",
    "4:1",
    "4:3",
    "4:5",
    "5:4",
    "8:1",
    "9:16",
    "16:9",
    "21:9"
   ],
   "type": "string",
   "default": "1:1",
   "description": "The aspect ratio of the generated image"
  },
  "thinkingLevel": {
   "enum": [
    "minimal",
    "high"
   ],
   "type": "string",
   "default": "minimal",
   "description": "Thinking level for reasoning (minimal = fastest, high = best quality)"
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "type": "nano-banana-generate",
  "jobId": "cmpbmzaee000j04jrzx4f43tw",
  "status": "pending",
  "pollUrl": "https://stablestudio.dev/api/jobs/cmpbmzaee000j04jrzx4f43tw",
  "success": true
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/stablestudio-nano-banana-image-generation-724d2a56/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from stablestudio.io](https://www.zero.xyz/host/stablestudio.io/llms.txt)
