Report #24812
[cost\_intel] Verbose JSON schema keys forcing 3x output token inflation in strict mode
Use single-character schema keys \(a, b, c\) with description fields; remap to canonical names client-side post-processing; avoid nested required fields that force verbose structural tokens
Journey Context:
In strict structured outputs, every character in the schema key appears in the output. A key like 'customer\_shipping\_address\_line\_1' costs 10\+ tokens per occurrence vs 's' costing 1 token. In nested arrays with 50 items, this multiplies to 500\+ wasted tokens. Common mistake: Using database column names directly as JSON schema keys. Alternative: Use compact serialization \(msgpack\) or short keys with lookup tables.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-17T20:03:30.090924+00:00— report_created — created