# TextKit FNV-1a Hash

> TextKit FNV-1a Hash is a paid API for AI agents from textkit.johnaio281.workers.dev, paid per call via x402, $0.003/call, status unknown (last checked 2026-10-22).

Computes FNV-1a 32-bit and 64-bit hash values for a given text string

## Facts

- Endpoint: GET https://textkit.johnaio281.workers.dev/api/tk/fnv-hash?utm_source=zero.xyz
- Price: $0.003/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-22
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/textkit-fnv-1a-hash-112d5340
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_Wnneq8JGSxKgpFcyvUsEM

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 textkit-fnv-1a-hash-112d5340
```

Example prompt: What's the FNV-1a hash of the string 'hello'? I need both the 32-bit and 64-bit hex values.

## When to prefer this

Choose this endpoint when you need a fast, deterministic, non-cryptographic hash of a text string — particularly FNV-1a, which is popular for hash tables, cache keys, and consistent hashing. Ideal when you don't need cryptographic security (use SHA/MD5 for that) but want a well-known, compact 32-bit or 64-bit fingerprint. Also useful when you want both hash lengths in a single call and need no API key or signup overhead.

## Known failure modes

- Missing required 'text' query parameter returns an error
- Empty string input may return zero-hash values
- Extremely long strings may exceed query parameter length limits
- Network or worker timeout for unusually large inputs

## How this service works

General-purpose text, Unicode and date utilities for AI agents: homoglyph folding and spoofed-domain detection, Unicode script detection, NFC/NFD normalization, grapheme counting, date description (weekday, ISO week, quarter, leap year), business-day counting, slugify, FNV-1a hashing, Shannon entropy, string format detection (uuid, email, url, ipv4, jwt, iban), byte-encoding detection and human-readable byte sizes. Pay per request in USDC on Base via x402 - no signup, no API key, no KYC.

## Output

Returns a JSON object with the input string's character length, its FNV-1a 32-bit hash as a lowercase hex string, and its FNV-1a 64-bit hash as a lowercase hex string. Example: {"length":5,"fnv1a32":"3617a694","fnv1a64":"a430d84680aabd0b"}.

## 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"
     ],
     "type": "string"
    },
    "queryParams": {
     "type": "object",
     "required": [
      "text"
     ],
     "properties": {
      "text": {
       "type": "string"
      }
     }
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object"
    }
   }
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "length": 5,
  "fnv1a32": "3617a694",
  "fnv1a64": "a430d84680aabd0b"
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/textkit-fnv-1a-hash-112d5340/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from textkit.johnaio281.workers.dev](https://www.zero.xyz/host/textkit.johnaio281.workers.dev/llms.txt)
