utilpeek: spell out a number in English words, or parse number words
text_numbersRead-onlyIdempotent
utilpeek: Convert numbers to English words. Returns a number spelled out in English (cardinal, ordinal, year, or currency for 13 currencies, rounded half-even to the minor unit) up to 10^36, or English number words ("two hundred and fifty-first") parsed back to a number. value is a decimal string or an integer, never a float. Input: mode, value or text, optional style and currency. Invalid or out-of-range input is a 422 (not charged). Typically under 0.3 s. Price: USD 0.001. Free: 10 utilpeek calls per IP per UTC day.
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| mode | No | to_words (default: `value` to English words) or to_number (`text` to a number). | to_words |
| text | No | to_number: English number words. | |
| style | No | to_words style: cardinal (default), ordinal, currency or year (an integer 1-9999). | cardinal |
| value | No | to_words: a decimal string or an integer (no floats: no rounding surprises). | |
| currency | No | style=currency: AUD, BRL, CAD, CHF, CNY, EUR, GBP, INR, JPY, MXN, PHP, SGD or USD (default). | USD |
Output Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| text | No | ||
| error | No | Only on an error result: an object {code, message}, or the reason string of an x402 PaymentRequired object. | |
| style | No | ||
| value | No | ||
| words | No | ||
| number | No | ||
| source | No | ||
| currency | No | ||
| rounded_to | No |