All examples use BASE_URL — set it to your deployment URL.
POST/api/ascii/generate
Generate ASCII art text from a string (A-Z, 0-9, common punctuation).
const res = await fetch(`${BASE_URL}/api/ascii/generate`, {
method: "POST",
headers: { "Content-Type": "application/json" },
body: JSON.stringify({ text: "HI" })
});
// → { success: true, result: "█ █ █████\n█ █ █ \n████ █ \n█ █ █ \n█ █ █████" }