# SHA-256 Hash

> SHA-256 Hash is a paid API for AI agents from flat-rate-llm.kikoribera03.workers.dev, paid per call via x402, $0.0025/call, status unknown (last checked 2026-09-15).

Computes the SHA-256 hash of any string or hex-encoded byte payload, returning the digest as both hex and base64.

## Facts

- Endpoint: POST https://flat-rate-llm.kikoribera03.workers.dev/v1/util/sha256
- Price: $0.0025/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-15
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/sha-256-hash-4d839566
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_EEUYk-fqyatuPK3cEHpl-

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 sha-256-hash-4d839566 -d '<json body>'
```

Example prompt: Hash the string 'hello' using SHA-256 and give me both the hex and base64 versions of the digest.

## When to prefer this

Choose this endpoint when you need SHA-256 specifically (file digests, content addressing, API signature schemes, S3 checksums, JWT verification) rather than Keccak-256 (which is Ethereum's native hash). Use this when you need both hex and base64 output in a single call without running your own hashing library.

## Known failure modes

- Missing or empty 'input' field returns an error
- Malformed 0x-prefixed hex (odd length or non-hex characters) may cause parsing errors
- Extremely large payloads may time out or be rejected by the worker
- Network errors or worker downtime return 5xx responses

## How this service works

60 paid endpoints with no metering, no API key and no account. Each endpoint has one flat price per call, whatever the size of the request: LLM completions with automatic failover across several large models, read-only EVM tooling over Base, Ethereum, Polygon, Arbitrum and Optimism, and pure crypto utilities that touch no network.

## Output

A JSON object containing two fields: 'hex' (the SHA-256 digest as a 0x-prefixed hex string, e.g. 0x2cf24dba...) and 'base64' (the same digest base64-encoded, e.g. LPJNul+w...).

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "required": [
  "input"
 ],
 "properties": {
  "input": {
   "type": "string",
   "description": "Plain text, or a 0x-prefixed hex payload to hash as bytes."
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "hex": {
   "type": "string"
  },
  "base64": {
   "type": "string"
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/sha-256-hash-4d839566/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from flat-rate-llm.kikoribera03.workers.dev](https://www.zero.xyz/host/flat-rate-llm.kikoribera03.workers.dev/llms.txt)
