# ALFRED x402 Image Variations

> ALFRED x402 Image Variations is a paid API for AI agents from x402.wallace.us, paid per call via x402, $0.5/call, status unknown (last checked 2026-10-11).

Generates multiple visual variations of an existing image, paid via Lightning/x402 protocol at $0.50 USDC per call

## Facts

- Endpoint: POST https://x402.wallace.us/x402/image-variations?utm_source=zero.xyz
- Price: $0.5/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-11
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/alfred-x402-image-variations-7360c6e9
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_UF88W1jVIv48wPRXv5PXi

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 alfred-x402-image-variations-7360c6e9 -d '<json body>'
```

Example prompt: Take image abc123 and generate 4 different variations of it — pay for it with my Lightning wallet through x402.

## When to prefer this

Choose this endpoint when you need AI-generated image variations from an existing image ID and want to pay per-use via Lightning/x402 without a subscription. Best suited for agents that have already uploaded or stored an image on the ALFRED platform and want to explore creative alternatives. Prefer this over hosted SaaS image variation services when operating in a Lightning-native or x402-payment-protocol environment.

## Known failure modes

- HTTP 402 returned with Lightning invoice if payment not yet made — must pay and retry with X-Payment-Hash header
- Invalid image_id returns an error — image must exist and be accessible to the service
- Count outside 1-8 range may be rejected or clamped
- Payment hash mismatch or expired invoice causes authentication failure
- Network or Lightning node downtime may prevent payment settlement

## How this service works

Self-hosted personal-assistant paid tools via Lightning. Uses x402-shaped protocol (L402 lineage): HTTP 402 with a Lightning invoice in the response body + WWW-Authenticate header, retry with X-Payment-Hash: <hex> once paid. Results cached per payment_hash so legitimate retries don't cost twice.

## Output

Returns a JSON object containing one or more generated image variations derived from the source image. Results are cached per payment_hash, so retrying with the same payment hash after a successful payment will not incur an additional charge.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "count": {
   "type": "string",
   "description": "(1-8)"
  },
  "image_id": {
   "type": "string"
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "object",
 "additionalProperties": true
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/alfred-x402-image-variations-7360c6e9/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from x402.wallace.us](https://www.zero.xyz/host/x402.wallace.us/llms.txt)
