Managing consumable AI costs

AI-generated summary

The discussion revolves around managing AI costs in a Discourse plugin. Titi asks about free usage, access control, and re-invoicing. Falco notes that Cloudflare and Google Gemini offer free tiers, though availability varies by region, and confirms that AI features can be restricted to specific groups. packman highlights that free tiers may not be accessible in all countries, like the UK. Jagster emphasizes that free tiers are for testing, with actual usage incurring costs. rawatkritika suggests cost control via usage limits, role-based access, and internal billing based on usage logs.

Hi,
Thanks for this plugin which looks awesome.
Is it possible to use some of these AI features for free? Otherwise how to control the cost please? Is there a way to give access to AI features only to selected people (cherry picking) ? How can I re-invoice them for the cost? Have you a solution to share ?

Cloudflare and Google Gemini both have a generous free tier. Both can help you get free Related Topics, and Google Gemini can be used for almost every other feature too.

Yes all features have group based access control.

Groups in Discourse can be pay-to-join via plugins, like Discourse Patreon and Discourse Subscriptions.

Seemingly not for all countries. It says the UK isn’t allowed access to the free tier :frowning:

Free tiers can be used when testing. Actual use costs everywhere and that is only that counts.

Most platforms don’t provide completely free access, but you can manage costs by setting usage limits or rate caps. If you want specific people to use the AI features, you can restrict access based on roles and keep an eye on usage through logs. For re-invoicing, many teams track how much each key uses and then bill it back internally or to clients at the end of the month.