Skip to main content

Minimal request

cURL example

Python example

Node.js example

Best practices

  • Follow Anthropic’s JSON-mode guidance: specify the target structure precisely
  • Prefill the assistant response when you need stricter output consistency
  • For larger schemas, add examples instead of relying on one-line instructions