frontpage.
newsnewestaskshowjobs

Made with ♥ by @iamnishanth

Open Source @Github

Open in hackernews

Ask HN: How do you handle charging users for AI usage?

4•copypaper•7h ago
I know this question gets asked every now and then, but I'm curious what the latest recommendation is for handling AI usage in AI dependent applications. For reference I'm building something that processes real time data on demand with each query. Each query will use an average of ~50k tokens. As data will change per query, I will not benefit from caching. I'm trying to figure out how to fairly charge users for AI usage in a simple way without running in the negative.

A couple of thoughts off the top of my head:

1. Credit based pricing. Base service price + included "credits" per month w/ ability to purchase additional credits. I see this the most commonly. But it gets pretty confusing what a credit actually means. What if I want a follow up question, is that 0.5 credits? Or what about using a reasoning model, is that 2 credits? What if I offer multiple providers, does OpenAI cost 1.5 credits while Gemini costs 1 credit? Do credits rollover per month? Do they expire?

2. Same as above, but instead credits are actual $USD. Since every API returns how many tokens were used per query, it's easy to calculate how much each question costs. Essentially the same way any AI provider's API works. It would be easy to relay the cost to the end user and show an estimation of exactly how much each query might cost. This allows users to make as many queries as they'd like. If they run out of credits, they can just top up. However, seeing a usage meter and the cost per query might be off putting to the user seeing their balance drain with each question they ask-- as if they're losing something each time they ask a question.

3. Eat the cost and add generic limits. Base service price + avg cost of anticipated AI usage. Similar to how AI providers' chat bots work. You pay a base price with a token bucket rate limiter. Makes sense if you own the API, but gets confusing as soon as you have more than 1 provider with different pricing. This one seems like the best because you can impose arbitrary limits and adjust them as needed. The one drawback is that it punishes power users. If a user heavily relies on this application, I want them to be able to use it as much as they'd like without running into rate limits. Maybe have multiple plans for extended limits? Not my preferred approach, but might be the best option imo.

4. BYOK Hybrid - bring your own key in addition to #3 above (doesn't make sense for #1 or #2). Regular users can just use the application as needed as mentioned in #3 while power users can bring their own key. I'd love to be able to offer this, but this brings great responsibility to properly store the user's API key. Are there any other drawbacks to BYOK? The only one I can think of is that your system prompt can be leaked if a provider has logs. Luckily there isn't really anything special in my prompt; the bulk of it is just the context which is not easily replicable.

While #2 logically makes the most sense, it doesn't provide the best user experience. I am leaning towards #3/4 right now. Is there anything I missed or flaws with this approach? What has been working for you guys?

Comments

yamatokaneko•2h ago
As a user, the issue with 1 and 2 is that you're constantly reminded of the cost, which discourages usage.

Personally, I prefer 3, even though I know I might be wasting some value by not hitting the limit each month. I think it’s because I know exactly how much I’ll pay upfront.

That said, when designing pricing and limits for 3, it’s important to ensure most users don’t hit the cap too quickly. Hitting the limit the day after paying would be a terrible experience. Finding the sweet spot % would be intersting.

Ten Days of Silence – Vipassana

https://shahvirsarkary.substack.com/p/ten-days-of-silence-vipassana
1•shav7•1m ago•0 comments

ASK HN: Why Google's Gemini 2.5 paper has 3295 authors?

https://arxiv.org/abs/2507.06261
1•tzury•3m ago•0 comments

Show HN: Refine – A Local Alternative to Grammarly

https://refine.sh
1•runjuu•14m ago•0 comments

An Impossible Blueprint for a Symbiotic Truth Engine

1•TheSeaGoose•27m ago•0 comments

-

https://www.thetimes.com/uk/transport
2•petethomas•27m ago•0 comments

Meta Acquires Voice AI Startup PlayAI, Continuing to Add Talent

https://www.bloomberg.com/news/articles/2025-07-11/meta-acquires-voice-ai-startup-playai-continuing-to-add-talent
1•mandeepj•30m ago•0 comments

Open Architecture designs conical Sun Tower as "giant sundial"

https://www.dezeen.com/2024/11/04/open-architecture-sun-tower-giant-sundial/
2•tzury•34m ago•0 comments

