# GEDX402 Stable Diffusion v1.5 Image-to-Image

> GEDX402 Stable Diffusion v1.5 Image-to-Image 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-15).

Transforms an input image guided by a text prompt using Stable Diffusion v1.5 img2img, returning a base64-encoded result image, paid via USDC on multiple chains with no API key required.

## Facts

- Endpoint: GET https://image.gedx402.com/v1/image/stable-diffusion-v1-5-img2img
- Price: $0.035/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-v1-5-image-to-image-e6137663
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_KW_zqn_0Iu6jKfuug0gXb

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-to-image-e6137663
```

Example prompt: Take my reference image and transform it into a watercolor painting of a sunset over mountains — use 512x512 pixels and 20 diffusion steps for the best quality.

## When to prefer this

Choose this endpoint when you need Stable Diffusion v1.5 img2img transformation without API keys, want to pay per-call in USDC across Base, Polygon, Arbitrum, World, or Solana, and need a simple base64 image response with controllable resolution and quality steps.

## Known failure modes

- Invalid or missing prompt returns an error or blank image
- num_steps outside 1-20 range rejected by schema validation
- Payment failure on selected chain results in 402 response and no image returned
- Width/height values not supported by the model may be ignored or cause errors
- Network timeouts possible for high step counts

## 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 a base64-encoded PNG or JPEG of the transformed image, ready to decode and display or save.

## 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-to-image-e6137663/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)
