Robuta

https://www.datacamp.com/de/tutorial/estimating-cost-of-gpt-using-tiktoken-library-python
Learn to manage GPT model costs with TikToken in Python. Explore tokenization, BPE, and estimate OpenAI API expenses efficiently
estimatingcostgptusingtiktoken