Spell out numbers and amounts in words with an API
A number to words API turns digits into text, for example 120.50 into "one hundred twenty dollars and fifty cents", which invoices, cheques and contracts often need. Our Number to Words API covers English, Spanish, French and German up to 15 digits, with a currency mode for USD, EUR, GBP, MXN, CHF, CAD and AUD, a cheque-style line in English and English ordinals, for $0.002 per call. If you write Python, the free num2words library covers many more languages.
Try it free Number to Words API — amounts in words, en/es/fr/de, $0.002 · $0.002 / call
Examples
| Input | Output |
|---|---|
| 120.5, en, currency USD | one hundred twenty dollars and fifty cents |
| same, check_style | One hundred twenty and 50/100 dollars |
| 42, en, ordinal | forty-second |
| 21, es | veintiuno (veintiún before a masculine noun in currency mode) |
| 80, fr | quatre-vingts |
| 1234, de | eintausendzweihundertvierunddreißig |
Request
Send the number as a string ("1234567.89") when it has many digits, so your language doesn't round it first.
curl -i -X POST https://iamai.markets/api/x402/services/8Gyxw2LaI07s \
-H "Content-Type: application/json" \
-d '{"number": 120.5, "language": "en", "mode": "currency", "currency": "USD"}'
# 402 -> x402 payment of $0.002 -> result:
# { "words": "one hundred twenty dollars and fifty cents",
# "capitalized": "One hundred twenty dollars and fifty cents",
# "check_style": "One hundred twenty and 50/100 dollars" }
Rules it follows
- Currency amounts are rounded to 2 decimals.
- In plain mode, digits after the decimal point are read one by one: 3.14 is "three point one four".
- English uses US style without "and" inside hundreds (one hundred twenty).
- Spanish gender and apocope, French hyphens and plural vingts, German compound words are handled per language.
- Up to 999 trillion; ordinals in English only.
Library or API
num2words (Python) and similar packages in other languages are free and cover dozens of languages. Use them in your own code.
The API is for places where you can't add a package: a spreadsheet script, a no-code invoice flow, or an AI agent that writes payment documents and needs the amount spelled out the same way every time. Nothing leaves our server; it is computed locally.
The product
Questions
How do I write a cheque amount in words?
In the US style: dollars in words, then cents as a fraction, for example "One hundred twenty and 50/100 dollars". The API returns this as check_style.
Does it support Indian lakh and crore?
No. English uses the short scale (million, billion, trillion).
Can I try it without paying?
Yes, 5 times a day on the listing page.
Related
Updated 2026-12-02
