Ai usage bug?

Simply asked AI to place a print when something loops and it ate $3 to do so, basically messing with the AI is too expensive, unsure how a million tokens cost 1.40 and 669246 cost $3.56 can anyone clarify this seems buggy?