# StableStudio Nano-Banana Image Edit Generation

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

Generates an AI-edited image asynchronously via a pay-per-call model, returning a job ID to poll for the result

## Facts

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

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-edit-generation-06a255e6 -d '<json body>'
```

Example prompt: Generate an AI image of a futuristic cityscape at sunset with tall glass towers and flying cars, in 16:9 aspect ratio at 4 MP resolution in PNG format — enhance the prompt for more creative results.

## When to prefer this

Choose this endpoint when you need a one-off, pay-per-call AI image generation without committing to a subscription, especially when fine-grained control over resolution (up to 4 MP), aspect ratio, format, and safety tolerance is needed. Prefer this over subscription-based services for sporadic or low-volume image generation tasks.

## Known failure modes

- Invalid or empty prompt returns validation error
- Resolution or aspect_ratio value not in allowed enum causes 400 error
- Safety tolerance out of range (below 1 or above 5) causes rejection
- Payment of $10 USDC not provided or insufficient causes 402 Payment Required
- Job creation may succeed but image generation may fail asynchronously — must check job status
- Rate limits or service unavailability may return 5xx errors

## How this service works

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

## Output

A JSON object containing the generation job ID, job type (nano-banana-edit), current status (e.g. 'pending'), and a success boolean. The agent must use the job ID to poll a separate status endpoint to retrieve the final image URL once processing is complete.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "images": {
   "type": "array",
   "items": {
    "type": "string",
    "format": "uri",
    "description": "URL of an image"
   },
   "maxItems": 14,
   "minItems": 1,
   "description": "Array of image URLs to use as reference for editing (1-14 images)"
  },
  "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-edit",
  "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-edit-generation-06a255e6/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)
