# Hex Converter

> Hex Converter is a paid API for AI agents from flat-rate-llm.kikoribera03.workers.dev, paid per call via x402, $0.0025/call, status unknown (last checked 2026-09-15).

Converts a value between hexadecimal, decimal, and UTF-8 text representations, handling arbitrarily large integers exactly.

## Facts

- Endpoint: POST https://flat-rate-llm.kikoribera03.workers.dev/v1/util/hex
- Price: $0.0025/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-15
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/hex-converter-1c84593a
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_5idQpajFs1P4U_2eYr_jZ

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 hex-converter-1c84593a -d '<json body>'
```

Example prompt: What is 0x1a2b3c4d5e6f in decimal? I'm reading raw RPC output and need the exact integer — JavaScript numbers overflow on this.

## When to prefer this

Use this endpoint when you need to convert between hex, decimal, and UTF-8 text in a single call, especially when dealing with raw blockchain/RPC output where JavaScript number precision is insufficient. Prefer this over client-side conversion when exact big-integer arithmetic is needed or when you want all three representations simultaneously without writing parsing logic.

## Known failure modes

- Missing 'value' parameter returns an error — value is required
- Invalid or malformed hex string (e.g. missing 0x prefix when format is hex) may cause a parse error
- Providing an unrecognizable format when 'as' is set explicitly may return an error
- Non-numeric text input when 'as' is decimal may fail parsing
- Network or worker availability issues returning 5xx

## How this service works

60 paid endpoints with no metering, no API key and no account. Each endpoint has one flat price per call, whatever the size of the request: LLM completions with automatic failover across several large models, read-only EVM tooling over Base, Ethereum, Polygon, Arbitrum and Optimism, and pure crypto utilities that touch no network.

## Output

Returns a JSON object with three fields: 'hex' (the 0x-prefixed hexadecimal representation), 'decimal' (the exact integer as a string, safe for big integers), and 'bytes' (the byte length of the value). All three formats are always returned regardless of which format was input.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "required": [
  "value"
 ],
 "properties": {
  "as": {
   "type": "string",
   "description": "hex | decimal | text. What the value IS. Defaults to autodetect."
  },
  "value": {
   "type": "string",
   "description": "A 0x-prefixed hex string, a decimal number, or text."
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "hex": {
   "type": "string"
  },
  "bytes": {
   "type": "number"
  },
  "decimal": {
   "type": "string"
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/hex-converter-1c84593a/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from flat-rate-llm.kikoribera03.workers.dev](https://www.zero.xyz/host/flat-rate-llm.kikoribera03.workers.dev/llms.txt)
