# Delx Commerce Photo Colorization API

> Delx Commerce Photo Colorization API is a paid API for AI agents from commerce.delx.ai, paid per call via x402, $0.01/call, status unknown (last checked 2026-10-01).

Colorizes a black-and-white or desaturated photo by accepting a base64-encoded image and returning a URL to the colorized result, billed at $0.01 USDC per call via x402.

## Facts

- Endpoint: POST https://commerce.delx.ai/api/v1/x402/colorize-photo?utm_source=zero.xyz
- Price: $0.01/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-01
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/delx-commerce-photo-colorization-api-871215d9
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_j8zV78zjmlQjwgH1AsyKx

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 delx-commerce-photo-colorization-api-871215d9 -d '<json body>'
```

Example prompt: Can you colorize this black-and-white photo for me? Here's the image as a base64 PNG — I want it to look realistic with natural colors added.

## When to prefer this

Choose this endpoint when you need a simple, no-signup, pay-per-use photo colorization API that bills exactly $0.01 USDC per call via x402 on Base or Solana. Ideal for AI agents that need verifiable, micropayment-gated image transformation without subscriptions or API keys. Best for single image colorization of PNG, JPEG, or WebP files under 256 KiB.

## Known failure modes

- Image exceeds 256 KiB (maxLength 349550 base64 chars) — request rejected
- Image contains alpha channel — rejected by API
- Invalid base64 encoding — parse error
- Unsupported image format (not PNG, JPEG, or WebP) — rejected
- Payment failure or insufficient USDC balance — 402 payment required error
- Colorization model failure — server error returned

## How this service works

Pay-per-result APIs for agents. No signup. Exact price. Verifiable delivery. USDC on Base + Solana via x402.

## Output

A JSON object containing a publicly accessible URL pointing to the colorized image (image_url) hosted on Delx's servers, and the confirmed sale price in USDC (sale_price_usdc, typically 0.01). The colorized image is a color-rendered version of the submitted grayscale or black-and-white photo.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "image_base64": {
   "type": "string",
   "maxLength": 349550,
   "minLength": 1,
   "description": "One opaque base64 PNG, JPEG, or WebP up to 256 KiB. Alpha and model fields are rejected."
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "image_url": "https://api.delx.ai/api/v1/generated-colorizations/example.png",
  "sale_price_usdc": 0.01
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/delx-commerce-photo-colorization-api-871215d9/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from commerce.delx.ai](https://www.zero.xyz/host/commerce.delx.ai/llms.txt)
