# SHA256/SHA512/SHA3/BLAKE2 Cryptographic Hash API (x402)

> SHA256/SHA512/SHA3/BLAKE2 Cryptographic Hash API (x402) is a paid API for AI agents from x402-micro-pay.com, paid per call via x402, $0.003/call, status unknown (last checked 2026-11-20).

Computes a cryptographic hash of input text using SHA-256, SHA-512, SHA3-256, or BLAKE2b-256, returning the hex digest

## Facts

- Endpoint: POST https://x402-micro-pay.com/api/skills/sha256?utm_source=zero.xyz
- Price: $0.003/call
- Payment: x402
- Status: unknown
- Last checked: 2026-11-20
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/sha256-sha512-sha3-blake2-cryptographic-hash-api-x402-d9fea711
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_MC8tGzt08PE9G9OXpLQbN

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 sha256-sha512-sha3-blake2-cryptographic-hash-api-x402-d9fea711 -d '<json body>'
```

Example prompt: Compute the SHA-256 hash of the text 'hello world' and give me the hex digest.

## When to prefer this

Choose this endpoint when you need a deterministic cryptographic hash of a text string with multiple algorithm options (SHA-256, SHA-512, SHA3-256, BLAKE2b-256) and want pay-per-call access with no API key setup. Ideal for AI agents operating with x402 micropayment infrastructure on Base at $0.003/call. Prefer over server-side hashing libraries when the agent runtime lacks native crypto support or when auditability of the hash call is needed.

## Known failure modes

- Text exceeds 400,000 character limit — returns 400 error
- Unsupported algorithm specified outside enum — returns validation error
- Payment not attached — returns HTTP 402 requiring USDC payment on Base via x402
- Invalid encoding specified — returns 400 or defaults to utf-8

## How this service works

41 pay-per-call JSON APIs for AI agents. No account or API key: an unpaid POST returns HTTP 402, pay in USDC on Base with x402 v2, retry. Prices from $0.001 per call.

## Output

Returns a JSON object with: ok (boolean success flag), hex (full hex-encoded hash digest), algo (algorithm used), bytes (input byte count), skill (endpoint name), and hex_prefix (first 8 hex characters of the digest).

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "algo": {
   "enum": [
    "sha256",
    "sha512",
    "sha3_256",
    "blake2b_256"
   ],
   "type": "string",
   "default": "sha256"
  },
  "text": {
   "type": "string",
   "maxLength": 400000
  },
  "encoding": {
   "type": "string",
   "default": "utf-8",
   "maxLength": 16
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "ok": true,
  "hex": "2cf24dba5fb0a30e26e83b2ac5b9e29e1b161e5c1fa7425e73043362938b9824",
  "algo": "sha256",
  "bytes": 5,
  "skill": "sha256",
  "hex_prefix": "2cf24dba5fb0a30e"
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/sha256-sha512-sha3-blake2-cryptographic-hash-api-x402-d9fea711/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from x402-micro-pay.com](https://www.zero.xyz/host/x402-micro-pay.com/llms.txt)
