# 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 numerals and Roman numerals back to integers, with strict validation of both formats.

## Facts

- Endpoint: POST https://api.24klabs.ai/api/v1/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-1b782932
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_wZplNV2g7j0_SwXYSqqAH

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-1b782932 -d '<json body>'
```

Example prompt: Convert 2024 to its Roman numeral equivalent, and also tell me what integer MCMXCIX represents.

## When to prefer this

Choose this endpoint when you need a reliable, validated bidirectional conversion between integers and Roman numerals — especially when strict correctness and range enforcement (1–3999) matter. Prefer it over custom logic when you want both conversion and validation in a single call without implementing Roman numeral rules yourself.

## Known failure modes

- Integer out of range (0 or 4000+) returns a validation error
- Malformed Roman numeral string (e.g. 'IIII' or 'VV') returns a validation error
- Empty or null input returns a bad request error
- Wrong type passed (e.g. float instead of integer) returns a 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 the Roman numeral string for a given integer input, or the integer for a given Roman numeral input — along with validation status indicating whether the input was well-formed and within the supported range (1–3999).

## 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-1b782932/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)
