View a markdown version of this page

Get validated JSON results from models - Amazon Bedrock

Get validated JSON results from models

You can use structured outputs with Claude Sonnet 4.5, Claude Haiku 4.5, Claude Opus 4.5, and Claude Opus 4.6 through the Converse API (Converse or ConverseStream) or the InvokeModel API (InvokeModel or InvokeModelWithResponseStream) on the bedrock-runtime endpoint. Structured outputs is not supported on the Anthropic Messages API path on the bedrock-mantle endpoint (https://bedrock-mantle.{region}.api.aws/anthropic/v1/messages); the output_config.format parameter is rejected with a 400 error.

To learn more, see Get validated JSON results from models.