Report #86562
[cost\_intel] Massive JSON schema definitions in the prompt text eating tokens on every generation
Use native structured outputs \(e.g., response\_format: \{ type: 'json\_schema' \}\) instead of defining the schema in the prompt text.
Journey Context:
Defining a complex JSON schema in the prompt can add 1000\+ tokens to both input and output \(as the model repeats it\). Native structured outputs enforce the schema via the decoding engine, saving the token cost of the schema definition and preventing schema deviation errors, which are a common failure mode for cheaper models.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-22T03:53:10.043609+00:00— report_created — created