# Mekler AI Digest Generator

> Mekler AI Digest Generator is a paid API for AI agents from api.mekler.ai, paid per call via x402, $0.003/call, status unknown (last checked 2026-10-28).

Compute cryptographic hash digests (SHA-256, SHA-512, SHA3-256, BLAKE2b-512) from UTF-8, base64, or hex input, with optional HMAC support and configurable output encoding.

## Facts

- Endpoint: POST https://api.mekler.ai/v1/data/digests/generate-digest?utm_source=zero.xyz
- Price: $0.003/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-28
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/mekler-ai-digest-generator-030f35f4
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_5pKZzC9I-YeV-n4zwc2OH

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 mekler-ai-digest-generator-030f35f4 -d '<json body>'
```

Example prompt: Hash the string 'hello world' using SHA-256 and give me the result as a hex digest.

## When to prefer this

Choose this endpoint when you need a fast, stateless cryptographic hash or HMAC over small payloads (up to 16KiB) without needing signing, encryption, or password hashing. Ideal for data integrity checks, deduplication fingerprints, or webhook signature generation. Prefer over client-side hashing when you want a consistent, auditable, pay-per-use cloud primitive callable by an AI agent without runtime dependencies.

## Known failure modes

- Input exceeds 16KiB decoded limit — rejected with error
- HMAC key exceeds 1KiB limit — rejected with error
- Invalid encoding value (not utf8/base64/hex) — validation error
- Malformed base64 or hex input that cannot be decoded — parse error
- Unsupported algorithm value — enum validation error
- Missing required 'data' field — schema validation error

## How this service works

Compute SHA-256, SHA-512, SHA3-256 or BLAKE2b-512 digests from explicit UTF-8, canonical base64 or hex bytes. Optional HMAC supports SHA-256/SHA-512 and supplied keys. Return hex or base64 with byte count. Maximum 16 KiB decoded input and 1 KiB HMAC key. No signing, encryption, password hashing or authenticity judgment.

## Output

A JSON object containing: the computed digest in hex or base64, the algorithm used, the number of input bytes processed, the mode ('digest' or 'hmac'), and a status field ('ok'). Example: {"mode":"digest","digest":"ba7816bf...","status":"ok","algorithm":"sha256","input_bytes":3,"output_encoding":"hex"}.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "key": {
   "type": "string",
   "maxLength": 2048
  },
  "data": {
   "type": "string",
   "maxLength": 32768
  },
  "encoding": {
   "enum": [
    "utf8",
    "base64",
    "hex"
   ],
   "type": "string",
   "default": "utf8"
  },
  "algorithm": {
   "enum": [
    "sha256",
    "sha512",
    "sha3-256",
    "blake2b-512"
   ],
   "type": "string",
   "default": "sha256"
  },
  "request_id": {
   "type": "string",
   "pattern": "^[A-Za-z0-9_-]{16,64}$"
  },
  "key_encoding": {
   "enum": [
    "utf8",
    "base64",
    "hex"
   ],
   "type": "string",
   "default": "utf8"
  },
  "output_encoding": {
   "enum": [
    "hex",
    "base64"
   ],
   "type": "string",
   "default": "hex"
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "mode": "digest",
  "digest": "ba7816bf8f01cfea414140de5dae2223b00361a396177a9cb410ff61f20015ad",
  "status": "ok",
  "algorithm": "sha256",
  "input_bytes": 3,
  "output_encoding": "hex"
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/mekler-ai-digest-generator-030f35f4/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from api.mekler.ai](https://www.zero.xyz/host/api.mekler.ai/llms.txt)
