Bring Your Own Key

Open in CMS

With your own API key, your agents reach models on your own provider account β€” OpenAI, Azure OpenAI, Azure AI Inference, DeepSeek, Anthropic (Claude), Google Gemini, OpenRouter (hundreds of models of many vendors on one key), or any OpenAI-compatible server such as Kimi or Groq β€” instead of Qlar models. The provider bills you directly, and no Qlar credit is charged for those models' tokens.

You add a key once, then choose any number of models to use with it. Each model gets an alias your team picks from model lists.

Who can do this? Owners and Admins of any organization. If the Sources tab or Add API key doesn't appear, you aren't an Owner or Admin, or Qlar has turned API keys off for your organization.


Before you start

  • An account with a supported provider and an API key for it:
    • OpenAI β€” just the key.
    • Azure OpenAI β€” the endpoint, and the deployment name of each model (when it differs from the model name).
    • Azure AI Inference β€” the endpoint and the Response API endpoint.
    • DeepSeek β€” just the key; Qlar calls https://api.deepseek.com.
    • Anthropic (Claude) β€” just an API key from the Claude Console; Qlar calls Anthropic's own API.
    • Google Gemini β€” just an API key from Google AI Studio; Qlar calls Google's Gemini API. A free-tier key has little or no quota for the newest models (and is often answered busy), so use a key with billing set up.
    • OpenRouter β€” just an API key from openrouter.ai, on an account with credits; Qlar calls OpenRouter's own API. See OpenRouter keys for what it can and can't do.
    • OpenAI-compatible server β€” the server's URL (public https://) and, if it needs one, its key. See OpenAI-compatible servers.
  • Owner or Admin role in the organization.

Want to use your Claude or ChatGPT subscription instead, with the sign-in never leaving your own computer? See Use Your Claude or ChatGPT Subscription.


Add a key and its models

Open the Organizations page β†’ select your organization β†’ Settings tab β†’ AI Models tile β†’ Sources tab β†’ Add API key (or Add API key in the Your API keys group on the Models tab).

  1. Provider β€” OpenAI, Azure OpenAI, Azure AI Inference, DeepSeek, Anthropic (Claude), Google Gemini, OpenRouter (many vendors, one key) or OpenAI-compatible server (Kimi, Groq, vLLM…).
  2. Name (optional) β€” how the key is shown, for example Marketing OpenAI.
  3. Endpoint (Azure), Response API endpoint (Azure AI Inference) or Server URL (OpenAI-compatible server).
  4. API key β€” pasted once. It is stored encrypted; afterwards only a masked part of it is shown. Optional for an OpenAI-compatible server that needs no key.
  5. Under Models, tick the models you want from Qlar's list of known models for that provider (on an OpenRouter key, pick them from OpenRouter's own list instead: see OpenRouter keys). Each shows what it accepts and produces (for example Image in, Document in), and a Retires on … date when the provider has announced one.
    • Alias (optional) β€” the name your team sees. Leave it empty to use the model name, for example gpt-6-luna. It must be unique and can't be the name of a Qlar model.
    • Deployment name (Azure OpenAI, optional) β€” when your deployment isn't named after the model.
    • Reasoning effort β€” for a reasoning model, how much it thinks before answering, from the efforts that model accepts; Model default sends none. See Reasoning effort.
    • Fast mode β€” for an OpenAI or Claude Opus model that supports it, faster replies at a higher price. See Fast mode.
  6. A model that isn't listed? Add a model that isn't listed, then type its Model name exactly as the provider names it, an optional Alias, and switch on what it Accepts (Image, Audio, Video, Document) and Produces (Image, Audio, Video). Qlar doesn't check models you add yourself: a wrong name or capability only shows up as a failed reply, so take them from the provider's own documentation. For a reasoning model you can also type its Reasoning effort (optional), and on an OpenAI or Anthropic key switch on Fast mode.
  7. Click Add key.

The key appears under Sources with its models, and the models appear under Models in Your API keys, switched on.

