# BLAKE2b Hash Function API

> BLAKE2b Hash Function API is a paid API for AI agents from lin-desk-x402.lindesk.workers.dev, paid per call via x402, $0.001/call, status unknown (last checked 2026-10-11).

Computes a BLAKE2b cryptographic hash of any input text, returning a hex digest of configurable length

## Facts

- Endpoint: GET https://lin-desk-x402.lindesk.workers.dev/v1/texttools/blake2b?utm_source=zero.xyz
- Price: $0.001/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-11
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/blake2b-hash-function-api-a2e052b9
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_vj7dbfB10sUzkB2QWYJCo

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 blake2b-hash-function-api-a2e052b9
```

Example prompt: Compute a 32-byte BLAKE2b hash of the text 'hello world' and give me the hex digest.

## When to prefer this

Choose this endpoint when you need a fast, pay-per-call BLAKE2b hash with no API key or account setup, especially in agentic workflows using x402 micropayments on Base. Prefer BLAKE2b over MD5 or SHA-1 when you need a modern, collision-resistant hash; prefer this endpoint over self-hosted solutions when you want zero-infrastructure overhead in an agent pipeline.

## Known failure modes

- Input text exceeds 100 KiB limit — request rejected
- Invalid digest_size value outside 1–64 range — returns error
- Non-integer or non-numeric digest_size string — schema validation failure
- Missing required 'input' query parameter — 400 bad request
- Payment not completed via x402 protocol — 402 Payment Required before response is returned

## How this service works

Pay-per-call API for AI agents: turn any public web page or PDF into clean, LLM-ready Markdown. $0.002 per call in USDC on Base via x402. No API key, no signup.

## Output

Returns a JSON object with the operation name ('blake2b'), metadata including input character count, output character count, and elapsed milliseconds, plus the hex-encoded BLAKE2b hash digest as a string.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "$schema": "https://json-schema.org/draft/2020-12/schema",
 "required": [
  "input"
 ],
 "properties": {
  "input": {
   "type": "object",
   "required": [
    "type",
    "method"
   ],
   "properties": {
    "type": {
     "type": "string",
     "const": "http"
    },
    "method": {
     "enum": [
      "GET",
      "HEAD",
      "DELETE"
     ],
     "type": "string"
    },
    "queryParams": {
     "type": "object",
     "required": [
      "input"
     ],
     "properties": {
      "input": {
       "type": "string",
       "description": "Input text; max 100 KiB"
      },
      "digest_size": {
       "type": "string",
       "pattern": "^-?\\d+$",
       "description": "1-64 bytes (default 32)"
      }
     }
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object",
     "properties": {
      "op": {
       "type": "string"
      },
      "meta": {
       "type": "object",
       "properties": {
        "chars_in": {
         "type": "integer"
        },
        "chars_out": {
         "type": "integer"
        },
        "elapsed_ms": {
         "type": "integer"
        }
       }
      },
      "result": {}
     }
    }
   }
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "op": "blake2b",
  "meta": {
   "chars_in": 5,
   "chars_out": 32,
   "elapsed_ms": 0
  },
  "result": "46fb7408d4f285228f4af516ea25851b"
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/blake2b-hash-function-api-a2e052b9/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from lin-desk-x402.lindesk.workers.dev](https://www.zero.xyz/host/lin-desk-x402.lindesk.workers.dev/llms.txt)
