# GEDX402 Stable Diffusion XL Lightning Image Generator

> GEDX402 Stable Diffusion XL Lightning Image Generator is a paid API for AI agents from image.gedx402.com, paid per call via x402, $0.024/call, status unknown (last checked 2026-09-15).

Generates images from text prompts using Stable Diffusion XL Lightning model, paid per-call with USDC on multiple chains, no API key required

## Facts

- Endpoint: GET https://image.gedx402.com/v1/image/stable-diffusion-xl-lightning
- Price: $0.024/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-15
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/gedx402-stable-diffusion-xl-lightning-image-generator-dcefb802
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_IPP8o3qaGvaHKx6dwjP2s

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-xl-lightning-image-generator-dcefb802
```

Example prompt: Generate a photorealistic image of a golden retriever playing in autumn leaves at 1024x1024 pixels using 20 diffusion steps.

## When to prefer this

Choose this endpoint when you need fast SDXL Lightning image generation without managing API keys, and can pay per-call in USDC on Base, Polygon, Arbitrum, World, or Solana. Ideal for agents that need on-demand image generation in a crypto-native payment context.

## Known failure modes

- Payment failure if USDC balance is insufficient or chain is unsupported
- Invalid prompt returns an error or blank/corrupted image
- Width or height values unsupported by the model return an error
- num_steps outside 1-20 range rejected with validation error
- Network timeout if the model takes too long to generate
- Base64 response may be large for high-resolution outputs

## 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 base64-encoded PNG image generated from the provided prompt, ready to be decoded and displayed or saved.

## 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-xl-lightning-image-generator-dcefb802/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)