Set by Qlar, not by you:

  • How models are called β€” OpenAI and Azure OpenAI models use the Responses API; DeepSeek, Azure AI Inference, Anthropic, Gemini, OpenRouter and OpenAI-compatible servers use Chat Completions. Embedding models use the provider's embeddings API.
  • Credit β€” usage through your own key costs no Qlar credit, so there is no credit ratio to fill in.

Reasoning effort

Reasoning models (for example GPT-6, GPT-5, Claude, Gemini and DeepSeek V4) think before they answer. Reasoning effort sets how much: lower is faster and uses fewer tokens; higher is more careful but slower. You set it per model, and it applies to every call on that model: agent chats, Natural conversation voice calls, and the features and tasks you run on it on the Tasks tab (for example SQL Database Reader, File check or Summarization).

  • Model default (the first choice) sends no effort, so the provider applies its own. When Qlar knows that default it is named, for example Model default (medium).
  • A model from Qlar's list offers only the efforts that model accepts, checked against the provider. For example GPT-6 Luna offers None (no reasoning), Low, Medium, High, Extra high (xhigh) and Max; GPT-6.1 Sol and GPT-6 Astra have no None; GPT-5 offers Minimal to High; GPT-4.1 and GPT-4o have no reasoning effort at all.
  • DeepSeek offers None (no reasoning), High and Max (its default is High).
  • Claude (Anthropic key) offers Low, Medium, High, Extra high (xhigh) and Max. Current Claude models always think a little, so there is no None: choose Low for quick replies. The default is Medium on Claude Opus 5.5 and Haiku 5.5, High on the others.
  • Gemini (Google key) offers Minimal, Low, Medium and High (its thinking level). Gemini 4 Argon and Gemini 3.8 Flash start at Low.
  • OpenRouter shows each model's efforts in its list (for example Claude Sonnet 5.5 takes low to max, Gemini 3.8 Flash low to high). Qlar refuses an effort the model doesn't list; when the model can't take the effort you set, OpenRouter uses the nearest one it supports.
  • Thinking counts toward a reply's length limit. A very high effort on a feature with a short reply limit can leave the reply cut off; lower the effort there.
  • A model you typed in on an Anthropic or Gemini key offers that provider's efforts above. Any other model you typed in (including any model on an OpenAI-compatible server) takes the value you type, as its provider documents it, for example low or high. Leave it empty for the model's default. Qlar only checks its form (letters, digits, - or _); the provider checks the value when the model is called, so a value it doesn't know shows up as a failed reply.
  • Set it when you add the model (Reasoning effort under a ticked model, or Reasoning effort (optional) on Your own model), or later with the Model settings button on the Models tab or Edit next to the model on the Sources tab.

Speed tip. A lower effort is often the biggest speed-up for features that wait on a model, such as SQL Database Reader. Try it on a few real questions first: with less reasoning, complex answers can be less accurate.

Fast mode

Fast mode runs the same model on the provider's faster tier: the same answers, sooner, at a higher price per token. Like the reasoning effort, you switch it on per model, and it applies to every call on that model: agent chats, voice calls and the features and tasks you run on it on the Tasks tab.

  • Only where the provider has it. On an OpenAI key, Fast mode is offered on the models from Qlar's list that support it, checked against OpenAI: GPT-6 Astra, GPT-6.1 Sol, GPT-6 Sol, GPT-6 Luna, the GPT-5.6 models, GPT-5.4, GPT-5.4 mini, GPT-5.2, GPT-5, GPT-5 mini, GPT-4.1, GPT-4.1 mini, GPT-4o and GPT-4o mini. The nano models don't have it. A model you typed in on an OpenAI key can have it too: OpenAI answers at normal speed when the model has no Fast mode.
  • On an Anthropic key, Fast mode is offered on Claude Opus 5.5, Claude Opus 5 and Claude Opus 4.8 (checked against Anthropic). Other Claude models, such as Sonnet and Haiku, have no Fast mode; on a Claude model you typed in, Qlar asks for it only on Opus 4.8 and later.
  • Azure OpenAI, Azure AI Inference, DeepSeek, Gemini, OpenRouter and OpenAI-compatible servers have no Fast mode, so the switch isn't shown.
  • You pay the provider. OpenAI and Anthropic bill Fast mode to your key at about twice the normal price per token. Qlar charges no credit for your own models, with or without Fast mode.
  • Not guaranteed. When OpenAI is busy it may answer a Fast request at normal speed, billed at the normal price.
  • Switch it on when you add the model (Fast mode under a ticked model or on Your own model), or later with Model settings on the Models tab or Edit next to the model on the Sources tab. A model with Fast mode on shows Fast mode in its description.

