{"uid":"cap_aCuprRhYSjndCzF_TSIjP","slug":"x402-tools-cryptographic-hash-api-69a7d6cd","name":"x402-tools Cryptographic Hash API","description":"Pay-per-call utility APIs for AI agents, settled in USDC via the x402 protocol.","url":"https://x402.nichospt.net/hash?utm_source=zero.xyz","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"input":{"type":"string","maxLength":2000000},"encoding":{"enum":["hex","base64"],"type":"string","default":"hex"},"hmac_key":{"type":"string","description":"If set, returns an HMAC instead of a plain hash"},"algorithm":{"enum":["sha256","sha1","sha512","md5"],"type":"string","default":"sha256"}}},"responseSchema":{"type":"json","example":{"hmac":false,"digest":"2cf24dba5fb0a30e26e83b2ac5b9e29e1b161e5c1fa7425e73043362938b9824","encoding":"hex","algorithm":"sha256"}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.01","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":{"p10Cents":"1.0000","medianCents":"1.0000","p90Cents":"1.0000","minCents":"1.0000","maxCents":"1.0000","p95Cents":"1.0000","sampleCount":1,"varies":false,"failureChargeRate":1},"sessionDeposit":null,"pricing":{"kind":"static","summary":"$0.01/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.01","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.01","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_q6rRFoVCWEBvLD26V9tVU","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.01","costPer":"request","priority":0,"asset":"EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Computes cryptographic hash digests (SHA-256, SHA-1, SHA-512, MD5) or HMAC signatures for arbitrary input strings, paid per-call in USDC via x402.","exampleAgentPrompt":"Hash the string 'hello world' using SHA-256 and give me the result as a hex digest — and use HMAC with the key 'mysecret' if you can.","exampleUseCases":null,"resultDescription":"A JSON object containing the computed digest string (hex or base64 encoded), the algorithm used, the encoding format, and a boolean indicating whether an HMAC was computed instead of a plain hash.","failureModes":["Input exceeds 2,000,000 character limit — request rejected","Unsupported algorithm value outside sha256/sha1/sha512/md5 enum — validation error","Invalid encoding value outside hex/base64 — validation error","Payment not settled via x402 — 402 Payment Required response","HMAC key provided but malformed — error in digest computation"],"whenToPreferThis":"Choose this endpoint when an AI agent needs to compute cryptographic hash digests or HMAC signatures on-demand without managing local cryptographic libraries, especially in serverless or sandboxed environments. It is pay-per-call with no subscription, making it ideal for low-frequency or one-off hashing tasks settled in USDC via x402.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-12T06:32:40.822Z","isFirstParty":false,"canonicalSlug":"x402-tools-cryptographic-hash-api-69a7d6cd"}