The pricing page states the price for the 8k context of GPT-4 will be $0.03 / 1K input tokens + $0.06 / 1K output tokens.
I need to know how ChatGPT will handle sub cent amounts, but I can’t find any info on that.
As an extreme example let’s assume an API call of 160 input tokens + 160 output tokens . The math would be: 160 / 1000 * 0,.03$ + 160 / 1000 * 0.06$ = 0.0144$
If I process this API call a 100,000 times (what I intend to do) the outcome very much depends on how OpenAI handles these sub cent amounts:
- rounding down (to 1 cent): 1,000 Dollars.
- no rounding behind the scenes: 1,440 Dollars
- rounding up (to 2 cents): 2,000 Dollars.
That’s quite a difference.
Which one is it?