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
Anthropic Native JSON Schema
Anthropic Claude 4.5+ models support schema-validated JSON viaoutput_config:
Anthropic requires
additionalProperties: false on all object types in the schema. Models before Claude 4.5 do not support json_schema.Testing in Prompt Studio
Test structured output in the Portal:- Open Prompts and select a prompt
- Click the config icon and change Format to “JSON Object” or “JSON Schema”
- Send a message — the response will be valid JSON
Next Steps
Reasoning
Enable chain-of-thought thinking
Server-Side Tools
Provider-native web search and code execution