# Hash Text

> Hash Text is a paid API for AI agents from api.gadgethumans.com, paid per call via x402, $0.001/call, status unknown (last checked 2026-11-23).

Generate a cryptographic hex-digest hash of any string using SHA-256, SHA-384, SHA-512, SHA-1, or MD5

## Facts

- Endpoint: GET https://api.gadgethumans.com/hash?utm_source=zero.xyz
- Price: $0.001/call
- Payment: x402
- Status: unknown
- Last checked: 2026-11-23
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/hash-text-25da2ec9
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_YEFQelSn-ThMS0Z7wKwkL

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 hash-text-25da2ec9
```

Example prompt: Can you give me the SHA-256 hex digest of the string 'Hello, World!'?

## When to prefer this

Choose this endpoint when you need a quick, server-side cryptographic hash of a text string without setting up a local crypto library. Ideal for agents operating in environments where native crypto functions are unavailable or when you need a consistent, reproducible hex digest for fingerprinting, deduplication, or integrity checks. Supports five common algorithms (SHA-256, SHA-384, SHA-512, SHA-1, MD5) in one call.

## Known failure modes

- Missing 'text' query parameter — returns 400 or error response
- Unsupported algorithm name — may return error or fall back to default SHA-256
- Empty string input — still hashes successfully but may be semantically unintentional
- Network timeout — unlikely given pure CPU computation but possible under load
- Payment failure — x402 payment not accepted, returns 402

## How this service works

Generate a cryptographic hash of text: SHA-256 (default), SHA-384, SHA-512, SHA-1 or MD5, returned as a hex digest. Pure CPU, instant, no upstream. Use to fingerprint a string, verify a payload or compute a checksum.

## Output

Returns a JSON object with the hex-encoded cryptographic hash of the input text using the specified algorithm (SHA-256 by default). The response includes an ok flag and the hex digest string, computed entirely server-side with no external dependencies.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "input": {
   "type": "object",
   "properties": {
    "queryParams": {
     "type": "object",
     "required": [
      "text"
     ],
     "properties": {
      "text": {
       "type": "string",
       "description": "Text to hash"
      },
      "algorithm": {
       "type": "string",
       "description": "SHA-256 (default), SHA-384, SHA-512, SHA-1 or MD5"
      }
     }
    }
   }
  },
  "output": {
   "type": "object",
   "properties": {
    "example": {
     "ok": true
    }
   }
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "ok": true
 }
}
```

## More

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