{"uid":"cap_RaKoVAEN5DjPfMdDhcANv","slug":"24k-labs-hash-digest-api-86c01fbf","name":"24K Labs Hash Digest API","description":"Compute md5/sha1/sha256/sha512 (or HMAC with a key) of a string; hex + base64 output.","url":"https://api.24klabs.ai/api/v1/hash-digest","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"algo":{"type":"string"},"text":{"type":"string"}}},"responseSchema":{"type":"json","example":{"hex":"b94d27b9...","algo":"sha256"}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.001","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.001/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.001","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.001","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm__RU880z2tGMSx3L53TTW9","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.001","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Computes MD5, SHA-1, SHA-256, or SHA-512 hash (or HMAC variant with a secret key) of a string, returning both hex and base64 encodings.","exampleAgentPrompt":"Can you compute the SHA-256 hash of the string 'hello world' and give me both the hex and base64 versions?","exampleUseCases":[{"title":"API request signature generation","prompt":"I need to sign my API request payload — compute an HMAC-SHA256 of the string 'user_id=42&action=purchase' using my secret key 'mysecretkey123', and give me the hex output."},{"title":"Data integrity fingerprinting","prompt":"Hash the string 'v1.2.3-release-20240601' with SHA-512 so I can store the hex digest as an integrity fingerprint in my release manifest."},{"title":"Legacy MD5 checksum for compatibility","prompt":"Generate an MD5 hash of the string 'document_ref_7890' and return it in both hex and base64 — I need to match a legacy system that uses MD5 checksums."}],"resultDescription":"Returns a JSON object containing the hex-encoded digest, the base64-encoded digest, and the algorithm used, for the requested hash function (MD5, SHA-1, SHA-256, or SHA-512) optionally keyed with an HMAC secret.","failureModes":["Missing or empty input string returns a 400 validation error","Unsupported algorithm name returns an error listing valid options","Invalid or malformed HMAC key may return a 400 or processing error","Very large input strings may be rejected or time out","Incorrect Content-Type header causes request parsing failure"],"whenToPreferThis":"Choose this endpoint when you need a quick, hosted hash or HMAC computation without running local crypto libraries — especially useful in agent pipelines, serverless environments, or when you need both hex and base64 output in one call. Prefer it over self-hosted solutions when you want pay-per-use pricing and no infrastructure setup. It covers MD5, SHA-1, SHA-256, and SHA-512 in one unified API.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-13T18:53:31.154Z","isFirstParty":false}