# Text Hashing API (MD5/SHA family)

> Text Hashing API (MD5/SHA family) is a paid API for AI agents from api-production-17e1.up.railway.app, paid per call via x402, $0.001/call, status down (last checked 2026-09-15).

Computes a cryptographic hash digest of any input text using a specified algorithm (md5, sha1, sha256, sha384, sha512) and encoding (hex, base64, base64url), paid per-call via USDC.

## Facts

- Endpoint: GET https://api-production-17e1.up.railway.app/hash
- Price: $0.001/call
- Payment: x402
- Status: down
- Last checked: 2026-09-15
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/text-hashing-api-md5-sha-family-59d6c6ba
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_ePQTIec7QG4qwT7kXzrI6

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 text-hashing-api-md5-sha-family-59d6c6ba
```

Example prompt: Hash the string 'Hello, world!' using sha256 and give me the result in hex encoding.

## When to prefer this

Use this endpoint when an AI agent needs to compute a cryptographic hash of a text string mid-pipeline — for content addressing, cache/ETag key generation, deduplication checks, or integrity verification — without requiring API key signup, since it uses pay-per-call USDC billing via x402.

## Known failure modes

- Unsupported algorithm name returns an error indicating valid options (md5/sha1/sha256/sha384/sha512)
- Unsupported encoding returns an error indicating valid options (hex/base64/base64url)
- Missing text input returns a validation error
- Payment failure via x402 returns a 402 response with payment details
- Empty string input may return a valid hash of empty content

## How this service works

Hashing for AI agents — give text + an algorithm (md5/sha1/sha256/sha384/sha512) and encoding (hex/base64/base64url) → the digest. Pay-per-call in USDC via x402 — no signup, no API key. Use for content-addressing, dedup and cache/ETag keys, and integrity checks mid-pipeline.

## Output

Returns the computed hash digest as a string in the requested encoding (hex, base64, or base64url), along with the algorithm and encoding that were used.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "required": [
  "url"
 ],
 "properties": {
  "url": {
   "type": "string",
   "description": "The page URL to unfurl."
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/text-hashing-api-md5-sha-family-59d6c6ba/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from api-production-17e1.up.railway.app](https://www.zero.xyz/host/api-production-17e1.up.railway.app/llms.txt)
