My backend function makes two OpenAI API calls, 1 to gpt-4o and 2nd to gpt-4o-mini. I am using client.beta.chat.completions.parse() and client.chat.completions.create()
GPT-4o
Token Usage - Prompt Tokens: 1177, Completion Tokens: 153, Total Tokens: 1330
GPT-4o-mini
Token Usage - Prompt Tokens: 3112, Completion Tokens: 199, Total Tokens: 3311
As per
Pricing Details
- GPT-4o:
- Input tokens: $2.50 / 1M tokens
- Output tokens: $10.00 / 1M tokens
- GPT-4o-mini:
- Input tokens: $0.150 / 1M tokens
- Output tokens: $0.600 / 1M tokens
My total cost should be $0.0043168
However, everytime it deducts $0.01.
I also changed both the calls to GPT-4o-mini…still it deducts $0.01.
WHYYY!!!