Skip to main content
Use response_format with a JSON Schema and the model returns strictly structured JSON your code can parse directly.
The content is a schema-conforming JSON string — parse it directly with JSON.parse / json.loads.