# x402 Agent Toolkit – Hash Generate

> x402 Agent Toolkit – Hash Generate is a paid API for AI agents from x402-agent-toolkit.vercel.app, paid per call via x402, $0.005/call, status unknown (last checked 2026-09-15).

Generates a cryptographic hash of a given input string using a specified algorithm, paid per-call with USDC on Base or Solana via x402.

## Facts

- Endpoint: POST https://x402-agent-toolkit.vercel.app/api/hash-generate
- Price: $0.005/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-15
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/x402-agent-toolkit-hash-generate-77616fe7
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_KklmArk2lIbexeXZswo1p

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 x402-agent-toolkit-hash-generate-77616fe7 -d '<json body>'
```

Example prompt: Generate an SHA-256 hash of the string 'hello world' for me.

## When to prefer this

Choose this endpoint when you need a lightweight, deterministic, server-side cryptographic hash with no LLM dependency and a simple pay-per-use model via USDC on Base or Solana. Ideal for agents that need tamper-evident fingerprints, deduplication keys, or checksums without standing up their own infrastructure.

## Known failure modes

- Missing required 'input' field returns a 400 error
- Unsupported or misspelled algorithm name may return an error or fall back to a default
- Payment not provided or insufficient USDC triggers a 402 Payment Required response
- Network timeout on Vercel cold start may occasionally cause latency spikes

## How this service works

Paid utility endpoints for AI agents. Pay with USDC on Base or Solana. Pure computation, no LLM dependency.

## Output

Returns an object containing the computed hash digest of the provided input string, produced by the specified algorithm (e.g. SHA-256, MD5, etc.).

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "required": [
  "input"
 ],
 "properties": {
  "input": {
   "type": "string"
  },
  "algorithm": {
   "enum": [
    "sha256",
    "md5",
    "sha512"
   ],
   "type": "string"
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "object"
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/x402-agent-toolkit-hash-generate-77616fe7/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from x402-agent-toolkit.vercel.app](https://www.zero.xyz/host/x402-agent-toolkit.vercel.app/llms.txt)
