Bring your own key (BYOK) means connecting your own AI provider account to a software product, so the product's AI features run on your account instead of the vendor's. For chatbot builders, that means pasting an API key from OpenAI, Anthropic, Google or xAI, and your bot's answers are generated on your account, billed by that provider. This explainer covers how BYOK works, its pros and cons, and what to check.
How does BYOK work in a chatbot builder?
- You create an API key in your AI provider's developer console and set up billing with them.
- You add the key to the chatbot platform, which stores it securely.
- You choose a model for your bot from those your key can access.
- When a visitor asks a question, the platform prepares the request (your instructions, the relevant parts of your knowledge base and the question) and sends it to the provider using your key.
- The provider bills you for the tokens processed; the platform charges its own subscription for everything else: hosting, the chat widget, knowledge storage, analytics and lead capture.
What is the alternative to BYOK?
Hosted AI: the platform uses its own provider account and includes a number of AI messages (or credits) in your plan. It's simpler, with one bill and nothing to set up, but you're limited by the plan's allowance and the models the platform offers.
Many platforms offer one or the other. InstantKnowledgeBot offers both: hosted Claude is included up to your plan's monthly allowance, and you can connect your own key on any plan.
What are the advantages of BYOK?
- No message cap from the platform. On InstantKnowledgeBot, messages on your key are unlimited on our side.
- Provider pricing with no markup. You pay the provider's published rates.
- Model choice. Use a fast, low-cost model for simple FAQs, or a more capable one for complex documentation.
- Your provider relationship. Requests run under your account, your usage limits and your agreement with the provider.
- Predictable platform costs. Your subscription doesn't need to grow with message volume.
What are the disadvantages?
- Two bills: the platform and the AI provider.
- Variable AI cost: a busy month means a bigger provider bill. Set spending limits in your provider console.
- Setup: creating an account, adding billing and copying a key (about ten minutes).
- Key management: if the key is revoked or runs out of credit, bots using it can't answer until you fix it.
How much does BYOK cost?
Providers charge per token, roughly per piece of a word, for both the text sent to the model (input) and the text it writes (output). A chatbot request includes your instructions, the relevant knowledge base passages and the question, so cost per message depends on:
- The model (prices vary widely between models).
- How much document text is sent per question.
- How long the answers are.
- How many messages visitors send.
Check each provider's current pricing page rather than relying on figures in blog posts; rates change often. For a comparison of chatbot pricing approaches overall, see AI chatbot pricing models.
Is it safe to give a chatbot platform your API key?
It's a fair question. What to look for:
- Encryption at rest. InstantKnowledgeBot encrypts keys with AES-256-GCM.
- Never displayed again. After saving, only the last four characters are shown.
- Never logged and only sent to the matching provider.
- Easy removal, at any time.
Good practice on your side: create a dedicated key just for the chatbot, set a spending limit in the provider console, and revoke and replace the key if you suspect it's exposed. More in AI chatbot privacy and security.
Who benefits most from BYOK?
- High-volume sites whose messages would exceed a plan allowance.
- Agencies running many client bots; see AI chatbots for agencies.
- Developers and technical teams who want a specific model.
- Businesses with existing provider agreements that want AI traffic under them.
- Budget-conscious users: on InstantKnowledgeBot's free plan plus your own key, you pay only your provider's usage.
What questions should you ask a vendor about BYOK?
- Which providers and models are supported, and can each bot use a different one?
- Is BYOK available on every plan, or only on higher tiers?
- Is there still a message cap when you use your own key?
- What happens if the key fails? Does the bot fall back to hosted AI, or stop?
- How is the key stored, and can you remove it at any time?
- Is any markup added to your provider costs?
On InstantKnowledgeBot, the answers are: four providers chosen per bot; every plan; no cap; hosted bots fall back to your key when the allowance runs out; encrypted at rest and removable; no markup.
Can you mix hosted AI and BYOK?
Yes, and many accounts do. A common setup is a high-traffic website bot on your own key, with smaller bots (an internal handbook, a test bot) on the plan's hosted allowance. Because the engine is chosen per bot, you can move a bot between hosted AI and your key whenever your volume changes.
How does BYOK work on InstantKnowledgeBot specifically?
- Providers: Anthropic (Claude), OpenAI (ChatGPT models), Google (Gemini) and xAI (Grok).
- Plans: every plan, including Free.
- Per bot: each bot chooses Hosted Claude or Your own key, plus the model.
- Automatic fallback: if a bot on hosted AI runs out of allowance, it uses message packs or bonus messages, then switches to your key automatically if you've connected one.
- No cap, no markup on messages that use your key.
Step-by-step setup: how to use your own OpenAI, Claude, Gemini or Grok key. Plan allowances for hosted AI are on the pricing page, and you can sign up free to try it.
Frequently asked questions
What is an API key?
A secret token that identifies your account with an AI provider. Software uses it to send requests to the provider's models, and the provider bills the account that owns the key.
Is BYOK cheaper than a chatbot platform's hosted AI?
It can be, especially at high volume, because you pay provider rates with no markup and no message cap. At low volume, a plan's included hosted messages may be simpler and cheaper.
Do I need to be technical to use BYOK?
Not really. You create an account with the provider, add billing, copy a key from their console and paste it into the chatbot platform.
What happens to my data with BYOK?
AI requests from your bot are sent to the provider under your account and your agreement with them. Check each provider's data usage terms for API traffic.
Can I use BYOK with InstantKnowledgeBot's free plan?
Yes. Every plan includes bring-your-own-key for Claude, ChatGPT, Gemini or Grok, and messages on your key are unlimited on our side.
Turn your docs into an AI chatbot today.
Free plan forever, no card needed. Upload your files and get a bot that answers from them in under a minute.
Last updated: · InstantKnowledgeBot