# AgentFeed Hash API

> AgentFeed Hash API is a paid API for AI agents from x402.ochinimus.app, paid per call via x402, $0.005/call, status unknown (last checked 2026-11-23).

Computes a cryptographic hash (SHA-256, Keccak-256, or BLAKE2b) of a given input string, returning the digest in hex format

## Facts

- Endpoint: GET https://x402.ochinimus.app/api/hash?utm_source=zero.xyz
- Price: $0.005/call
- Payment: x402
- Status: unknown
- Last checked: 2026-11-23
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/agentfeed-hash-api-a0cde6a9
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_xCa1kqcbwCzBdwdoaMoHB

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 agentfeed-hash-api-a0cde6a9
```

Example prompt: Can you compute the keccak256 hash of the text 'hello world' and give me the result as a 0x-prefixed hex string?

## When to prefer this

Choose this endpoint when you need a quick, pay-per-call cryptographic hash without setting up infrastructure or API keys. It is especially useful for AI agents operating in crypto/blockchain contexts that need keccak256 for EVM compatibility, or for lightweight data integrity checks using SHA-256 or BLAKE2b. Prefer it over self-hosted hashing when operating in an x402 micropayment environment where per-call USDC billing is already in place.

## Known failure modes

- Missing required 'alg' query parameter returns an error
- Missing required 'data' query parameter returns an error
- Input data exceeding 2,048 bytes is rejected
- Invalid 'alg' value (not sha256, keccak256, or blake2b) returns a validation error
- Invalid 'as' enum value returns a validation error
- Payment failure via x402 blocks the response
- Network timeout on the payment or compute layer

## How this service works

Hash: SHA-256, Keccak-256 (the Ethereum hash) or BLAKE2b-512 of UTF-8 text or hex bytes, as hex and 0x-hex. Use when you need to answer: What is the SHA-256, Keccak-256 or BLAKE2b hash of this input? Input up to 2 KB; over that is a 400, never billed.

## Output

Returns a JSON object containing the chosen algorithm name, the hash digest as lowercase hex, the same digest with a 0x prefix, how the input was interpreted (utf8 or hex), and the number of input bytes processed, plus a boolean confirming payment was made.

## 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": [
      "alg",
      "data"
     ],
     "properties": {
      "as": {
       "enum": [
        "utf8",
        "hex"
       ],
       "type": "string",
       "description": "how to read data: utf8 (default) or hex bytes"
      },
      "alg": {
       "enum": [
        "sha256",
        "keccak256",
        "blake2b"
       ],
       "type": "string",
       "description": "the hash"
      },
      "data": {
       "type": "string",
       "description": "the input, up to 2,048 bytes"
      }
     }
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object",
     "properties": {
      "data": {
       "type": "object",
       "properties": {
        "alg": {
         "type": "string"
        },
        "hex": {
         "type": "string"
        },
        "hex_0x": {
         "type": "string"
        },
        "input_as": {
         "type": "string"
        },
        "input_bytes": {
         "type": "number"
        }
       }
      },
      "paid": {
       "type": "boolean"
      },
      "tool": {
       "type": "string"
      }
     }
    }
   }
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "data": {
   "alg": "keccak256",
   "hex": "1c8aff950685c2ed4bc3174f3472287b56d9517b9c948127319a09a7a36deac8",
   "hex_0x": "0x1c8aff950685c2ed4bc3174f3472287b56d9517b9c948127319a09a7a36deac8",
   "input_as": "utf8",
   "input_bytes": 5
  },
  "paid": true,
  "tool": "get_hash"
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/agentfeed-hash-api-a0cde6a9/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from x402.ochinimus.app](https://www.zero.xyz/host/x402.ochinimus.app/llms.txt)