Bill Dilworth, Caretaker of 'The New York Earth Room,' Is Dead

https://www.nytimes.com/2025/07/12/arts/bill-dilworth-dead.html
1•salynchnew•36m ago•2 comments

Claude Neptune – AI-Powered Development Platform

https://claudeneptune.online
1•yszhu•38m ago•0 comments

Hards Things First

https://www.subbu.org/articles/2025/hard-things-first/
1•gpi•43m ago•0 comments

Still copy-pasting from Notepad every time?

2•slashitapp•46m ago•0 comments

Silicon Valley is racing to build the first $1T unicorn

https://www.economist.com/business/2025/07/10/silicon-valley-is-racing-to-build-the-first-1trn-unicorn
3•petethomas•46m ago•1 comments

Filesystems and the problems of exposing their internal features

https://utcc.utoronto.ca/~cks/space/blog/tech/FilesystemsNotExposingFeatures
2•colinprince•47m ago•0 comments

WHDLoad, the AmigaOS friendly Harddisk-Install package

https://whdload.de/
1•vardump•48m ago•0 comments

Nia: MCP that provides more context to coding agents

https://trynia.ai
2•jellyotsiro•49m ago•0 comments

Show HN: Urban Dictionary for Alignment Science Terms

https://www.alignmentdictionary.com/
1•nicetomeetyu•52m ago•0 comments

How the Cold War Culture of Anti-Communism Shaped Protest in the Sixties

https://www.jofreeman.com/sixtiesprotest/berkeleytalk.htm
1•akkartik•53m ago•0 comments

Ralph Wiggum as a "Software Engineer"

https://ghuntley.com/ralph/
1•ghuntley•58m ago•0 comments

Create custom Manuals uxing Tuxcards and Base64

http://erstaunlichdesign.blogspot.com/2025/07/create-custom-manuals-uxing-tuxcards.html
1•lihaciudaniel•1h ago•0 comments

PseudoSeer: Pseudocode Search Engine

https://pseudoseer.ist.psu.edu
1•0x54MUR41•1h ago•0 comments

Understanding Assembly Part I: RISC-V

https://mcyoung.xyz/2021/11/29/assembly-1/
1•tamnd•1h ago•0 comments

Myanmar's proliferating scam centers. These 'prisons' have three features

https://asia.nikkei.com/static/vdata/infographics/myanmar-scam-centers/
17•WaitWaitWha•1h ago•1 comments

In Air India's wake, revisiting the case for cockpit video recorders

https://theaircurrent.com/aviation-safety/air-india-171-cockpit-video-recorders/
1•caned•1h ago•0 comments

Jack Dorsey says his 'secure' new Bitchat app has not been tested for security

https://techcrunch.com/2025/07/09/jack-dorsey-says-his-secure-new-bitchat-app-has-not-been-tested-for-security/
1•dmitrygr•1h ago•1 comments

Security vulnerability on U.S. trains – known for 13 years

https://www.tomshardware.com/tech-industry/cyber-security/security-vulnerability-on-u-s-trains-that-let-anyone-activate-the-brakes-on-the-rear-car-was-known-for-13-years-operators-refused-to-fix-the-issue-until-now
1•ta988•1h ago•1 comments

Robot performs first realistic surgery without human help

https://techxplore.com/news/2025-07-autonomous-gallbladder-robot-realistic-surgery.html
1•JumpCrisscross•1h ago•0 comments

OpenAI's "Archive" Button in ChatGPT Still Eats Conversations No Way to Recover

2•contentist•1h ago•0 comments

The ongoing story of seconds on the taskbar

https://devblogs.microsoft.com/oldnewthing/20250421-00/?p=111095
1•thunderbong•1h ago•0 comments

Finding a Job: Build Something Real

https://blog.stuartspence.ca/2025-07-finding-a-job-build-something-real.html
1•zulban•1h ago•2 comments

3 Men Battle the FBI over Buried Civil War Gold. 'Stuff Just Doesn't Add Up.'

https://www.wsj.com/politics/national-security/civil-war-gold-treasure-hunters-fbi-7533544e
2•cwwc•1h ago•1 comments