I tried comparing all the calls that I made to the gpt-4o-mini-realtime-preview-2024-12-17 model over the last three days. The details are as follows (for all calls combined of the day):
Jan 27th: Calculated: $0.86, Billed: $0.41.
Jan 26th: Calculated: $0.19, Billed: $0.12.
Jan 25th: Calculated: $1.23, Billed: $0.50.
What did I do wrong please? Thank you very much in advance for your help!
Question 1: I can’t get costs to add up right. Am I doing something wrong? Is there a way to just get per user session costs via API, rather than trying to total tokens and deriving costs?
Question 2: If not, how do I secure client side billing when the user can always meddle with JS to fiddle with token usage? Just obfuscation, SRI and CSP?