Keysets

Langbase offers multiple LLM models through different providers like OpenAI, TogetherAI, Groq, Google, etc. Each Pipe can be configured with any of the supported LLM models.

Since each LLM provider has its unique API key, you can add these keysets to your profile/org settings and every Pipe will use those LLM keys by default.

If needed, you can specify a different LLM keyset for individual Pipes by adding a custom keyset directly in the Pipe's settings.

Keysets allow you to seamlessly transition between various LLM models within your pipe without needing to add the API key again, provided that model provider key is already present in your keyset. Langbase has three types of keysets:

  1. Pipe Keysets
  2. User Keysets
  3. Organization Keysets

Pipe Keysets

Pipe level LLM API keyset can be set for each pipe individually inside the pipe settings. This keyset carries the highest priority. You can use Pipe Keysets to override the user/organization LLM API keysets.

To add a pipe keyset, navigate to your Pipe > Settings. In the LLM API Keysets section, select Pipe level keys and add your keys.


User Keysets

User level LLM API keysets are configurable in your profile settings. For user accounts, they are the default keyset used for all pipes unless you have set a pipe keyset for a specific pipe.

To add a user keyset, go to your User profile > Settings. Alternatively, you can select User level keys inside any pipe's settings and click Configure Keysets.

Here, add your keys for all the providers you need.


Organization Keysets

Organizations use organization-level keysets, which are configurable in your organization’s settings. They are similar to user keysets, but for an organization. For orgs, they are the default keysets for all pipes unless you have set a pipe-level keyset in a specific pipe.

To add an org keyset, go to your Organization > Settings. Alternatively, you can select Org level keys inside any pipe's settings in your organization and click Configure Keysets.

Here, add your keys for all the providers you need.