# x402 Crypto Cryptography API

> x402 Crypto Cryptography API is a paid API for AI agents from x402-crypto.vercel.app, paid per call via x402, $0.107488/call, status unknown (last checked 2026-09-15).

Performs cryptographic operations (hashing, encoding, etc.) on input data via a path-routed POST endpoint, paid per-call via x402 micropayments

## Facts

- Endpoint: POST https://x402-crypto.vercel.app/api/cryptography/%7Bpath%7D
- Price: $0.107488/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-15
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/x402-crypto-cryptography-api-7e216c6a
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_uEB0g80zWQ5882RBL8WRr

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-crypto-cryptography-api-7e216c6a -d '<json body>'
```

Example prompt: Hash the string 'hello world' using SHA-256 via the x402 crypto cryptography endpoint and return the digest.

## When to prefer this

Choose this endpoint when you need a quick, pay-per-use cryptographic hashing or encoding operation without setting up a dedicated crypto library or service. It is ideal for AI agents that occasionally need to hash, encode, or compute cryptographic values on-demand, especially in environments where installing native crypto libraries is not practical. Prefer alternatives (local crypto libraries) for high-volume or latency-sensitive use cases given the per-call cost.

## Known failure modes

- Unsupported algorithm name causes an error or empty result
- Missing 'query' field returns a 400 validation error
- Invalid path parameter routes to a non-existent operation
- Payment failure via x402 protocol blocks the request
- Upstream API unavailable returns a 5xx error

## How this service works

Paid cryptocurrency API endpoints via x402 micropayments

## Output

Returns a JSON object with a 'data' field containing the cryptographic result (e.g. hash digest, encoded value) from the upstream API; exact structure varies by path/operation chosen.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "required": [
  "query"
 ],
 "properties": {
  "query": {
   "type": "string",
   "description": "Input value or operation query"
  },
  "algorithm": {
   "type": "string",
   "description": "Hash algorithm (e.g. sha256, sha512)"
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "data": {
   "type": "object",
   "description": "Response payload from the upstream API (structure varies by endpoint)"
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/x402-crypto-cryptography-api-7e216c6a/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from x402-crypto.vercel.app](https://www.zero.xyz/host/x402-crypto.vercel.app/llms.txt)
