ChatBot with OpenAI API and metered billing with Tokens This this source code the article: Monetizing a Gen-AI-Based ChatBot API by Metering Token Usage.