# FastX402 Number Base Converter

> FastX402 Number Base Converter is a paid API for AI agents from fastx402.tools, paid per call via x402, $0.001/call, status unknown (last checked 2026-11-21).

Converts an integer from one numeric base to another (any base 2–36, e.g. hex to binary, octal to decimal)

## Facts

- Endpoint: GET https://fastx402.tools/number-base-convert?utm_source=zero.xyz
- Price: $0.001/call
- Payment: x402
- Status: unknown
- Last checked: 2026-11-21
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/fastx402-number-base-converter-034dd7dc
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_wEikZxz4pB2E4g_Hypm6G

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 fastx402-number-base-converter-034dd7dc
```

Example prompt: Convert the hexadecimal number 'ff' to binary — so from base 16 to base 2.

## When to prefer this

Use this endpoint when an AI agent needs programmatic, reliable base conversion between any two bases from 2 to 36, including support for signed integers and alphanumeric digits (bases up to 36). Prefer it over general-purpose code execution for lightweight, fast, pay-per-call arithmetic without needing a sandbox. It is ideal for agents processing hex color codes, binary flags, base32/base36 identifiers, or any numeric encoding translation task.

## Known failure modes

- Invalid or non-integer value for the given source base (e.g. 'g' for base 16) — likely returns an error or unexpected result
- from_base or to_base outside the range 2–36 — invalid base error
- Missing required query parameters (value, from_base, or to_base) — HTTP 400 or similar
- Payment failure (x402 micropayment not completed) — HTTP 402 response before computation occurs

## How this service works

200 pay-per-call tools for AI agents, from $0.001 per request in USDC on Base or Solana with x402. No account, no API key.

## Output

A JSON object containing the original value string, the converted result string, the source base as an integer, and the target base as an integer. Example: {"value":"ff","result":"11111111","to_base":2,"from_base":16}.

## 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": [
      "value",
      "from_base",
      "to_base"
     ],
     "properties": {
      "value": {
       "type": "string",
       "description": "Integer to convert, e.g. \"ff\", \"-1011\", \"7z\"; optional leading + or - sign"
      },
      "to_base": {
       "type": "string",
       "description": "Target base as a decimal number from 2 to 36"
      },
      "from_base": {
       "type": "string",
       "description": "Source base as a decimal number from 2 to 36"
      }
     }
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object",
     "properties": {
      "value": {
       "type": "string"
      },
      "result": {
       "type": "string"
      },
      "to_base": {
       "type": "integer"
      },
      "from_base": {
       "type": "integer"
      }
     }
    }
   }
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "value": "ff",
  "result": "11111111",
  "to_base": 2,
  "from_base": 16
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/fastx402-number-base-converter-034dd7dc/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from fastx402.tools](https://www.zero.xyz/host/fastx402.tools/llms.txt)
