According to the pricing page on AI Gateway, the total cost for these requests (input + output tokens) should be approximately 7x lower than they are.
Input ~30k + output ~200 = $0.01325, according to the pricing list.
This is decrementing credits in line with what the usage says, so it’s not a UI error. It also appears not to be due to reasoning tokens - these are being logged as 0 through the AI SDK, and the speed of response would support that. I suspect it’s due to Cerebras, as their pricing is substantially higher than z.ai ( https://www.cerebras.ai/pricing ) - is there any way to force the provider to be z.ai to confirm?

For reference, other GLM models are billing correctly:

Solution: Switch the provider in providerOptions to be zai, instead of Cerebras. It is slower but correctly priced.

