# x402 Utility Tools — Hash Text

> x402 Utility Tools — Hash Text is a paid API for AI agents from x402-utils.558686.xyz, paid per call via x402, $0.0001/call, status down (last checked 2026-10-25).

Computes one or more cryptographic hashes (e.g. SHA-256) over an input string and returns the hex digests along with input byte size.

## Facts

- Endpoint: POST https://x402-utils.558686.xyz/v1/tools/hash-text?utm_source=zero.xyz
- Price: $0.0001/call
- Payment: x402
- Status: down
- Last checked: 2026-10-25
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/x402-utility-tools-hash-text-86381259
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_ctSJ7y8v7kdBY5xxcerL9

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 x402-utility-tools-hash-text-86381259 -d '<json body>'
```

Example prompt: Hash the text 'hello world' using SHA-256 and SHA-512 and give me the hex digests.

## When to prefer this

Choose this endpoint when you need a cheap ($0.002), deterministic, server-side hash of a text string without spinning up a local crypto library — especially useful in sandboxed agent environments, for multi-algorithm comparison in one call, or when you need the input byte size alongside the digest. Prefer a local crypto call if latency or cost at very high volume matters.

## Known failure modes

- Unsupported algorithm name causes an error or omission in the hashes map
- Empty text input may return zero-byte result or error
- Invalid JSON body returns a 400-level error
- Payment not attached or insufficient USDC causes a 402 response before processing

## How this service works

A compact x402 utility surface for agents that need cheap, repeatable non-LLM transformations before spending on heavier routes: CSV cleanup, JSON Schema checks, timestamp conversion, JWT decode, URL normalization, hashes, codecs, and text utilities.

## Output

Returns a JSON object with ok:true, the tool name, the original input echoed back, a map of algorithm names to their hex digest strings, and the input byte count. The result is deterministic — same input always yields the same hashes.

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "ok": true,
  "tool": "hash-text",
  "input": {
   "text": "hello",
   "algorithms": [
    "sha256"
   ]
  },
  "route": "/v1/tools/hash-text",
  "result": {
   "hashes": "hashes_example",
   "algorithms": "algorithms_example",
   "inputBytes": 1
  },
  "project": "x402-utility-tools",
  "deterministic": true
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/x402-utility-tools-hash-text-86381259/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from x402-utils.558686.xyz](https://www.zero.xyz/host/x402-utils.558686.xyz/llms.txt)
