# ForgeMesh Radix Converter

> ForgeMesh Radix Converter is a paid API for AI agents from x402.forgemesh.io, paid per call via x402, $0.001/call, status unknown (last checked 2026-09-16).

Converts a number from any positional base (2–36) to any other positional base, including binary, octal, decimal, and hexadecimal.

## Facts

- Endpoint: POST https://x402.forgemesh.io/radix-converter
- Price: $0.001/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-16
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/forgemesh-radix-converter-10752920
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_Y5HEBgQ6QekiOuhd8XLeI

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 forgemesh-radix-converter-10752920 -d '<json body>'
```

Example prompt: Convert the decimal number 255 to hexadecimal — I want to see the hex representation for a color code I'm working on.

## When to prefer this

Choose this endpoint when you need a quick, exact, pay-per-call radix conversion without setting up a local library or runtime. It is especially useful in agent pipelines that need on-the-fly base conversion (e.g. hex color manipulation, binary encoding, compiler preprocessing) without installing language-specific math utilities. Prefer this over manual computation or LLM guessing for correctness guarantees.

## Known failure modes

- Invalid characters in value for the given from_base (e.g. '9' in base 8) — likely returns an error or unexpected result
- from_base or to_base outside the 2–36 range — rejected or undefined behavior
- Empty or missing value field — endpoint may error
- Non-integer or floating-point input — may not be supported
- Payment failure or insufficient USDC balance — x402 payment required before processing

## How this service works

Convert a number from one positional numbering system to another, including binary, octal, hex, and custom bases up to 36. Useful for compiler and assembler tooling, color-code translation, checksum work, and computer-science education. Exact digit-by-digit computation replaces manual long division and avoids off-by-one radix mistakes.

## Output

The converted number as a string in the target base. For example, passing value '255', from_base '10', to_base '16' returns 'ff'. The output represents the exact positional-notation form of the input in the requested base.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "value": {
   "type": "string"
  },
  "to_base": {
   "type": "string",
   "description": "2-36, default 2"
  },
  "from_base": {
   "type": "string",
   "description": "2-36, default 10"
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "result": "ff",
  "decimal": 255
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/forgemesh-radix-converter-10752920/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from x402.forgemesh.io](https://www.zero.xyz/host/x402.forgemesh.io/llms.txt)
