> ## 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.

# Sarvamai

> Python API reference for the sarvamai llm provider.

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

## SarvamAILLM

Initialize the SarvamAI LLM plugin.

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

```python theme={null}
from zeroruntime.plugins import SarvamAILLM  # direct to the vendor, with your key
from zeroruntime.inference import SarvamAILLM  # same fields, through the gateway, no vendor key
```

### Fields

<ParamField path="model" type="str" default="sarvam-30b" />

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

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

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

<ParamField path="reasoning_effort" type="Literal['low', 'medium', 'high'] | None" default="UNSET" />

<ParamField path="wiki_grounding" type="bool" default="False" />

<ParamField path="top_p" type="Optional[int]" default="None" />

<ParamField path="frequency_penalty" type="Optional[float]" default="None" />

<ParamField path="presence_penalty" type="Optional[float]" default="None" />

<ParamField path="stop" type="str | List[str]" default="None" />
