# GEDX402 Stable Diffusion v1.5 Image Generation

> GEDX402 Stable Diffusion v1.5 Image Generation 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 from text prompts using Stable Diffusion v1.5, paid per-call with USDC on multiple blockchains via x402, no API key required.

## Facts

- Endpoint: GET https://image.gedx402.com/v1/image/stable-diffusion-v1-5
- 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-image-generation-13bc6d91
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_JLrE593MQ9pRR997Xs0Cq

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-image-generation-13bc6d91
```

Example prompt: Generate a photorealistic image of a misty mountain lake at sunrise, 512 pixels wide by 512 pixels tall, using 20 diffusion steps for maximum quality.

## When to prefer this

Choose this endpoint when you need a lightweight, no-signup Stable Diffusion v1.5 image generation call paid per-use with USDC on Base, Polygon, Arbitrum, World, or Solana via x402 — ideal for agents that handle crypto wallets and want to avoid API key management.

## Known failure modes

- Insufficient USDC payment or unsupported chain returns HTTP 402 Payment Required
- Invalid or missing prompt returns a 400 error
- num_steps out of range (1-20) returns a validation error
- Width or height values unsupported by the model may be silently clamped or return an error
- Service unavailable or Workers AI backend timeout returns 500

## 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 to 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-image-generation-13bc6d91/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)
