A credit ledger for a free AI image tool: 2 per image, 3 per 720p clip A developer on the freeaigenerator.ai team described building an explicit credit ledger for a free AI image and video tool: 30 credits, 2 per image, 3 per 720p clip, with no auto-renew. The ledger debits at job creation rather than completion and refunds credits in the same transaction that marks a job failed, while a unique index on (user_id, client_token) makes resubmits idempotent and prevents double-charging. Video is capped at 720p because 1080p roughly triples encode time and pushes jobs past the point where a browser tab feels responsive. Most "free" AI tools hide the quota behind a sign-up and a progress bar. Ours is small and explicit: 30 credits, 2 per image, 3 per 720p clip, no auto-renew. Building that ledger turned out to be more interesting than the model call it meters. A still is one model pass. A clip is a still plus a frame pass and an encode, so it costs 1.5x. That ratio is the only pricing decision we made; everything else is bookkeeping. The ledger debits at job creation, not at completion. If the queue drops the job or the renderer throws, the same transaction that marks the job failed puts the credits back. The alternative — debit on success — looks friendlier and is worse. A user with 1 credit can fire ten parallel jobs, and you only collect from the one that finishes first. Debit-first makes the balance a real constraint instead of a suggestion. Every submit carries a client token. The same token returns the original job id instead of charging again. Without it, a double-click on a slow connection becomes a refund request, and refund requests are the most expensive support ticket you can invent. One unique index on user id, client token removed an entire category of support mail. We cap video at 720p on purpose. 1080p roughly triples encode time and pushes the job past the point where a browser tab feels alive. At 720p, a five-second clip comes back while the user is still looking at the page, which matters more than the extra pixels for the use cases we built for: a marketplace listing, a blog header, a five-second loop. The cap is also honest. A tool that says "720p" and delivers it beats one that promises 4K and queues you behind a paid tier. Credits do not expire and nothing renews. That is not generosity, it is scope: no stored card, no dunning, no failed-payment email at 3am. The trade-off is that we cannot upsell on renewal — the product has to be good enough that people come back and buy a pack. Thirty credits is fifteen images, or ten clips, or any mix. That is enough to test a prompt, find a look, and animate the frame you like — without a subscription you forget to cancel. If you want to poke at the ledger from the outside, the first image needs no account at all: freeaigenerator.ai https://freeaigenerator.ai/?utm source=devto&utm medium=article&utm campaign=credit-ledger&utm content=freeaigenerator Disclosure: I work on this site.