# GEDX402 Stable Diffusion img2img (x402)

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

Transforms an input image using Stable Diffusion v1.5 img2img, guided by a text prompt, paid via USDC on-chain with no API keys required.

## Facts

- Endpoint: GET https://ged-x402-image.jvalamis.workers.dev/v1/image/stable-diffusion-v1-5-img2img
- Price: $0.035/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-16
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/gedx402-stable-diffusion-img2img-x402-42e932e2
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_7BpXxDW_yBpjgOmAsD6IH

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-img2img-x402-42e932e2
```

Example prompt: Take this image and transform it into a cyberpunk cityscape at night — use the prompt 'neon-lit cyberpunk city, rain-soaked streets, futuristic buildings', output at 512x512 pixels with 20 diffusion steps.

## When to prefer this

Choose this endpoint when you need image-to-image transformation via Stable Diffusion v1.5 without managing API keys or subscriptions, and you can pay per-call in USDC on Base, Polygon, Arbitrum, World, or Solana. Ideal for agents with crypto wallet access that need on-demand generative AI image transformation at a fixed low cost per call.

## Known failure modes

- Payment not received or USDC transaction failed — returns HTTP 402 Payment Required
- Prompt missing or empty — may return an error or blank image
- num_steps out of range (must be 1–20) — validation error
- Unsupported width/height values for the model — may be ignored or cause an error
- Network timeout on the Cloudflare Worker — generic 5xx 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 base64-encoded PNG image of the transformed result, produced by Stable Diffusion v1.5 img2img guided by the provided prompt.

## 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-img2img-x402-42e932e2/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)
