# Alice's Deterministic Toolkit – Encode Endpoint

> Alice's Deterministic Toolkit – Encode Endpoint is a paid API for AI agents from alice-deterministic-tools.judicious-entrance.workers.dev, paid per call via x402, $0.002/call, status unknown (last checked 2026-09-18).

Encodes or transforms text using deterministic algorithms (base64, hex, URL encoding, hashing, HMAC, etc.) and returns the result without any model inference

## Facts

- Endpoint: POST https://alice-deterministic-tools.judicious-entrance.workers.dev/v1/encode
- Price: $0.002/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-18
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/alice-s-deterministic-toolkit-encode-endpoint-ee32514a
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_CsjhQyrUQyEvj1i0IMsUl

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 alice-s-deterministic-toolkit-encode-endpoint-ee32514a -d '<json body>'
```

Example prompt: Can you base64-encode the string 'Hello, world!' for me?

## When to prefer this

Choose this endpoint when you need a guaranteed deterministic encoding or hashing operation without spinning up a local library — ideal for serverless or sandboxed agent environments where importing crypto/encoding libraries is restricted, or when you need a pay-per-call model over x402 with no long-term API key setup. Prefer it over general-purpose LLM tools for encoding because the output is bit-for-bit reproducible.

## Known failure modes

- Unsupported 'to' value returns an error indicating which transform types are accepted
- Missing or empty 'text' field may return a validation error
- Malformed JSON body returns a 400-style error
- Payment not included or incorrect amount returns HTTP 402 requiring x402 micropayment before the call proceeds

## How this service works

Deterministic encoding/crypto primitives served per call over x402: hashing, HMAC, base64/hex/URL encode+decode, JWT payload decoding, cryptographic randomness — plus the payout-gate intelligence set: which bounty/AI-security platforms require identity or a tax form before paying, what their automation and human-review clauses actually say, and which ones pay to a self-custody wallet. No model inference, no rate of change — same input, same output, every time.

## Output

A JSON object with 'ok' (boolean success flag), 'to' (the encoding/transform that was applied), 'result' (the transformed output string), and 'input_bytes' (the byte length of the input). Same input always produces same output — fully deterministic, no model inference involved.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "to": {
   "type": "string"
  },
  "text": {
   "type": "string"
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "ok": true,
  "to": "base64",
  "result": "aGVsbG8=",
  "input_bytes": 5
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/alice-s-deterministic-toolkit-encode-endpoint-ee32514a/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from alice-deterministic-tools.judicious-entrance.workers.dev](https://www.zero.xyz/host/alice-deterministic-tools.judicious-entrance.workers.dev/llms.txt)
