Overview

To enable Glean Generative AI features, you need to select an LLM provider and an associated account.

By default, generative AI features will use an underlying account key provided by Glean, however you can opt to use your own account key for the LLM provider of your choice (as long as the underlying provider is supported by Glean).

Glean currently supports the following LLM Providers:

  • Anthropic
  • OpenAI
  • Azure OpenAI
  • Google Vertex AI
  • Amazon Bedrock

There are minimum throughput and capacity requirements that must be met when using your own key. Failure to meet these requirements may result in degraded performance for your users.

For more information, please see the Supported LLMs page.


Configuring BYOK

  1. Navigate to  Admin Console > Platform > Assistant > Setup, and expand the LLM Provider box.

  2. By default Use Glean’s LLM key will be selected. Change this to Use your own LLM provider.

  3. Follow the LLM provider-specific instructions from one of the tabs below.

You can switch back to using the Glean-provided key at any time by selecting Use Glean’s LLM key (Recommended) from the LLM Provider dropdown.

You will need an Anthropic API Key from the Anthropic Console to continue.

To use an Anthropic API key:

  1. Select Anthropic from the dropdown.
  2. Paste your Anthropic API Key into the Anthropic key field.
  3. Click Submit to validate and save your key.

Glean Assistant will now use your Anthropic key for all Generative AI features. Your changes may take up to an hour to take effect.

Estimating LLM Usage costs

The following data should be considered an estimate only. It is based on average usage across multiple Glean customers, however your actual usage may vary.

We recommend using Glean’s LLM key if you have concerns around LLM usage costs.

The following costs per query can be used as a rough guide to help you estimate your LLM usage costs with Glean. All costs are in USD.

LLM ProviderModels UsedAggregate Avg Cost per Glean Query
OpenAIGPT-4o
GPT-4o mini
Ada Embeddings
$0.07
OpenAIGPT-4-Turbo
GPT-3.5-Turbo
Ada Embeddings
$0.14
Azure OpenAIGPT-4o
GPT-4o mini
Ada Embeddings
$0.07
Azure OpenAIGPT-4-Turbo
GPT-3.5-Turbo
Ada Embeddings
$0.14
AnthropicClaude 3.5 Sonnet
Claude 3 Haiku
Voyage Embeddings
$0.05
Vertex AI - GeminiGemini 1.5 Pro
Gemini 1.5 Flash
Gecko Embeddings
$0.02
Vertex AI - ClaudeClaude 3.5 Sonnet
Claude 3 Haiku
Gecko Embeddings
$0.04
Amazon Bedrock - ClaudeClaude 3.5 Sonnet
Claude 3 Haiku
Titan Text Embeddings G1
$0.07