json_object (free-form JSON) and json_schema (schema-validated JSON).
Basic JSON Mode
Schema-Validated JSON
Force the response to match a specific schema:Provider Support
| Provider | json_object | json_schema | How |
|---|---|---|---|
| OpenAI | Native | Native | response_format API parameter |
| Gemini | Native | Native | responseMimeType + responseSchema |
| Anthropic | Not supported | Native (Claude 4.5+) | output_config.format |
| Bedrock | Not supported | Native (Claude 4.5+) | output_config in payload |
| Groq | Native | Not supported | response_format (OpenAI-compatible) |
| xAI | Native | Native | response_format (OpenAI-compatible) |
When
json_object is not natively supported (Anthropic, Bedrock), add JSON instructions to your system prompt for best results.With LLM Standalone
Next Steps
Reasoning
Enable chain-of-thought thinking
Server-Side Tools
Provider-native web search and code execution