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

# Anam

> JavaScript API reference for the anam avatars plugin.

## AnamAvatar

Anam avatar provider.

Creates a configured Anam talking-avatar provider for use in a voice agent.

### Constructor

```typescript theme={null}
new AnamAvatar(opts: AnamAvatarOptions)
```

<ParamField path="apiKey" type="string | null">
  Anam API key. Falls back to the `ANAM_API_KEY` env var, then `null`.
</ParamField>

<ParamField path="avatarId" type="string">
  Avatar ID to render. Falls back to the `ANAM_AVATAR_ID` env var, then DEFAULT\_AVATAR\_ID.
</ParamField>

<ParamField path="personaName" type="string | null">
  Optional persona name to associate with the avatar. Default: `null`.
</ParamField>

<ParamField path="voiceId" type="string | null">
  Optional voice ID for the avatar's speech. Default: `null`.
</ParamField>

### getRuntimeConfig

```typescript theme={null}
getRuntimeConfig(): Record<string, any>
```

<ResponseField name="returns" type="Record<string, any>" />

***

## DEFAULT\_AVATAR\_ID

Default Anam avatar ID used when none is supplied.

```typescript theme={null}
const DEFAULT_AVATAR_ID = '960f614f-ea88-47c3-9883-f02094f70874'
```
