When you include response_format in your body, the model guarantees the response matches the JSON schema you sent. Useful for deterministic parsing without retries. If the selected model doesn’t support it, Geek Hub rejects the request before leaving the gateway and returns the list of compatible models.
content arrives as a parseable JSON string. JSON.parse(content) gives you the typed object directly.
Simple mode
OpenAI requires the prompt to contain the word “json” when using json_object. Not a Geek Hub requirement — provider-specific.
Compatible models
12 of 28 chat models support structured outputs.
Rejection
Combine with Model Fallbacks: pass a list of candidates and unsupported ones get skipped instead of failing.