I think there may be an issue with how AI Gateway is billing for google/gemini-3-pro-preview, or I am misunderstanding how the pricing is applied.
According to the published price for this model
-
Input tokens $2 per million
-
Output tokens $12 per million
One of my recent calls through Vercel AI Gateway shows the following usage and charge
-
Provider Google Vertex, model
google/gemini-3-pro-preview -
Input tokens 1.1K
-
Output tokens 182
-
Total charge $0.016054
If I calculate this manually
-
Input cost, 1,100 ÷ 1,000,000 × 2.00 = $0.0022
-
Output cost, 182 ÷ 1,000,000 × 12.00 = $0.002184
Total expected cost is therefore about $0.004384.
However I was actually billed $0.016054 for that call, which is roughly 3.6x higher than the expected amount.
I have repeated this with several different requests and each time the charge shown by AI Gateway is around 4x what I would expect from the published per token pricing.
Is this wrong or am I am misunderstanding how the pricing is calculated in this case?
Thanks in advance!