# Stable Diffusion v1.5 Inpainting Image Generation via x402

> Stable Diffusion v1.5 Inpainting Image Generation via x402 is a paid API for AI agents from ged-x402-image.jvalamis.workers.dev, paid per call via x402, $0.035/call, status unknown (last checked 2026-09-14).

Generates images using the Stable Diffusion v1.5 inpainting model, paid per-call with USDC on multiple blockchains, no API key required.

## Facts

- Endpoint: GET https://ged-x402-image.jvalamis.workers.dev/v1/image/stable-diffusion-v1-5-inpainting
- Price: $0.035/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-14
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/stable-diffusion-v1-5-inpainting-image-generation-via-x402-32b4e688
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_XQ1jjQZKhL36EzZuTKPJp

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 stable-diffusion-v1-5-inpainting-image-generation-via-x402-32b4e688
```

Example prompt: Generate an image of a serene mountain lake at sunrise with pine trees reflecting in the water — make it 512x512 pixels with 20 diffusion steps for best quality.

## When to prefer this

Prefer this endpoint when you need on-demand stable diffusion image generation without API key registration, especially when paying with USDC on Base, Polygon, Arbitrum, World, or Solana. Ideal for agents operating in crypto-native environments using the x402 payment protocol. Best for inpainting-style generation tasks using the v1.5 model.

## Known failure modes

- Payment not received or insufficient USDC balance — returns HTTP 402 requiring payment
- Invalid prompt or missing required fields — returns 400 bad request
- num_steps out of range (must be 1-20) — validation error
- Unsupported blockchain network for payment — payment rejected
- Model inference timeout on Cloudflare Workers — returns 500 or timeout error
- Malformed base64 in response if model fails internally

## How this service works

x402 workers ai. pay with usdc on base, polygon, arbitrum, world, or solana. no api keys.

## Output

Returns a JSON object containing a base64-encoded string of the generated image, which can be decoded into a PNG or JPEG image file.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "width": {
   "type": "integer"
  },
  "height": {
   "type": "integer"
  },
  "prompt": {
   "type": "string"
  },
  "num_steps": {
   "type": "integer"
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "image": "<base64>"
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/stable-diffusion-v1-5-inpainting-image-generation-via-x402-32b4e688/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from ged-x402-image.jvalamis.workers.dev](https://www.zero.xyz/host/ged-x402-image.jvalamis.workers.dev/llms.txt)
