Menu

Our test orders were paying for real AI renders, so we made them dry runs
📰

Our test orders were paying for real AI renders, so we made them dry runs

DEV Community: javascript·anders lee·about 23 hours ago
#oG0nVRAj
#devtojavascript#devto#dev#order#test
Reading 0:00
15s threshold

We run a small pay-per-render web app: you upload a selfie, pay once, and a few minutes later you get a 15-second meme video with your face in it. It is one Cloudflare Worker, Stripe Checkout, R2 for files, and a paid video-generation job per order.

That last part is what this post is about. Every order starts two paid jobs (a main pass and a short segment pass that gets spliced in at the end). Together they cost a little over one US dollar per order. That is fine for a customer order. It is not fine for the orders we create ourselves.

Three kinds of orders

Once the site was live, orders came from three places:

Kind Who creates it Pays?…

Continue reading — create a free account

Join HashtagPLUS to read full articles, follow hashtags, vote, and join the conversation.