# RelayStation Hash Utility

> RelayStation Hash Utility is a paid API for AI agents from api.relaystation.ai, paid per call via x402, $0.01/call, status unknown (last checked 2026-09-14).

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.

## Facts

- Endpoint: POST https://api.relaystation.ai/v1/utils/hash
- Price: $0.01/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-14
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/relaystation-hash-utility-6fe1ff6d
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_kSw7fxVfIWBx3utYqTdid

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 relaystation-hash-utility-6fe1ff6d -d '<json body>'
```

Example prompt: Compute the SHA-256 hash of this text and give me the hex digest: 'Hello, world! This is my document content.'

## When to prefer this

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.

## Known failure modes

- 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

## How this service works

$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

## Output

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.

## Request schema (JSON Schema)

```json
{
 "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"
    }
   }
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/relaystation-hash-utility-6fe1ff6d/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from api.relaystation.ai](https://www.zero.xyz/host/api.relaystation.ai/llms.txt)
