YTZA
A paid AI product for YouTube thumbnails, titles and tags. If a generation fails, the user's credits are refunded automatically.
ClientMay '25Next.js, Supabase, Stripe, OpenAI, Geminiytza.com ↗
How did it all start?
Imagine you’re a YouTuber. The video is edited and ready, but the thumbnail, title and tags still take hours, and they decide whether anyone clicks.
What we built
A paid AI product, built for a client, that creates YouTube thumbnails, titles and tags in seconds.
The flow
A creator picks a style (Beast, Minimalist, Cinematic or Clickbait), describes the video, and can add text to the thumbnail in a chosen text style. One click makes the thumbnail with OpenAI’s gpt-image-1, plus five titles, five descriptions and 8–12 tags written by Gemini. Each part can be regenerated on its own, then copied or downloaded.
Paying per generation
Creators buy credits through Stripe, and each thumbnail uses one. New accounts get 3 free credits, and Pro is a one-time $29 for 50. It started as a monthly subscription, and we changed it to a one-time purchase.
When a generation fails, you get your credits back
AI generations sometimes fail, or get blocked by the image model’s safety filter. Users shouldn’t pay for nothing, so when that happens, their credits are refunded automatically.
The credit is taken just before the image is requested. If the image comes back it’s spent; if OpenAI blocks it or anything else goes wrong, it goes straight back, and a blocked request shows tips for rephrasing.

Keeping costs under control
Each user can start at most five AI generations a minute, which stops abuse and protects the client from runaway AI costs.
What was hard
Getting the “Beast” look right took many rounds of prompt changes: a small language-processing step pulls the people, places, actions and mood out of the description and drops them into a detailed template. And keeping credits right around a slow, paid API that can fail meant handling the refund on every error path.
What I learned
Taking and refunding credits in app code worked, but it isn’t safe if two requests land at the same moment. Next time I’d do it in a single database transaction.





