# GEDX402 Stable Diffusion XL Lightning Image Generator

> GEDX402 Stable Diffusion XL Lightning Image Generator is a paid API for AI agents from ged-x402-image.jvalamis.workers.dev, 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 via Cloudflare Workers AI, paid per-call with USDC on-chain — no API key required.

## Facts

- Endpoint: GET https://ged-x402-image.jvalamis.workers.dev/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-7552fc31
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_K42fvJBcgO8ur6mP19ZGq

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-7552fc31
```

Example prompt: Generate a photorealistic image of a misty mountain lake at sunrise with pine trees in the foreground — make it 1024x768 pixels, use 20 diffusion steps for best quality.

## When to prefer this

Choose this endpoint when you need a fast, no-signup image generation capability paid per-call with USDC on supported blockchains (Base, Polygon, Arbitrum, World, Solana). Ideal for agents that lack traditional API key management but can execute on-chain micropayments. Best for single image generation from a text prompt with SDXL Lightning quality.

## Known failure modes

- Payment not received or insufficient USDC balance — 402 Payment Required response
- Invalid prompt or missing required field — 400 Bad Request
- num_steps out of range (must be 1–20) — validation error
- Unsupported width/height combination for the model — generation failure or distorted output
- Network timeout if diffusion steps are high and worker times out
- Unsupported blockchain network provided for payment

## 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 string of the generated image, which can be decoded and saved as a PNG or JPEG 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/gedx402-stable-diffusion-xl-lightning-image-generator-7552fc31/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)
