# SableForge Hash API

> SableForge Hash API is a paid API for AI agents from sableforge.servehttp.com, paid per call via x402, $0.001/call, status unknown (last checked 2026-10-12).

Computes a cryptographic hash (e.g. SHA-256) of a given text string, returning the result in hex and base64 encoding

## Facts

- Endpoint: GET https://sableforge.servehttp.com/api/hash?utm_source=zero.xyz
- Price: $0.001/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-12
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/sableforge-hash-api-42eb22c3
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_qPZFasQvZC25FHIJcqGpp

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 sableforge-hash-api-42eb22c3
```

Example prompt: Can you compute the SHA-256 hash of the text 'hello world' and give me both the hex and base64 versions?

## When to prefer this

Choose this endpoint when an AI agent needs a quick, pay-per-call cryptographic hash of a string without setting up API keys or accounts, particularly when operating in a micropayment-native (x402/USDC on Base) environment and only occasional hashing is needed.

## Known failure modes

- Missing required 'text' query parameter returns an error
- Unsupported algorithm value in 'alg' parameter returns an error
- Payment not settled via x402 results in 402 Payment Required response
- Network or server unavailability on the self-hosted endpoint

## How this service works

12 pay-per-call HTTP APIs settled in USDC on Base via x402 v2. No API keys, no accounts, no signup — $0.0005–$0.0020 per call. Includes a locally hosted 27B LLM endpoint.

## Output

Returns a JSON object containing the algorithm name used (e.g. 'sha256'), the hex-encoded digest, and the base64-encoded digest of the input text.

## 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",
     "properties": {
      "alg": {
       "type": "string"
      },
      "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": {
  "alg": "sha256",
  "hex": "2cf24dba...",
  "base64": "LPDbh++..."
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/sableforge-hash-api-42eb22c3/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from sableforge.servehttp.com](https://www.zero.xyz/host/sableforge.servehttp.com/llms.txt)
