{"uid":"cap_kSw7fxVfIWBx3utYqTdid","slug":"relaystation-hash-utility-6fe1ff6d","name":"RelayStation Hash Utility","description":"$0.0002/MB. Hash bytes with SHA-256, SHA-512, SHA-1, or MD5 — digests as hex. 1¢ x402 min; remainder auto-credits — relaystation.ai/penny","url":"https://api.relaystation.ai/v1/utils/hash","method":"POST","headers":{},"bodySchema":{"type":"object","$schema":"https://json-schema.org/draft/2020-12/schema","required":["input"],"properties":{"input":{"type":"object","required":["type","method","bodyType","body"],"properties":{"body":{"type":"object","properties":{"algo":{"enum":["sha256","sha512","sha1","md5"],"type":"string"},"data":{"type":"string","minLength":1},"file":{"type":"object","description":"cputools input-source: { inline: <base64 ≤ 4 MiB> } or { inputKey: <scratch key from /v1/cputools/upload-url, ≤ 50 MB> }."}}},"type":{"type":"string","const":"http"},"method":{"enum":["POST","PUT","PATCH"],"type":"string"},"bodyType":{"enum":["json","form-data","text"],"type":"string"}},"additionalProperties":false},"output":{"type":"object","required":["type"],"properties":{"type":{"type":"string"},"example":{"type":"object"}}}}},"responseSchema":null,"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.01","displayCostAsset":"USDC","priceDynamic":false,"priceHint":null,"priceStatus":"priced","priceSource":"registry","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.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_puz_9NIcvARG8f_r1rhrI","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.01","costPer":"request","priority":0,"asset":null,"unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Hashes arbitrary bytes using SHA-256, SHA-512, SHA-1, or MD5 and returns the digest as a hex string, billed per megabyte of input.","exampleAgentPrompt":"Compute the SHA-256 hash of this text and give me the hex digest: 'Hello, world! This is my document content.'","exampleUseCases":[{"title":"File integrity checksum before upload","prompt":"Before I upload this document, compute its SHA-256 hex digest so I can store it for integrity verification later — here's the content: 'Invoice #1042: $5,000 due 2024-06-01'."},{"title":"Deduplication fingerprint for stored content","prompt":"I need to deduplicate my article cache — can you generate an MD5 hex hash of this article body so I can check if I've already stored it? The text is: 'The quick brown fox jumps over the lazy dog, again and again.'"},{"title":"Data signing preparation with SHA-512","prompt":"Hash this JSON payload using SHA-512 and return the hex digest so I can include it in my audit log: '{\"user\":\"alice\",\"action\":\"delete\",\"timestamp\":\"2024-05-15T10:00:00Z\"}'."}],"resultDescription":"Returns the hex-encoded digest of the input bytes using the chosen algorithm (SHA-256, SHA-512, SHA-1, or MD5). The response contains the hash string ready to use for integrity checks, deduplication, or signing workflows. Billing is $0.0002 per MB of input, with a 1¢ minimum charged via x402; any remainder is auto-credited.","failureModes":["Unsupported algorithm specified — endpoint accepts only SHA-256, SHA-512, SHA-1, MD5","Empty or missing input body — returns error indicating no data to hash","Malformed request payload — missing required algorithm or data fields","Payment failure via x402 — insufficient USDC balance or wallet not configured","Input data too large — may hit size or timeout limits for extremely large payloads"],"whenToPreferThis":"Choose this endpoint when you need a fast, pay-per-use cryptographic hash over HTTP without managing your own hashing infrastructure. It is especially useful in agentic workflows where a step requires a checksum, fingerprint, or integrity digest and spinning up local compute is impractical. It supports four common algorithms (SHA-256, SHA-512, SHA-1, MD5), making it flexible for legacy compatibility (MD5/SHA-1) or modern security needs (SHA-256/SHA-512). Prefer it over local computation when the agent runtime lacks native crypto libraries or when the hash must be performed server-side for audit reasons.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-14T00:35:30.412Z","isFirstParty":false}