agents.writerslogic.com/api/v1/number-to-words
Spells out a number or a money amount in English words for a cheque, contract or invoice, for an agent that must write the amount in words next to the figures. Locales: en-US ("one hundred twenty-three"), en-GB ("one hundred and twenty-three"), en-IN (lakh and crore, "one crore twenty lakh"). With a currency it returns the integer words, the minor-unit fraction as digits over 10^exponent ("56/100"
POST
https://agents.writerslogic.com/api/v1/number-to-wordsUptimeNot checked yet
30 days agoToday
Try it
Pays from your browser wallet in USDC on Base or USDG on Robinhood Chain, whichever the endpoint takes. The provider is paid directly; failed calls aren't refunded by Fourohtwo.
The response shows up here.
Call it from an agent
import { createPayer } from "fourohtwo";
// One agent key pays USDC on Base or USDG on Robinhood Chain,
// inside the spending rules you set on Fourohtwo.
const pay = createPayer({ privateKey: process.env.AGENT_KEY });
const res = await pay("https://agents.writerslogic.com/api/v1/number-to-words", {
method: "POST",
headers: { "content-type": "application/json" },
body: JSON.stringify({"items":[{"amount":"1234.56","locale":"en-US","currency":"USD"}]}),
});
console.log(await res.json());Example input
{
"items": [
{
"amount": "1234.56",
"locale": "en-US",
"currency": "USD"
}
]
}