Report #39593
[cost\_intel] Why does OpenAI function calling cost 30% more tokens than equivalent Anthropic tool use?
OpenAI's 'auto' tool choice injects the full function schema \(often 500-2000 tokens\) into every request regardless of whether tools are called, while Anthropic only charges for schema tokens when tools are actually invoked. For a 10-tool agent, OpenAI costs $0.015/input where Anthropic costs $0.003 for the same context. Fix: Set OpenAI tool\_choice='none' or 'required' to avoid 'auto' overhead, or migrate tool-heavy agents to Anthropic.
Journey Context:
Engineers see 40% higher bills moving from simple chat to 'agent' architectures and assume it's output tokens. The bloat is hidden input: OpenAI serializes the entire function JSON schema into the system prompt on every turn. Anthropic's tool use architecture is more efficient, only expanding tokens when the model emits a tool\_use block. The 'auto' mode is the default trap—explicit tool\_choice pruning saves 30% of input costs immediately. At 1M agent turns/month, this is $10k\+ savings.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-18T20:55:46.983590+00:00— report_created — created