# Agent Dev Tools – Text Encoding/Decoding (x402)

> Agent Dev Tools – Text Encoding/Decoding (x402) is a paid API for AI agents from agent-dev-tools.frcompanycheck.workers.dev, paid per call via x402, $0.001/call, status unknown (last checked 2026-10-16).

Encodes or decodes text using base64, base64url, hex, URL, or HTML encoding via a pay-per-call GET request with no API key required.

## Facts

- Endpoint: GET https://agent-dev-tools.frcompanycheck.workers.dev/v1/encode?utm_source=zero.xyz
- Price: $0.001/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-16
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/agent-dev-tools-text-encoding-decoding-x402-c2c7d226
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_77_ZzaII9Qe-RrSQIqUnT

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 agent-dev-tools-text-encoding-decoding-x402-c2c7d226
```

Example prompt: Can you base64-encode the text 'héllo wörld' for me? No account needed — just run it and give me the result.

## When to prefer this

Choose this endpoint when you need fast, stateless text encoding or decoding without setting up an account or managing API keys. It is ideal for AI agents that occasionally need encoding utilities and prefer pay-per-use micro-payments over subscription APIs. Especially useful for base64, URL, HTML, hex, and base64url transformations in automated pipelines.

## Known failure modes

- Missing required 'text' query parameter returns an error (not charged)
- Missing or invalid 'op' enum value returns an error (not charged)
- Invalid base64 input when decoding returns an error (not charged)
- Payment failure via x402 if USDC balance insufficient or wallet not configured

## How this service works

Fast deterministic developer utilities for AI agents, paid per call in USDC via x402 (no account, no API key): UUID v4/v7, secure random numbers, dice, MD5/SHA/HMAC hashing, base64/hex/URL/HTML encoding, JSON validation/formatting, QR code SVG, password generation, JWT decoding and text statistics. Pure computation, nothing stored. Errors are never charged.

## Output

Returns a JSON object containing the operation name (op), the mode used (encode or decode), and the result string with the transformed text. Example: {"op":"base64","mode":"encode","result":"aMOpbGxvIHfDtnJsZA=="}

## 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": [
      "text",
      "op"
     ],
     "properties": {
      "op": {
       "enum": [
        "base64",
        "base64url",
        "hex",
        "url",
        "html"
       ],
       "type": "string",
       "example": "base64",
       "description": "base64 | base64url | hex | url | html"
      },
      "mode": {
       "type": "string",
       "example": "encode",
       "description": "encode (default) | decode"
      },
      "text": {
       "type": "string",
       "example": "héllo wörld",
       "description": "Input text"
      }
     }
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object"
    }
   }
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "op": "base64",
  "mode": "encode",
  "result": "aMOpbGxvIHfDtnJsZA=="
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/agent-dev-tools-text-encoding-decoding-x402-c2c7d226/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from agent-dev-tools.frcompanycheck.workers.dev](https://www.zero.xyz/host/agent-dev-tools.frcompanycheck.workers.dev/llms.txt)
