Configure model API key
An API key is required for AIBuilder to interact with an online AI model. This guide provides information about setting your model API key in AIBuilder.
#
Get model API keyAIBuilder supports most mainstream LLMs. Please refer to Supported Models for a complete list of supported models. You will need to apply for your model API key online. Note that most LLM providers grant newly-created accounts trial credit, which will expire in a couple of months, or a promotional amount of free quota.
#
Configure model API keyYou have two options for configuring your model API key:
- Configure it in service_conf.yaml.template before starting AIBuilder. (System Configuration)
- Configure it on the Model providers page after logging into AIBuilder. (User Configuration)
#
Configure model API key before starting up AIBuilder- Navigate to ./docker/AIBuilder.
- Find entry user_default_llm:
- Update
factory
with your chosen LLM. - Update
api_key
with yours. - Update
base_url
if you use a proxy to connect to the remote service.
- Update
- Reboot your system for your changes to take effect.
- Log into AIBuilder. After logging into AIBuilder, you will find your chosen model appears under Added models on the Model providers page.
#
Configure model API key after logging into AIBuilderWARNING
After logging into AIBuilder, configuring your model API key through the service_conf.yaml.template file will no longer take effect.
After logging into AIBuilder, you can only configure API Key on the Model providers page:
- Click on your logo on the top right of the page > Model providers.
- Find your model card under Models to be added and click Add the model: Set API-KEY in it.
- Paste your model API key.
- Fill in your base URL if you use a proxy to connect to the remote service.
- Click OK to confirm your changes.
note
We can update the API-KEY at any time!