# SHA-512 Hash Generator (UnyKorn / Genesis402)

> SHA-512 Hash Generator (UnyKorn / Genesis402) is a paid API for AI agents from twin.unykorn.org, paid per call via x402, $0.001/call, status unknown (last checked 2026-10-01).

Computes the SHA-512 cryptographic digest of a given text string or raw bytes (hex-encoded), returning the hash and a payment receipt.

## Facts

- Endpoint: POST https://twin.unykorn.org/hash-sha512?utm_source=zero.xyz
- Price: $0.001/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-01
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/sha-512-hash-generator-unykorn-genesis402-ce586fec
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_6uuedOgjmFV10NX2MZVhP

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-512-hash-generator-unykorn-genesis402-ce586fec -d '<json body>'
```

Example prompt: Can you compute the SHA-512 hash of the text 'Hello, world!' for me?

## When to prefer this

Choose this endpoint when you need a SHA-512 (512-bit) digest specifically, rather than SHA-224 or SHA-256. Prefer it over client-side hashing when you need an auditable, on-chain payment receipt as proof of computation, or when operating in an agentic context where third-party hash attestation is valuable. Use SHA-512 over shorter variants when maximum collision resistance is required, such as for signing large documents or high-security fingerprinting.

## Known failure modes

- Invalid hex encoding (hex param not matching ^0x[0-9a-fA-F]* pattern) returns an error
- Text input exceeding 49152 characters is rejected
- Missing both 'hex' and 'text' params leads to empty or error response
- Payment failure via x402 protocol results in 402 response before hashing occurs
- Malformed JSON body returns a 400-level error

## How this service works

SHA-512 digest of text or raw bytes — Genesis402 / UnyKorn Operator Network

## Output

Returns a JSON object with ok:true, the hash type ('hash-sha512'), and the SHA-512 digest of the input. Also includes a payment receipt containing the transaction hash, USD amount charged, and a unique receipt ID, plus an ISO 8601 timestamp of when the digest was generated.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "params": {
   "type": "object",
   "properties": {
    "hex": {
     "type": "string",
     "pattern": "^0x[0-9a-fA-F]*$"
    },
    "text": {
     "type": "string",
     "maxLength": 49152
    }
   }
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "ok": true,
  "type": "hash-sha512",
  "receipt": {
   "tx_hash": "0x<64hex>",
   "amount_usd": 0.001,
   "receipt_id": "g402-<16hex>"
  },
  "generated_at": "<iso8601>"
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/sha-512-hash-generator-unykorn-genesis402-ce586fec/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from twin.unykorn.org](https://www.zero.xyz/host/twin.unykorn.org/llms.txt)
