# Cheap Utilities Hash Text

> Cheap Utilities Hash Text is a paid API for AI agents from cheap-utilities.x402tookit.com, paid per call via x402, $0.02/call, status unknown (last checked 2026-10-30).

Computes SHA-256, SHA-1, SHA-512, and MD5 digests of a short text string, returning hex and base64 encodings along with byte length and base64 of the input.

## Facts

- Endpoint: GET https://cheap-utilities.x402tookit.com/hash-text?utm_source=zero.xyz
- Price: $0.02/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-30
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/cheap-utilities-hash-text-c2d97a57
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_hpErAHuWDhAgNvylV-1mr

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 cheap-utilities-hash-text-c2d97a57
```

Example prompt: Can you hash the text 'hello world' and give me its SHA-256, SHA-1, SHA-512, and MD5 digests in both hex and base64?

## When to prefer this

Choose this endpoint when you need multiple hash algorithm outputs (SHA-256, SHA-1, SHA-512, MD5) in a single call for a short text string, especially when you also want base64 encodings and byte length without setting up local crypto libraries. Ideal for lightweight agent pipelines that need checksums or fingerprints on the fly without managing dependencies.

## Known failure modes

- Text exceeds 2000 characters — request rejected with validation error
- Empty or missing 'text' query parameter — returns error indicating required field
- Non-UTF-8 or binary input may produce unexpected byte length or encoding results
- Service degraded flag set in response if a partial result is returned

## How this service works

SHA-256, SHA-1, SHA-512 and MD5 digests of a short text in hex and base64, with byte length and base64 encoding.

## Output

Returns a JSON object containing SHA-256 (hex and base64), SHA-1 (hex), SHA-512 (hex), and MD5 (hex) digests of the input text, along with the byte length of the text and a base64 encoding of the original input string.

## 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"
   ],
   "properties": {
    "type": {
     "type": "string",
     "const": "http"
    },
    "method": {
     "enum": [
      "GET"
     ],
     "type": "string"
    },
    "queryParams": {
     "type": "object",
     "required": [
      "text"
     ],
     "properties": {
      "text": {
       "type": "string",
       "description": "Text to hash (up to 2000 characters, UTF-8)"
      }
     }
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object",
     "properties": {
      "md5": {
       "type": [
        "null",
        "object"
       ],
       "properties": {
        "hex": {
         "type": [
          "null",
          "string"
         ]
        }
       }
      },
      "asOf": {
       "type": [
        "null",
        "string"
       ]
      },
      "sha1": {
       "type": [
        "null",
        "object"
       ],
       "properties": {
        "hex": {
         "type": [
          "null",
          "string"
         ]
        }
       }
      },
      "bytes": {
       "type": [
        "null",
        "number"
       ]
      },
      "sha256": {
       "type": [
        "null",
        "object"
       ],
       "properties": {
        "hex": {
         "type": [
          "null",
          "string"
         ]
        },
        "base64": {
         "type": [
          "null",
          "string"
         ]
        }
       }
      },
      "sha512": {
       "type": [
        "null",
        "object"
       ],
       "properties": {
        "hex": {
         "type": [
          "null",
          "string"
         ]
        }
       }
      },
      "source": {
       "type": [
        "null",
        "string"
       ]
      },
      "reasons": {
       "type": [
        "array",
        "null"
       ],
       "items": {
        "type": "string"
       }
      },
      "summary": {
       "type": [
        "null",
        "string"
       ]
      },
      "verdict": {
       "type": [
        "null",
        "string"
       ]
      },
      "degraded": {
       "type": [
        "boolean",
        "null"
       ]
      },
      "disclaimer": {
       "type": [
        "null",
… (truncated)
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/cheap-utilities-hash-text-c2d97a57/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from cheap-utilities.x402tookit.com](https://www.zero.xyz/host/cheap-utilities.x402tookit.com/llms.txt)
