# PrepLayer.ai Content-Addressable Hashing

> PrepLayer.ai Content-Addressable Hashing is a paid API for AI agents from api.maximusmediahouse.com, paid per call via x402, $0.002/call, status unknown (last checked 2026-10-29).

Computes a hex digest hash of input text using sha256, xxhash64, or murmur3, returning the digest, algorithm used, and byte count for caching and deduplication workflows.

## Facts

- Endpoint: POST https://api.maximusmediahouse.com/v1/hash?utm_source=zero.xyz
- Price: $0.002/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-29
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/preplayer-ai-content-addressable-hashing-2c296d79
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_E3m_q9rfR5C3EJUJbvCX1

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 preplayer-ai-content-addressable-hashing-2c296d79 -d '<json body>'
```

Example prompt: Hash this product description using xxhash64 so I can use it as a cache key: 'Ultra-lightweight titanium hiking boots with waterproof membrane and Vibram outsole, available in sizes 6-14.'

## When to prefer this

Choose this endpoint when you need a fast, deterministic, content-addressable hash of a text string for caching, deduplication, or change detection. Prefer sha256 for cryptographic integrity checks and compatibility with standard tooling, xxhash64 for high-speed non-cryptographic cache keys, or murmur3 for fast hash table lookups. All three algorithms are deterministic across runs, making them safe for persistent storage keys. Use this over a local hash if you need a managed, consistent hashing service callable from any environment without local crypto dependencies.

## Known failure modes

- Text exceeds 1,000,000 character limit — returns error
- Invalid algorithm enum value (not sha256/xxhash64/murmur3) — returns validation error
- Empty text input — may return error or zero-length hash
- Malformed request body — returns 400 bad request
- Payment failure for x402 protocol — returns 402 Payment Required

## How this service works

Content-addressable hashing for caching and dedup. Three algorithms: sha256 (via node:crypto / Web Crypto), xxhash64 and murmur3 (inline pure-JS, deterministic across runs). Returns hex digest + algorithm + byte count.

## Output

A JSON object containing: the hex digest string produced by the chosen algorithm, the algorithm name used (sha256, xxhash64, or murmur3), and the byte count of the input text. All three algorithms produce deterministic output across runs.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "algo": {
   "enum": [
    "sha256",
    "xxhash64",
    "murmur3"
   ],
   "type": "string",
   "default": "sha256",
   "description": "Hash algorithm."
  },
  "text": {
   "type": "string",
   "description": "Source text (1-1000000 chars)."
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/preplayer-ai-content-addressable-hashing-2c296d79/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from api.maximusmediahouse.com](https://www.zero.xyz/host/api.maximusmediahouse.com/llms.txt)
