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
- Zero Accuracy Gain, 18.2× Bill on Standard Tasks:
qwen3.8-flash (OFF)already scored6/6in0.74susing117output tokens. Turning Thinking ON burned3,056hidden reasoning tokens for 0% accuracy gain, stretching latency to6.44s(8.7×) and bills to18.2×. - Real Rescue on Hard Reasoning—At a Steep Price: On
qwen3.8-max, Thinking ON genuinely rescuedAUD-2(5/6 → 6/6), but average latency jumped to8.98s(dangerous for 15s–30s API gateway timeouts) and cost rose9.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
- GitHub Benchmark Suite: https://github.com/wangguode/llm-prod-bench/tree/main/p06_to_p10
- Chinese Full Report (Zhihu): https://zhuanlan.zhihu.com/p/2108499060420261231
- Building an LLM gateway or observability tool? Open a
[Benchmark Request]issue on GitHub or emailzhangsanx34@gmail.com.

