# x402 Image Tools – Placeholder & BlurHash Generator

> x402 Image Tools – Placeholder & BlurHash Generator is a paid API for AI agents from image.kagurazaka.dev, paid per call via x402, $0.001/call, status unknown (last checked 2026-10-29).

Returns a BlurHash string, a tiny blurred WebP preview as a data URL, the average color, and the pixel dimensions of a given image URL.

## Facts

- Endpoint: GET https://image.kagurazaka.dev/v1/placeholder?utm_source=zero.xyz
- Price: $0.001/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-29
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/x402-image-tools-placeholder-blurhash-generator-512c1ca2
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_mdaxJnuW_j75qALxHnDe8

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 x402-image-tools-placeholder-blurhash-generator-512c1ca2
```

Example prompt: Can you get the BlurHash, blurred WebP preview, average color, and dimensions for this image: https://example.com/photo.jpg? I need it for a lazy-loading placeholder.

## When to prefer this

Choose this endpoint when you need to precompute lazy-loading placeholders for images — specifically when you want a BlurHash string and/or a tiny blurred WebP data URL alongside the image's average color and dimensions, all in a single call. Ideal for web performance pipelines, CMS integrations, or any UI that shows a colored or blurred placeholder while the full image loads. If you only need dominant colors or full image metadata, use the sibling color or metadata endpoints instead.

## Known failure modes

- Image URL is not publicly accessible or returns a non-200 response
- Image exceeds 20 MB or 40 megapixel limit
- Unsupported image format provided
- Malformed or missing url query parameter
- Network timeout fetching the remote image
- Payment not completed (402 response before processing)

## How this service works

What a page shows while an image loads: its BlurHash, a tiny blurred WebP preview as a data URL, its average color and its dimensions.

## Output

A JSON object with five fields: width (pixels), height (pixels), blurhash (compact string encoding of a blurred representation), average_color (hex string like #7a6b55), and preview_data_url (a data:image/webp;base64,… string usable directly in an img src for an instant blurred placeholder).

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "$schema": "https://json-schema.org/draft/2020-12/schema",
 "required": [
  "input"
 ],
 "properties": {
  "input": {
   "type": "object",
   "required": [
    "type",
    "method"
   ],
   "properties": {
    "type": {
     "type": "string",
     "const": "http"
    },
    "method": {
     "enum": [
      "GET"
     ],
     "type": "string"
    },
    "queryParams": {
     "type": "object",
     "required": [
      "url"
     ],
     "properties": {
      "url": {
       "type": "string",
       "description": "https URL of a JPEG, PNG, WebP, AVIF, GIF, TIFF or SVG image (up to 20 MB, 40 megapixels)"
      }
     }
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object",
     "properties": {
      "width": {},
      "height": {},
      "blurhash": {},
      "average_color": {},
      "preview_data_url": {}
     }
    }
   }
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "width": 1024,
  "height": 683,
  "blurhash": "LEHV6nWB2yk8pyo0adR*.7kCMdnj",
  "average_color": "#7a6b55",
  "preview_data_url": "data:image/webp;base64,..."
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/x402-image-tools-placeholder-blurhash-generator-512c1ca2/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from image.kagurazaka.dev](https://www.zero.xyz/host/image.kagurazaka.dev/llms.txt)
