# GEDX402 Stable Diffusion v1.5 Inpainting Image Generator

> GEDX402 Stable Diffusion v1.5 Inpainting Image Generator is a paid API for AI agents from image.gedx402.com, paid per call via x402, $0.035/call, status unknown (last checked 2026-09-14).

Generates images using Stable Diffusion v1.5 Inpainting model, paid per-call with USDC via x402 protocol, no API key required

## Facts

- Endpoint: GET https://image.gedx402.com/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/gedx402-stable-diffusion-v1-5-inpainting-image-generator-96cac6db
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_51gkWaaJP957AaFMe4FCB

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 gedx402-stable-diffusion-v1-5-inpainting-image-generator-96cac6db
```

Example prompt: Generate an image of a cozy mountain cabin at sunset with snow-covered pine trees, 512 pixels wide by 512 pixels tall, using 20 diffusion steps for maximum quality.

## When to prefer this

Choose this endpoint when you need AI image generation via Stable Diffusion v1.5 Inpainting and want to pay per-call with USDC cryptocurrency without managing API keys or subscriptions. Ideal for agents operating in crypto-native environments supporting x402 micropayments on Base, Polygon, Arbitrum, World, or Solana. Prefer this over traditional API-key-based services when building permissionless, key-free pipelines.

## Known failure modes

- Payment failure if USDC balance is insufficient or x402 payment is not accepted
- Invalid prompt resulting in poor or unexpected image output
- Width or height values unsupported by the model causing a 400 error
- num_steps outside the 1-20 range causing a validation error
- Network timeout if diffusion inference takes too long
- Malformed base64 response if the model backend encounters an internal error

## How this service works

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

## Output

A JSON object containing a single 'image' field with the generated image encoded as a base64 string, which can be decoded and saved as a PNG or JPEG file.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "width": {
   "type": "integer",
   "description": "Output width in pixels when supported by the model."
  },
  "height": {
   "type": "integer",
   "description": "Output height in pixels when supported by the model."
  },
  "prompt": {
   "type": "string",
   "description": "Natural-language description of the image to generate."
  },
  "num_steps": {
   "type": "integer",
   "maximum": 20,
   "minimum": 1,
   "description": "Diffusion steps (quality vs speed)."
  }
 }
}
```

## Response schema (JSON Schema)

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

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/gedx402-stable-diffusion-v1-5-inpainting-image-generator-96cac6db/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from image.gedx402.com](https://www.zero.xyz/host/image.gedx402.com/llms.txt)
