---
title: "Discussion on \"Letting visitors try my AI video generator without an account, without going broke\" | Hashnode"
description: "Discussion on \"Letting visitors try my AI video generator without an account, without going broke\". Every free generation costs me real money. Here's how I let strangers try it anyway"
url: "https://hashnode.com/posts/letting-visitors-try-my-ai-video-generator-without-an-account-without-going-broke/6ae08be1fe019808d44cf5b8"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [Letting visitors try my AI video generator without an account, without going broke](https://milostu.hashnode.dev/letting-visitors-try-my-ai-video-generator-without-an-account-without-going-broke?utm_source=hashnode&utm_medium=feed)

Every free generation costs me real money. Here's how I let strangers try it anyway

Oct 27 · 9 min read · milostu.hashnode.dev  
Read the article

-   [#saas](https://hashnode.com/tag/saas)
-   [#cloudflare](https://hashnode.com/tag/cloudflare)
-   [#security](https://hashnode.com/tag/security)
-   [#indie-hackers](https://hashnode.com/tag/indie-hackers)
-   [#ai](https://hashnode.com/tag/ai)

## Written by

[Milos Tu](https://hashnode.com/@milostu)

@milostu

  
[View profile](https://hashnode.com/@milostu)

## Responses 8

Markdown supported · ⌘↵ to post

[Kartik N V J K](https://hashnode.com/@kartik-nvj)

[Oct 28](https://hashnode.com/posts/letting-visitors-try-my-ai-video-generator-without-an-account-without-going-broke/6ae08be1fe019808d44cf5b8/comment/6ae1feb23cbb4b197b976363)

Spending the allowance before the provider call, and setting the refunded flag in the same D1 batch as the refund itself, is how I'd build it too. I couldn't work out one case from the post. When a job stuck in processing gets closed out on the guest's next try, is that an unknown outcome with no refund, or do you check with the provider first?

[Milos Tu](https://hashnode.com/@milostu)

[Nov 5](https://hashnode.com/posts/letting-visitors-try-my-ai-video-generator-without-an-account-without-going-broke/6ae08be1fe019808d44cf5b8/comment/6ae1feb23cbb4b197b976363#reply-6aec3d3c369b0451fc7b78c8)

Good catch, the post skipped that. It doesn't check with the provider first. When the guest tries again, a job that's been stuck for a few minutes gets closed as failed. If the provider never gave me a task ID, nothing ran, so the allowance goes back. If it did, the allowance stays spent, because otherwise closing the tab would earn a free extra try.

The weak spot is a job that really did fail at the provider while the tab was closed: that guest loses the try. One status check before closing would fix that. I already ask the provider first on the paid video path, so I should do the same here. It hasn't come up in production yet, but it's the fairer design.

[Furqan Ashraf](https://hashnode.com/@jfreaks)

[Oct 28](https://hashnode.com/posts/letting-visitors-try-my-ai-video-generator-without-an-account-without-going-broke/6ae08be1fe019808d44cf5b8/comment/6ae1e4862e911415069a77c8)

For per-use cost, the layer I'd add sits between your device signature and the global cap: what kind of network the request comes from.

Part of it is free on Workers already. `request.cf.asn` and `request.cf.asOrganization` tell you when a "visitor" is a cloud provider, and those guests could get zero free generations instead of the normal allowance. That catches the lazy scripts at no cost.

It won't catch residential proxies or VPNs, which is how someone walks around per-IP limits. That needs an IP reputation lookup, called only on the generate path. We sell one (disclosure: I work at IPGeolocation.io). It's a paid feature and it means sending the IP to a third party, which you'd want in your privacy note, so it only makes sense once abuse costs you more than the plan: [https://ipgeolocation.io/ip-security-api.html](https://ipgeolocation.io/ip-security-api.html)

On Praneet's question, I'm curious too: when the global cap hits mid-day, do new visitors get "come back tomorrow" or a nudge to sign up?

[Milos Tu](https://hashnode.com/@milostu)

[Nov 5](https://hashnode.com/posts/letting-visitors-try-my-ai-video-generator-without-an-account-without-going-broke/6ae08be1fe019808d44cf5b8/comment/6ae1e4862e911415069a77c8#reply-6aec3d639f337ab6b17a80c9)

Thanks for the idea, and for the disclosure. Treating data center networks differently is a good cheap check, since real visitors rarely come from them and it costs nothing on Workers. I'll look at how that would fit.

I agree with your own test on the paid reputation lookup. The global cap already limits what abuse can cost me, and traffic is still small, so it isn't worth another bill or another third party in the privacy policy yet.

On the cap: right now it's a plain "at capacity, try again later" message, with more detail in my reply to Praneet. I think it should nudge people to sign up instead.

[Furqan Ashraf](https://hashnode.com/@jfreaks)

[Nov 5](https://hashnode.com/posts/letting-visitors-try-my-ai-video-generator-without-an-account-without-going-broke/6ae08be1fe019808d44cf5b8/comment/6ae1e4862e911415069a77c8#reply-6aec4fb924b48b9251d318d1)

Fair call. The global cap is what makes it safe to wait.

One catch for the data-centre check: iCloud Private Relay exits through Cloudflare, Akamai and Fastly, so leave those out or you'll block real iPhone users.

Happy to help if you want a second pair of eyes when you build it.

[Praneet Brar](https://hashnode.com/@praneetbrar)

[Oct 27](https://hashnode.com/posts/letting-visitors-try-my-ai-video-generator-without-an-account-without-going-broke/6ae08be1fe019808d44cf5b8/comment/6ae0919ff55e39c6a626cf83)

The global daily cap being the only layer that really bounds the worst case is the part I liked most. Detection can always be fooled but a hard ceiling can't. When the cap gets hit mid-day, what does a new visitor see, a plain 'come back tomorrow' or something that still gets them to try it?

[Milos Tu](https://hashnode.com/@milostu)

[Nov 5](https://hashnode.com/posts/letting-visitors-try-my-ai-video-generator-without-an-account-without-going-broke/6ae08be1fe019808d44cf5b8/comment/6ae0919ff55e39c6a626cf83#reply-6aec3d87369b0451fc7b7c0a)

Thanks. The honest answer is that it's plain. They click Generate and get "The free trial is at capacity right now, please try again later." It's a rolling 24 hours, so capacity comes back gradually as older jobs age out, not at midnight.

The cap hasn't been hit yet, so I hadn't thought hard about that moment. Looking at it now, the message is a missed chance: an account still works when the trial is full, and it doesn't say so. I'd change it to offer sign-up.

[Praneet Brar](https://hashnode.com/@praneetbrar)

[Nov 9](https://hashnode.com/posts/letting-visitors-try-my-ai-video-generator-without-an-account-without-going-broke/6ae08be1fe019808d44cf5b8/comment/6ae0919ff55e39c6a626cf83#reply-6af1b8bca5f59804a75e7632)

Thanks Milos, that's a clear answer. Offering sign-up right in the capacity message sounds like a good fix, since that's the moment someone is most likely to try an account. Will you say that an account skips the wait, or just show the sign-up button?
