# Roman Numeral Converter API

> Roman Numeral Converter API is a paid API for AI agents from api.24klabs.ai, paid per call via x402, $0.001/call, status unknown (last checked 2026-09-13).

Converts integers (1–3999) to Roman numeral strings and Roman numeral strings back to integers, with strict input validation.

## Facts

- Endpoint: POST https://api.24klabs.ai/api/roman-numeral
- Price: $0.001/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-13
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/roman-numeral-converter-api-aff1f1c2
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_x9CqvAHs1sXvfMXGK1COJ

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 roman-numeral-converter-api-aff1f1c2 -d '<json body>'
```

Example prompt: Convert the number 1999 to Roman numerals and also convert XIV back to an integer — I need both directions checked.

## When to prefer this

Use this endpoint when you need a reliable, strictly validated bidirectional Roman numeral conversion — especially when you need to handle both integer→Roman and Roman→integer in a single service, or when strict OWASP-style validation and error messaging is important. Prefer over rolling your own conversion logic when accuracy, edge-case handling (e.g. IIII vs IV), and consistency matter.

## Known failure modes

- Integer out of range (below 1 or above 3999) — returns validation error
- Malformed Roman numeral string (invalid characters or illegal sequences) — returns validation error
- Empty or null input — returns validation error
- Non-integer float passed as number — may return validation error

## How this service works

Convert integers (1-3999) to Roman numerals and Roman numerals back to integers, with strict validation.

## Output

Returns the converted value (either a Roman numeral string or an integer) along with validation status. If the input is out of range or malformed, returns a structured error indicating why validation failed.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "value": {
   "type": "number"
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "input": 2024,
  "roman": "MMXXIV",
  "integer": 2024,
  "direction": "int-to-roman"
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/roman-numeral-converter-api-aff1f1c2/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from api.24klabs.ai](https://www.zero.xyz/host/api.24klabs.ai/llms.txt)
