Ever since reasoning models went mainstream, engineers have started leaving enable_thinking=true turned on globally "just to get smarter outputs." A week later, two alerts fire at once: users complain about 10-second blank screens, and Finance asks why a 20-character JSON response billed 25× more output tokens than expected.

The culprit is invisible in your UI: hidden reasoning_tokens are billed at full output-token prices.

We ran a controlled A/B benchmark (24 live calls, temperature=0) on qwen3.8-flash and qwen3.8-max across 6 enterprise tasks spanning intent routing (CLS-1), dirty extraction (EXT-1/3), ERP rule checks (SUM-3), async race audit (AUD-1), and retrospective accrual math (AUD-2).

Controlled A/B Matrix: Thinking OFF vs ON

Model & Thinking Mode Pass Rate Failed Task Avg Latency Output Tokens Hidden reasoning_tokens 6-Task Cost Cost Multiplier
qwen3.8-flash (OFF) 6 / 6 None 0.74s 117 0 ¥0.00027 1.0×
qwen3.8-flash (ON) 6 / 6 None 6.44s (8.7×) 3,198 (27.3×) 3,056 ¥0.00492 18.2×
qwen3.8-max (OFF) 5 / 6 AUD-2 1.76s 125 0 ¥0.00250 1.0×
qwen3.8-max (ON) 6 / 6 None 8.98s (5.1×) 2,287 (18.3×) 2,163 ¥0.02396 9.6×

Two Hard Engineering Takeaways

  1. Zero Accuracy Gain, 18.2× Bill on Standard Tasks: qwen3.8-flash (OFF) already scored 6/6 in 0.74s using 117 output tokens. Turning Thinking ON burned 3,056 hidden reasoning tokens for 0% accuracy gain, stretching latency to 6.44s (8.7×) and bills to 18.2×.
  2. Real Rescue on Hard Reasoning—At a Steep Price: On qwen3.8-max, Thinking ON genuinely rescued AUD-2 (5/6 → 6/6), but average latency jumped to 8.98s (dangerous for 15s–30s API gateway timeouts) and cost rose 9.6×.

Gateway Governance Pattern (Whitelist + Reasoning Token Alert)

import logging THINKING_WHITELIST = {"deep_code_audit", "postmortem_rca", "contract_multihop"} def call_with_thinking_guard(client, task_type: str, model: str, messages: list[dict]): allow = task_type in THINKING_WHITELIST extra = {"enable_thinking": True, "thinking_budget": 1024} if allow else {"enable_thinking": False} resp = client.chat.completions.create( model=model, temperature=0, max_tokens=2048 if allow else 400, messages=messages, extra_body=extra, ) details = getattr(resp.usage, "completion_tokens_details", None) r_tok = getattr(details, "reasoning_tokens", 0) or 0 if not allow and r_tok > 0: logging.warning("Unexpected reasoning_tokens=%d on non-whitelisted task=%s", r_tok, task_type) return resp.choices[0].message.content 

Reproducible Scripts & Sponsorship