OptionalbetasOptionalcache_Cache control configuration for prompt caching. When provided, applies cache_control to the last content block of the last message, enabling Anthropic's prompt caching feature.
This is the recommended way to enable prompt caching as it applies cache_control at the final message formatting layer, avoiding issues with message content block manipulation during earlier processing stages.
OptionalcontainerContainer ID for file persistence across turns with code execution. Used with the code_execution_20250825 tool.
OptionalheadersCustom headers to pass to the Anthropic API when making a request.
OptionalinferenceSpecifies the geographic region for inference processing. US-only inference is available at 1.1x pricing for models released after February 1, 2026.
Optionalmcp_Array of MCP server URLs to use for the request.
OptionaloutputConfiguration options for the model's output, such as effort level and output format.
OptionaloutputOptionalstreamWhether or not to include token usage data in streamed chunks.
Optionaltool_Whether or not to specify what tool the model should use
Optionaltools
Optional array of beta features to enable for the Anthropic API. Beta features are experimental capabilities that may change or be removed. See https://docs.anthropic.com/en/api/versioning for available beta features.