
AI
When should you use Structured Outputs instead of function calling in the OpenAI API?
Use `response_format` when the model should answer in a fixed schema. Use function calling when the model should ask your app to do work. This article shows the contract boundary, a local request-shape test, and the failure cases where the wrong choice adds confusion.
About 10 min read










