Skip to main content
TruGen lets you replace the default LLM with any OpenAI-compatible API. This means you can use self-hosted models, fine-tuned models trained on your own data, or third-party providers — while keeping the rest of the avatar and agent stack intact.

Why Use a Custom LLM?

Requirements

Your LLM API must implement the OpenAI Chat Completions specification:
  • Endpoint: POST /chat/completions
  • Payload: Must accept a messages: [] array
  • Streaming: Must support Server-Sent Events (SSE) for real-time interaction
Optional — required only for specific features:
  • Function Calling — needed if your agent uses tools
  • Vision — needed for multimodal inputs

Setup Options

Via Developer Studio

  1. Navigate to Create New Agent.
  2. Find the Agent Config section.
  3. Select Bring your own LLM from the Provider dropdown.
  4. Enter your API URL, Model Name, and API Token.
Bring Your Own LLM configuration in Developer Studio

Developer Studio — LLM provider configuration

Via API

Set provider to "custom" within the avatars.config.llm object:

What’s Next?

Available LLMs

Browse all built-in models across Groq, Azure OpenAI, Google, and more.

Prompting Strategies

Write effective system prompts for your custom LLM.