I am setting up a simple web page that accepts an upload from a user, puts the file in an s3 bucket, gets a document summary via the Kagi Summarizer API, and displays it.
I'm using the muriel engine so the cost per summary is known ahead of time. I want to show something like "7 summaries remaining" so my users can prioritize which documents they upload. I'm not brave enough to have auto-refill balance enabled.