Structured outputs on the Claude Developer Platform

The Cloud Developer Platform now supports structured output for Cloud Sonnet 4.5 and Opus 4.1. Available in public beta, this feature ensures that API responses always match your specified JSON schema or tool definitions.

With structured output, developers can eliminate schema-related parsing errors and failed tool calls by ensuring that the cloud’s responses conform to a defined schema – whether you’re extracting data from images, orchestrating agents, or integrating with external APIs.

Building reliable applications

For developers building applications and agents in production, a single error in data formatting can lead to cascading failures. The structured output model solves this by guaranteeing that your response matches the exact structure you define, without any impact on performance. This makes the cloud reliable for applications and agents where accuracy is critical, including:

  • data extraction When downstream systems rely on error-free, consistent formats.
  • Multi-Agent Architecture Where frequent communication between agents is critical for a performant, stable experience.
  • complex search tools Where multiple search fields must be filled accurately and conform to specific patterns.

Structured output can be used in two ways: with JSON or tools. When used with JSON, you provide your schema definition in the API request. For tools, you define your tool specifications, and the cloud’s output automatically conforms to those tool definitions.

The end result is a reliable output, fewer retries, and a simplified codebase that no longer requires failover logic or complex error handling.

Customer Spotlight: OpenRouter

OpenRouter 4M+ gives developers access to all major AI models through a single, unified interface.

“Structured outputs have become a really valuable part of the agentic AI stack. Agents continuously ingest and produce structured data, so Anthropic’s structured outputs close a real gap for developers. Agent workflows run reliably every time, and teams can focus on their customers instead of debugging tool calls,” said Chris Clark, COO, OpenRouter.

launch

Structured Output is now available in public beta for Sonnet 4.5 and Opus 4.1 on the Cloud Developer Platform, with support for Haiku 4.5 coming soon. See our documentation for supported JSON schema types, implementation examples, and best practices.



Leave a Comment