# GEDX402 Stable Diffusion XL Image Generation

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

Generates images from text prompts using Stable Diffusion XL Base 1.0, paid per-call with USDC on multiple chains via x402 protocol — no API keys required.

## Facts

- Endpoint: GET https://ged-x402-image.jvalamis.workers.dev/v1/image/stable-diffusion-xl-base-1.0
- Price: $0.046/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-xl-image-generation-8a7e6128
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_X3pYBsOSDefLDUu_Y-I8v

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-image-generation-8a7e6128
```

Example prompt: Generate a photorealistic image of a misty mountain lake at sunrise with pine trees in the foreground — make it 1024 pixels wide and 768 pixels tall, using 20 diffusion steps for maximum quality.

## When to prefer this

Choose this endpoint when you need on-demand Stable Diffusion XL image generation without registering for an API key, especially when paying with USDC cryptocurrency on Base, Polygon, Arbitrum, World, or Solana via the x402 micropayment protocol. Ideal for agents that manage crypto wallets and need pay-per-use AI image generation at $0.046 per call.

## Known failure modes

- Payment not received or insufficient USDC balance — HTTP 402 returned requiring payment
- Prompt missing or empty — request rejected
- num_steps out of range (must be 1–20) — validation error
- Requested dimensions not supported by model — may produce unexpected output
- Network timeout if diffusion takes too long
- Invalid chain or wallet address provided during 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 single 'image' field with the generated image encoded as a base64 string, ready to decode and display or save.

## 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-image-generation-8a7e6128/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)
