{"uid":"cap_E3m_q9rfR5C3EJUJbvCX1","slug":"preplayer-ai-content-addressable-hashing-2c296d79","name":"PrepLayer.ai Content-Addressable Hashing","description":"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.","url":"https://api.maximusmediahouse.com/v1/hash?utm_source=zero.xyz","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"algo":{"enum":["sha256","xxhash64","murmur3"],"type":"string","default":"sha256","description":"Hash algorithm."},"text":{"type":"string","description":"Source text (1-1000000 chars)."}}},"responseSchema":null,"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.002","displayCostAsset":"USDC","priceDynamic":false,"priceHint":null,"priceStatus":"priced","priceSource":"probe","requiresHandshake":false,"reviewCount":0,"rating":{"score":"0.00","successRate":"0.00","reviews":0,"stars":null,"state":"unrated"},"availabilityStatus":"unknown","priceObserved":null,"sessionDeposit":null,"pricing":{"kind":"static","summary":"$0.002/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.002","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.002","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_R5MhNe5MHHt9mnZ2Znr-d","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.002","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"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.","exampleAgentPrompt":"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.'","exampleUseCases":[{"title":"Cache key generation for RAG chunks","prompt":"I'm chunking documents for a RAG pipeline — hash each chunk with sha256 so I can use the digest as a content-addressable cache key and avoid re-embedding duplicates."},{"title":"Deduplication check before database insert","prompt":"Before inserting this user-submitted article into the database, compute a murmur3 hash of its text so I can quickly check if we've already stored the same content."},{"title":"Fast lookup fingerprinting for API responses","prompt":"Generate an xxhash64 fingerprint of this API response body so I can store it in Redis and detect when the upstream data has changed without doing a full diff."}],"resultDescription":"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.","failureModes":["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"],"whenToPreferThis":"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.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-29T12:38:28.339Z","isFirstParty":false,"canonicalSlug":"preplayer-ai-content-addressable-hashing-2c296d79"}