AnthropicGAVerified 2026-11-11

Anthropic Claude (tool use / structured outputs)

JSON outputs (output_config.format) and strict tool use constrain Claude to a JSON schema via constrained decoding. Returns labels, not probabilities. Available via Anthropic, Bedrock, Google Cloud, and Microsoft Foundry.1

PricingUSD, as published

ItemValue
List priceFrom $0.10/1M in123
Free tierNot published

Per 1M input/output tokens: Haiku 5.5 $0.10/$0.50 (prompts up to 100k); Haiku 4.5 $1/$5; Sonnet 5.5 $2/$10; Opus 5.5 $4/$20. Changed: Claude Fable 5.2 (claude-fable-5-2) is now Anthropic’s top model for demanding reasoning at $8/$40, below Fable 5.1’s $10/$50 (still listed). US-only inference_geo costs 1.1x; Batch is 50% off. Anthropic says structured outputs work on every model.123 [Verified 2026-11-11 on https://platform.claude.com/docs/en/about-claude/pricing, https://platform.claude.com/docs/en/about-claude/models/overview and https://platform.claude.com/docs/en/build-with-claude/structured-outputs]

Structured outputs add an injected system prompt, so input tokens are slightly higher; changing the format invalidates the prompt cache. [Verified 2026-10-16 on Anthropic structured outputs docs]

Estimate cost at 10k to 10M requests, or set your own usage.

LimitsPer request

LimitValue
Context window1M tokens
Rate limit1,000 RPM (Start tier)

Per request: up to 20 strict tools, 24 optional parameters, and 16 union-type parameters across all strict schemas; grammar compilation timeout 180 s. Unsupported: recursive schemas, numeric/string length constraints, minItems other than 0 or 1.3 [Verified 2026-11-11 on https://platform.claude.com/docs/en/build-with-claude/structured-outputs (no change)]

Compiled grammars are cached for 24 hours from last use; the first request with a new schema has extra latency. Prompts and outputs are not stored; only the JSON schema is cached, which Anthropic says keeps structured outputs within Zero Data Retention.3 [Verified 2026-11-11 on https://platform.claude.com/docs/en/build-with-claude/structured-outputs]

StatusGA

  • Generally available. Refusals (stop_reason "refusal") and max_tokens cut-offs can return output that does not match the schema; enum capitalization is not guaranteed. [Verified 2026-10-16 on Anthropic structured outputs docs]
  • No token probabilities are documented on the structured outputs page.3 [Not published by vendor (checked 2026-11-11 on https://platform.claude.com/docs/en/build-with-claude/structured-outputs)]

Auth

MethodAPI key
DetailsAnthropic API key in the x-api-key header ($ANTHROPIC_API_KEY). [Verified 2026-10-16 on docs.anthropic.com structured outputs page]

FeaturesFrom lib/apiFeatures.js

YesNoN/ANot published
CapabilityStateNote
BatchBatch at 50% offYesBatch at 50% off
Structured JSON outputJSON outputs with json_schemaYesJSON outputs with json_schema
Tool / function callingStrict tool useYesStrict tool use
StreamingWorks with streamingYesWorks with streaming
MCP supportMCP connector (beta)Yes5MCP connector (beta)
Official SDKs7 languages plus CLIYes37 languages plus CLI
EU / data residencyOnly global or US inference geoNo6Only global or US inference geo
Free tierNot in Claude API docsNot published4127Not in Claude API docs
Fine-tuningNot in Claude API docsNot published4127Not in Claude API docs
Open source / self-hostNot in Claude API docsNot published4127Not in Claude API docs
SLA publishedNot in Claude API docsNot published4127Not in Claude API docs

Fit and safety

Good for

  • Compare enum values case-insensitively (Anthropic’s own caveat).

Watch out

  • No probabilities means thresholds need another signal; a self-reported "confidence" field in your schema is generated text, not a calibrated probability.
  • Same pattern applies: deterministic rules own hard constraints; the model is advisory; fail closed on errors.

How it works

  1. Two features: JSON outputs (output_config.format with a json_schema) and strict tool use (strict: true on a tool). They can be combined in one request.
  2. No special header is required any more; the old output_format parameter is deprecated.
  3. Not compatible with Citations or message prefilling. Works with Batch (50% off), streaming, and token counting.

Compare

Put Anthropic Claude (tool use / structured outputs) side by side with other APIs on price, limits and features. Open the comparison table →

Deciding between a decision model and a generative LLM? See Decision model vs LLM: when to use which.

SourcesFootnotes

  1. 1platform.claude.com/docs/en/about-claude/pricingplatform.claude.com/docs/en/about-claude/pricingVerified 2026-11-11
  2. 2platform.claude.com/docs/en/about-claude/models/overviewplatform.claude.com/docs/en/about-claude/models/overviewVerified 2026-11-11
  3. 3platform.claude.com/docs/en/build-with-claude/structured-outputsplatform.claude.com/docs/en/build-with-claude/structured-outputsVerified 2026-11-11
  4. 4platform.claude.com/docs/en/api/rate-limitsplatform.claude.com/docs/en/api/rate-limitsVerified 2026-10-16
  5. 5platform.claude.com/docs/en/agents-and-tools/mcp-connectorplatform.claude.com/docs/en/agents-and-tools/mcp-connectorVerified 2026-10-16
  6. 6platform.claude.com/docs/en/build-with-claude/data-residencyplatform.claude.com/docs/en/build-with-claude/data-residencyVerified 2026-10-16
  7. 7trust.anthropic.comtrust.anthropic.comChecked 2026-10-16
  8. 8Anthropic pricingdocs.anthropic.com/en/docs/about-claude/pricingCited
  9. 9Anthropic structured outputsdocs.anthropic.com/en/docs/build-with-claude/structured-outputsCited