# capi2 SHA-256 Hashing Utility

> capi2 SHA-256 Hashing Utility is a paid API for AI agents from capi2-demand-tools.onrender.com, paid per call via x402, $0.0005/call, status unknown (last checked 2026-09-16).

Computes the SHA-256 hash of arbitrary UTF-8 text, returning the hex digest, base64 encoding, and byte count.

## Facts

- Endpoint: POST https://capi2-demand-tools.onrender.com/v1/hash/sha256
- Price: $0.0005/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-16
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/capi2-sha-256-hashing-utility-6390b3e3
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_mayUS093ZydQfp4WJzdnz

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 capi2-sha-256-hashing-utility-6390b3e3 -d '<json body>'
```

Example prompt: Can you compute the SHA-256 hash of the text 'Hello, world!' and give me both the hex digest and the base64 encoding?

## When to prefer this

Choose this endpoint when an AI agent needs a fast, pay-per-call SHA-256 hash without managing any cryptographic library or infrastructure — ideal for agents operating in x402-enabled micropayment environments where spinning up local crypto is impractical or not permitted.

## Known failure modes

- Empty or missing 'text' field returns a 400 validation error
- Input too large may result in a timeout or request rejection
- Payment failure (insufficient USDC balance) returns an x402 payment-required error
- Service unavailability on Render free tier may cause cold-start delays or 503 errors

## How this service works

Paid x402 utilities and live intelligence for autonomous agents: hashing/encoding plus public web lookup, domain intelligence, API discovery audit, evidence extraction and x402 health.

## Output

A JSON object containing the SHA-256 hash in hex format, the same hash encoded as base64, the byte length of the input, and the algorithm name ('sha256').

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "text": {
   "type": "string",
   "minLength": 1,
   "description": "UTF-8 text to process."
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "hex": "55ea...",
  "bytes": 11,
  "base64": "Veo...",
  "algorithm": "sha256"
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/capi2-sha-256-hashing-utility-6390b3e3/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from capi2-demand-tools.onrender.com](https://www.zero.xyz/host/capi2-demand-tools.onrender.com/llms.txt)
