# ALFRED x402 Vision — Image Analysis via Lightning Payment

> ALFRED x402 Vision — Image Analysis via Lightning Payment is a paid API for AI agents from x402.wallace.us, paid per call via x402, $0.1/call, status unknown (last checked 2026-09-14).

Analyzes, describes, or OCRs images submitted via URL or base64, gated by a Lightning micropayment using the x402/L402 protocol.

## Facts

- Endpoint: POST https://x402.wallace.us/x402/vision
- Price: $0.1/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-14
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/alfred-x402-vision-image-analysis-via-lightning-payment-02510e23
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_wTPSK3Uo5hNHFGZrTQOJ9

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-vision-image-analysis-via-lightning-payment-02510e23 -d '<json body>'
```

Example prompt: Use the ALFRED vision service to OCR this screenshot for me — here's the image URL: https://example.com/screenshot.png — I need all the text extracted from it.

## When to prefer this

Choose this endpoint when you need pay-per-call image analysis without API key registration, especially in Lightning/x402-native workflows. Suitable for one-off OCR, image description, or visual analysis tasks where you want to pay $0.10 USDC per call via Lightning micropayment and avoid monthly subscription costs. Not suitable for high-volume production use given its self-hosted nature.

## Known failure modes

- HTTP 402 returned on first call with a Lightning invoice in the body and WWW-Authenticate header — agent must pay invoice and retry with X-Payment-Hash header
- Invalid or expired payment hash — endpoint returns 402 or 401 rejecting the payment proof
- Unreachable image URL — server cannot fetch the image, returns an error
- Unsupported task value — only 'describe', 'ocr', 'analyze' are valid task strings
- Self-hosted server downtime — no SLA guarantees as this is a personal server

## 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

A JSON object containing the result of the requested vision task: a natural-language image description for 'describe', extracted text content for 'ocr', or structured visual analysis for 'analyze'. The response is cached per payment hash so retrying after paying the Lightning invoice does not incur a second charge.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "task": {
   "type": "string",
   "description": "(describe|ocr|analyze)"
  },
  "prompt": {
   "type": "string",
   "description": "(optional extra instruction)"
  },
  "image_url": {
   "type": "string",
   "description": "OR image_data (base64)"
  }
 }
}
```

## Response schema (JSON Schema)

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

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/alfred-x402-vision-image-analysis-via-lightning-payment-02510e23/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)