Speed tip. Fast mode and a lower reasoning effort add up: for a feature where someone waits, such as SQL Database Reader, try both.


OpenAI-compatible servers

Many providers and self-hosted servers answer the same Chat Completions API as OpenAI. Choose OpenAI-compatible server to use one of them (for OpenRouter, choose OpenRouter instead: see OpenRouter keys):

ServerServer URL
Kimi (Moonshot AI)https://api.moonshot.ai/v1
Groqhttps://api.groq.com/openai/v1
Your own vLLM, Ollama or LiteLLMits public https:// address, e.g. https://llm.example.com/v1
  1. Server URL β€” the base URL before /chat/completions, usually ending in /v1. It must be a public https:// address: Qlar refuses http://, local and private addresses (such as localhost, 10.x, 192.168.x) and Qlar's own addresses.
  2. API key β€” optional. Leave it empty only if your server needs no key.
  3. Load models from the server β€” Qlar asks the server which models it offers (GET /models) and shows them as chips. Click a model to add it, then set its Alias and whether it accepts images. You can also Add a model that isn't listed by name. If the server can't be reached or the key is wrong, the reason is shown (for example "The server answered 401 … Check the API key").
  4. Click Add key.

What to know:

  • Qlar doesn't check the server. It must answer the OpenAI Chat Completions API, and its models must support tool calling if your agents use tools (knowledge base, plugins, web search).
  • Text and images only. Models on such a server accept text and, if you switch it on, images. Audio, video and document input, and image or audio output, aren't available for them.
  • Reasoning models (such as Kimi K3) spend part of the reply limit on thinking. Keep the agent's reply limit generous, or replies can come back empty.
  • Optional settings the server refuses (for example a temperature other than 1 on Kimi's reasoning models) are dropped automatically and the request is sent again.
  • Test connection under Edit key checks the saved URL and key at any time.

Anthropic and Gemini keys

  • No endpoint. Qlar calls the provider's own API; there is no endpoint field.
  • Chat models only. Claude and Gemini models answer chats, features and tasks. Embeddings (knowledge search), speech to text, text to speech, voice calls and image generation still need a Qlar model or another provider.
  • What they accept. Claude reads text, images and PDF or text documents. Gemini also reads audio and video. Both produce text.
  • Tools work (knowledge base, plugins, web search): Qlar sends back each tool turn's reasoning as the provider requires, so multi-step tool use keeps working.
  • Settings Qlar doesn't send. Temperature and other sampling settings are never sent to Claude or Gemini: their newest models refuse them or work best on their defaults.

OpenRouter keys

OpenRouter gives one API key for hundreds of models of many vendors (Anthropic, OpenAI, Google, DeepSeek, Mistral, Meta, ElevenLabs and more). Model names include the vendor, for example anthropic/claude-sonnet-5.5 or google/gemini-3.8-flash.

Add the key and its models:

  1. Provider β†’ OpenRouter (many vendors, one key). There is no endpoint field: Qlar calls https://openrouter.ai/api/v1.
  2. API key β€” your OpenRouter key (sk-or-v1-…).
  3. Load models β€” Qlar checks the key and loads OpenRouter's model list. The key line shows the credits left on your OpenRouter account (and the key's own limit, if you set one). A wrong key shows "OpenRouter answered 401 … Check the API key."
  4. Search by name and filter by kind: Chat, Text to speech, Speech to text, Image. For each model you see its price per million tokens and what it supports: Image input, PDF input, Tools, its reasoning Effort values and, for text to speech, its voices.
  5. Add the models you want. Each gets an alias without the vendor prefix (claude-sonnet-5.5); change it if you like. You can also Add a model that isn't listed and type its OpenRouter id.
  6. Click Add key. Qlar checks each model against OpenRouter's list: that it exists, that OpenRouter serves it for what you add it for (a chat model can't be added as text to speech, for example), and its reasoning effort.

