# Base Converter

> Base Converter is a paid API for AI agents from api.gadgethumans.com, paid per call via x402, $0.002/call, status unknown (last checked 2026-11-19).

Converts an integer from one numeric base to another, supporting bases 2 through 36.

## Facts

- Endpoint: GET https://api.gadgethumans.com/base-convert?utm_source=zero.xyz
- Price: $0.002/call
- Payment: x402
- Status: unknown
- Last checked: 2026-11-19
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/base-converter-a509f7c2
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_IJXXZ3TvTnQFoOZVRwFUU

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 base-converter-a509f7c2
```

Example prompt: Convert the number 255 from base 10 to hexadecimal (base 16) for me.

## When to prefer this

Use this endpoint when you need a fast, server-side numeric base conversion between any bases 2 through 36 without spinning up local computation. Ideal for agents that need to convert hex color codes, binary flags, or any integer representation on the fly. Prefer this over client-side JavaScript when operating in a sandboxed or server-only environment.

## Known failure modes

- Invalid characters for specified source base (e.g. '9' in base 8)
- Source or target base outside range 2–36 returns an error
- Empty or missing 'value' parameter causes a 400-style error
- Non-numeric or non-string value input causes a parsing error

## How this service works

Convert an integer between bases 2 and 36. Pure CPU, instant.

## Output

Returns a JSON object with a boolean 'ok' field and the converted number as a string in the target base.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "input": {
   "type": "object",
   "properties": {
    "queryParams": {
     "type": "object",
     "required": [
      "value"
     ],
     "properties": {
      "to": {
       "type": "integer",
       "description": "Target base (default 16)"
      },
      "from": {
       "type": "integer",
       "description": "Source base (default 10)"
      },
      "value": {
       "type": "string",
       "description": "Number to convert"
      }
     }
    }
   }
  },
  "output": {
   "type": "object",
   "properties": {
    "example": {
     "ok": true
    }
   }
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "ok": true
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/base-converter-a509f7c2/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from api.gadgethumans.com](https://www.zero.xyz/host/api.gadgethumans.com/llms.txt)
