Guides
Brain Configuration

Brain Configuration

Your avatar's "brain" is the AI that powers its conversations. Three modes are available:

ModeDescriptionBest For
Internal BrainAvatarium-managed AIQuick setup, zero maintenance
External BrainYour own AI endpointCustom models, existing infrastructure
BYOKYour API keys, Avatarium infrastructureUsing existing provider accounts

Internal Brain (Default)

Select a model in Dashboard → Avatar Settings → Brain → Internal Brain.

Available models (all plans):

  • Claude Haiku (claude-haiku-4-5-20251001) – fast, cost-efficient

Premium models (Plus/Premium/Elite plans):

  • Claude Sonnet (claude-sonnet-4-6) – more capable, nuanced responses

The embed component automatically uses whatever brain is configured for the avatar:

import { AvatariumEmbed } from '@avatarium/react';
 
<AvatariumEmbed shortId="8yb8p7oj3sK" mode="voice" />

The internal brain uses Anthropic Claude. For other providers (OpenAI, Google, Groq), use BYOK or External Brain.


External Brain

Connect your avatar to an external AI service via Dashboard → Avatar Settings → Brain → External Brain.

Supported Providers

ProviderAPI Format
AnthropicMessages API
OpenAIChat Completions
GoogleGemini API
GroqOpenAI-compatible
OpenRouterOpenAI-compatible
CustomAny OpenAI-compatible endpoint

Setup

Enable External Brain

Avatar Settings → Brain → External Brain → Enable

Select Provider

Choose from the dropdown. For custom OpenAI-compatible APIs, select "Custom".

Enter API Key

Paste your API key – it is encrypted at rest and never stored in plain text.

Set Model (optional)

Override the default model (e.g. claude-sonnet-4-6, gpt-4o).

Test Connection

Click "Test" to verify before saving.

Configuration JSON

{
  "externalBrainEnabled": true,
  "externalBrainProvider": "anthropic",
  "externalBrainUrl": "https://api.anthropic.com/v1/messages",
  "externalBrainToken": "sk-ant-xxxxx",
  "externalBrainModel": "claude-sonnet-4-6"
}

BYOK

Use Avatarium's infrastructure with your own provider API keys. Configure in Dashboard → Avatar Settings → Brain → BYOK Mode.

Supported providers: Anthropic, OpenAI, Google, Groq.

See the BYOK Guide for full setup and SDK usage.


Troubleshooting

External Brain connection failed – verify the URL is publicly accessible, the API key is valid, and the endpoint returns OpenAI-compatible responses.

High latency – for External Brain, endpoint geography matters. Deploy close to your users or use a CDN/edge function.

Inconsistent responses – tighten your system prompt, lower temperature in your AI config, or switch to a more capable model.