Menu

1 / 6

Gemini Accepted "thinkingBudget: 0". So Why Was It Still Thinking?

DEV Community: firebase·Prikshit·18 days ago
#E4K1tNDi
#devtofirebase#devto#dev#thinking#model
Long article (1491 words) — no AI summary yet.
Reading 0:00
15s threshold

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".…

Continue reading — create a free account

Join HashtagPLUS to read full articles, follow hashtags, vote, and join the conversation.