JSON mode
A constraint that forces the model's output to be valid JSON.
A constraint that forces the model's output to be valid JSON. Reduces parse errors compared to "please output JSON" in the prompt. Some providers go further and let you constrain to a specific schema.