# x402 Image Tools – Placeholder Data (BlurHash, Preview, Color, Dimensions)

> x402 Image Tools – Placeholder Data (BlurHash, Preview, Color, Dimensions) is a paid API for AI agents from 7fg5bxb40m3f0v23.68r.lambda-web.us-east-1.on.aws, paid per call via x402, $0.001/call, status unknown (last checked 2026-10-29).

Given an image URL, returns its BlurHash string, a tiny blurred WebP preview as a base64 data URL, its average hex color, and its pixel dimensions — everything needed to render a polished image placeholder while the full image loads.

## Facts

- Endpoint: GET https://7fg5bxb40m3f0v23.68r.lambda-web.us-east-1.on.aws/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-data-blurhash-preview-color-dimensions-0205527d
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_MKYV0ngJWDaKVFM_TD4h8

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-data-blurhash-preview-color-dimensions-0205527d
```

Example prompt: Can you get me the BlurHash, average color, tiny blurred WebP preview, and dimensions for this image: https://example.com/photo.jpg — I need it to build a nice loading placeholder before the full image appears.

## When to prefer this

Choose this endpoint when you need all the ingredients for a high-quality image lazy-loading experience in one call: BlurHash for CSS/canvas rendering, a tiny inline WebP preview for LQIP (Low Quality Image Placeholder) techniques, the average color for background/skeleton theming, and exact dimensions for layout reservation. It is ideal for front-end pipelines, CMS enrichment, and any scenario where you want to avoid layout shift and improve perceived load performance without running your own image analysis server.

## Known failure modes

- Image URL is not publicly accessible or returns a non-200 status — endpoint cannot fetch the image
- Image format is unsupported (only JPEG, PNG, WebP, AVIF, GIF, TIFF, SVG accepted)
- Image exceeds 20 MB or 40 megapixels — request rejected
- Invalid or malformed URL provided in query params
- Network timeout fetching a slow or large remote image
- Payment not included or insufficient — x402 payment required error

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

Returns a JSON object with: width and height (integer pixel dimensions), blurhash (a compact BlurHash string for rendering a blurred placeholder), average_color (hex string e.g. '#7a6b55'), and preview_data_url (a base64-encoded tiny blurred WebP image as a data URL, ready to embed in HTML or CSS).

## 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-data-blurhash-preview-color-dimensions-0205527d/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from 7fg5bxb40m3f0v23.68r.lambda-web.us-east-1.on.aws](https://www.zero.xyz/host/7fg5bxb40m3f0v23.68r.lambda-web.us-east-1.on.aws/llms.txt)