What you can use OpenRouter models for:

  • Chat β€” agent chats, features and tasks on the Tasks tab, like any other model. Tools work on models that support tool calling (Qlar sends back each tool turn's reasoning as OpenRouter requires).
  • Text to speech β€” spoken replies and voice previews, on the Tasks tab. See voice and services on your own models.
  • Speech to text β€” dictation and voice notes, on the Tasks tab.
  • Image generation β€” profile avatars and logos, on the Tasks tab.

What OpenRouter doesn't support

Not availableWhat happens instead
Realtime voice (Natural conversation voice calls, GPT-Live)OpenRouter has no realtime sessions. Voice calls keep using Qlar's model, or a realtime model on an OpenAI or Azure OpenAI key. Adding a realtime model on an OpenRouter key is refused.
Fast modeOpenRouter has no faster tier, so the switch isn't shown.
Embeddings (knowledge search)Knowledge search keeps using Qlar's model, or an embedding model on an OpenAI, Azure OpenAI or OpenAI-compatible key.
Audio or video sent to a chat modelChat models get text, images (if the model reads them) and PDF files (if it reads them). Other documents reach the model as text.
Tool calling on every modelSome models can't call tools. The list marks them "No tool calling": an agent's tools (database, plugins, knowledge, actions) won't run on them, so don't use them for agents with tools.
Your agent's own voice on every speech modelEach speech model has its own voices (for example ElevenLabs george, sarah). Qlar uses the agent's voice when the model has a voice of that name; otherwise the model's first voice.
Editing an image in placeOpenRouter has no image-edit endpoint: an edit is sent as the new image's reference picture, so results can differ from OpenAI's.
Routing and privacy settings in QlarWhich providers OpenRouter routes to, zero data retention and data-collection rules are set in your OpenRouter account settings; they apply to every call Qlar makes with your key.

Billing. Usage is billed to your OpenRouter credits at OpenRouter's prices; Qlar charges no credit for these models. When the credits run out, calls fail with a 402 error until you top up. Models whose id ends in :free cost nothing but are limited to a few requests a minute, so they are not suitable for real conversations.


Use the models

  • In an agent: as the conversation model, in Allowed AI models, or as the Answering AI model of a Natural conversation voice call. Model lists show them under API key.
  • For a feature or task: on the Tasks tab, choose one for a feature (Conversation, Summarization, Personalization, Reranker, KB Training, Conversation Analysis), for a chat helper or builder assistant such as File check or Test judge, or for a whole group. See Choose the model for each task.
  • For knowledge search: an embedding model (OpenAI, Azure OpenAI or an OpenAI-compatible server) can turn your agents' knowledge into vectors instead of Qlar's. See Knowledge Search on Your Own Model.
  • Billing: no Qlar credit for the models' tokens; your provider bills you. Tools the answer uses β€” web search, knowledge base, plugins β€” are billed as usual.

Change or remove

TaskWhat to do
Add more models to a keySources β†’ Add models on the key β†’ tick or add the models β†’ Add models. Models already added show Added as alias.
Rotate the keyEdit key β†’ paste the new API key β†’ Save. The new key applies to every model of that key. Leave the field blank to keep the current key.
Change an OpenAI-compatible server's URL, or drop its keyEdit key β†’ change Server URL, or tick Remove the saved key β†’ Save. Test connection checks the server first.
Change a model's description, deployment name or (for a model you typed in) its name and capabilitiesEdit next to the model β†’ change the fields β†’ Save. Models from Qlar's list keep the list's name and capabilities.
Change a model's reasoning effortModel settings (the slider icon) on the Models tab, or Edit next to the model on Sources β†’ Reasoning effort β†’ Save. It applies from the next call.
Turn Fast mode on or offModel settings on the Models tab, or Edit next to the model on Sources β†’ Fast mode β†’ Save. It applies from the next call.
Hide a model from every agentTurn its switch off on the Models tab.
Delete one modelEdit next to the model β†’ Delete β†’ Yes, delete. Agents using it fall back to the organization default.
Remove a key and all its modelsEdit key β†’ Remove key β†’ Yes, remove. Refused while one of its models is chosen on Tasks: choose another model there first.

Keys added before a key could hold several models are shown as one card per model until Qlar groups them; they keep working as before.


Troubleshooting

SymptomCauseFix
Sources tab or Add API key missingYou aren't an Owner or Admin, or Qlar has turned API keys off for your organizationAsk an Owner, or Qlar support.
"Already used by another model. Enter an alias."Two models would get the same name, or the model name is taken by a Qlar model or another keyType an Alias for that model.
Replies fail with an authentication errorThe key was revoked or rotated at the providerEdit key and paste the new one.
Replies fail with "model not found"A model you typed in has a wrong name, or your account can't use itEdit the model and fix its name, or delete it.
"The server URL must start with https://" or "Use a public address, not a private one"The Server URL is http://, local or privateUse the server's public https:// address. A server only on your own network can't be reached by Qlar.
Load models shows "The server answered 404"The Server URL is missing /v1 or includes /chat/completionsUse the base URL, for example https://api.moonshot.ai/v1.
Replies from an OpenAI-compatible model are empty or cut offA reasoning model used up the reply limit while thinkingRaise the agent's reply limit.
An agent with tools fails on an OpenAI-compatible modelThe model or server doesn't support tool callingUse a model that supports tool calling, or another model for that agent.
Replies fail with "Unsupported value" or "invalid reasoning effort"The Reasoning effort typed for a model you added yourself isn't one its provider acceptsEdit the model and choose a value from the provider's documentation, or leave it empty for the model's default.
A feature on your own model is slowThe model reasons at its default effort (often medium) on every callSet a lower Reasoning effort on the model, then check the answers are still good enough. On an OpenAI model you can also switch on Fast mode.
No Fast mode switch for a modelThe model or its provider has no Fast mode (for example a nano model, a Claude Sonnet or Haiku model, Azure OpenAI, DeepSeek or Gemini)Use a model that has it, or a lower reasoning effort.
"… has no Fast mode" when savingFast mode was asked for on a model that doesn't have itSwitch Fast mode off for that model.
Load models on an OpenRouter key shows "OpenRouter answered 401"The OpenRouter key is wrong, disabled or expiredCreate a new key on openrouter.ai and paste it with Edit key.
Replies on an OpenRouter model fail with 402Your OpenRouter account has no credits leftTop up on openrouter.ai. Load models shows the credits left.
An agent with tools fails on an OpenRouter model with "No endpoints found that support tool use"The model can't call toolsUse a model marked Tools in the list.
Replies on an OpenRouter :free model fail with 429Free variants are limited to a few requests a minuteUse the paid variant (without :free).
"… cannot be used for text to speech on OpenRouter" (or another kind)The model isn't served for what you added it asFilter the list by that kind and pick a model from it.
A Gemini model answers "busy", quota or 429 errorsThe Gemini key is on Google's free tier, which has little or no quota for the newest modelsSet up billing for the key in Google AI Studio, or use a smaller model such as Gemini 3.5 Flash-Lite.
Images or documents are refusedA model you typed in has the capability switched offEdit and turn the capability on, if the model supports it.
"Someone else changed this at the same time"Someone else saved AI Models at the same momentReload the page and try again.