AI Cloud Architect

Introducing structured output for Custom Model Import in Amazon Bedrock

AWSBlog post by Manoj Selvakumar, Lokeshwaran Ravi, Muzart Tuman, Revendra Kumar and Yanyan ZhangAWS Artificial Intelligence Blog

Today, we are excited to announce the addition of structured output to Custom Model Import. Structured output constrains a model’s generation process in real time so that every token it produces conforms to a schema you define. Rather than relying on prompt-engineering tricks or brittle post-processing scripts, you can now generate structured outputs directly at inference time.

Read the original (opens the source's page in a new tab)

AI: Summary

What it is

Bedrock Custom Model Import now supports structured output, constraining each generated token to a JSON schema you define at inference time.

Who it is for

Teams serving imported or fine-tuned models on Bedrock that need machine-readable outputs for downstream systems without post-processing.

Key points

  • Enabled by a response_format block with a json_schema in the InvokeModel request body.
  • The post's example uses a Pydantic-generated schema and a Hugging Face tokenizer chat template.
  • The post does not state regions, pricing or a lifecycle stage.

The same at other vendors