> ## Documentation Index
> Fetch the complete documentation index at: https://docs.zeroruntime.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# Anthropic

> Python API reference for the anthropic llm provider.

<Card title="Usage guide" icon="book" href="/plugins/llm/anthropic" horizontal>
  Setup, environment variables, and Python/JavaScript/Go usage examples.
</Card>

## AnthropicLLM

Initialize the Anthropic LLM.

Slot: llm. Route: plugins -- direct to the vendor, with ANTHROPIC\_API\_KEY
or an explicit api\_key.

```python theme={null}
from zeroruntime.plugins import AnthropicLLM  # direct to the vendor, with your key
```

### Fields

<ParamField path="model" type="str" default="claude-sonnet-4-20250514" />

<ParamField path="base_url" type="str | None" default="None" />

<ParamField path="temperature" type="float" default="0.7" />

<ParamField path="tool_choice" type="Literal['auto', 'required', 'none']" default="UNSET" />

<ParamField path="max_tokens" type="int" default="1024" />

<ParamField path="top_k" type="int | None" default="None" />

<ParamField path="top_p" type="float | None" default="None" />

<ParamField path="caching" type="Literal['ephemeral'] | None" default="None" />

<ParamField path="parallel_tool_calls" type="bool | None" default="None" />

<ParamField path="thinking" type="dict | None" default="None" />

<ParamField path="max_retries" type="int" default="0" />
