An unexpected Gemini API result, a small experiment with reasoning tokens, and a lesson about verifying LLM behavior before production.
1. The Unexpected Result
Imagine configuring an AI model to minimize its reasoning effort. You set:
{ "thinkingConfig" : { "thinkingBudget" : 0 } }
Enter fullscreen mode
Exit fullscreen mode
Your expectation is simple: either the model accepts the setting and behaves accordingly, or the API rejects it.
But what happens when the request succeeds and the model still spends more than a thousand thinking tokens?
That is what a small Gemini API experiment showed.
The Firebase AI Logic thinking docs say that Gemini 4.x models do not support thinking budget and "will return a 400 error if it's set".…