The weekend demo
Pocket Portrait turns a selfie into a painted avatar. Its maker built it over two evenings with an AI app builder, put it behind a single "Generate again" button and posted it to a subreddit on Friday night.
The button called an image model on every press. It didn't lock while it worked and the server had no limit, because nothing in the prompt that built it had asked for one. People liked it. Some liked it a lot. On Saturday afternoon somebody noticed the endpoint took a plain JSON body and pointed a script at it, using it as a free image farm until Monday morning.
The bill arrived on Tuesday.
The arithmetic
| Visitors over the weekend | 2,400 |
| Average generations each | 6 |
| Generations by people | 14,400 |
| Script: one call every 2 s, for 10 h | 18,000 |
| Total image calls | 32,400 |
| Price per image (assumed) | $0.04 |
| Weekend total | $1,296 |
How it gets caught
The first visitor past 15 presses in an hour raises "Generate again" has no limit, about forty minutes after the post went up. When the script starts, Automated sessions are spending on AI follows within a minute: no pointer, clicks exactly two seconds apart.
The fix
A guard switched on from the alert (10 generations per visitor per hour) stops the people at once, with no deploy. The prompt for the coding assistant adds the server limit and a free-account sign-in after three tries, which stops the script.