API keys
In this guide, we will look how you can obtain API keys to various AI model providers and set your usage limits inside the services. This will help you secure your API token spending when exploring chains and trying out new things.
Your API keys are only visible to your (when logged in). They are used only to make requests to the AI model providers when you run a model or a chain in Kollaprompt UI.
Don't share you API keys with anyone. No one from Kollaprompt team is going to ask you for your API keys.
Edit your API keys
- Login to Kollaprompt
- From top right click your avatar and select Settings
- Go to Secrets tab
OpenAI
OpenAI is the home of the popular ChatGPT, GPT-3 and GPT-4 models, among many others. They offer 5$ worth of free tokens to try out their models.
Create your API key
If you don't already have one, you can create a free OpenAI platform account at https://platform.openai.com/signup If you already have one for production use, we suggest creating a new one for experimentation, as you can setup separate usage limits.
- Go to your OpenAI platform account
- Go to top right corner and select View API Keys
- Create a new API key
- Copy the API key and paste it to the
OPENAI_API_KEY
row in your Secrets.
Set OpenAI billing limits
- Go to your OpenAI platform account
- Go to Account » Billing » Usage Limits
- Set your soft and hard limits.
Replicate
Replicate lets you run machine learning models with a few lines of code, without needing to understand how machine learning works. They offer a free tier API for exploring models, and paid plans for production use.
Create your API key
If you don't already have one, you can create a free Replicate platform account at https://replicate.com/signin using your Github account.
- Go to your Replicate account — API tokens
- Copy your API token and paste it to the
REPLICATE_API_KEY
row in your Secrets.
Set Replicate billing limits
- Go to your Replicate account — Billing
- If you have setup your credit card, you can set your monthly spend limit.
Anthropic
Anthropic offers a proprietery LLM model named Claude, which can be used for for evaluation and development purposes only. You need to request access to Claude in order to use it.
Create your API key
If you don't already have one, you need to request access to Claude.
- Go to your Anthropic console — API tokens (you need to be an admin user)
- Create or copy your API key and paste it in
ANTHROPIC_API_KEY
row in your Secrets.
Set Anthropic billing limits
- At the point of writing this guide, there are no billing limits available in the Anthropic console. We will update this guide when they are available.
Cohere
Cohere offers proprietery AI models that can be used via API calls. Cohere offers free Trial API keys, which are rate-limited to 100 API calls per minute and cannot be used in production scenarios. Perfect for exploring possibilities in Kollaprompt.
Create your API key
If you don't already have a Cohere account, you can create one free or login to your existing one.
- Go to your Cohere account — API keys
- We suggest you create a new trial key for Kollaprompt.
- Copy your API key and paste it in
COHERE_API_KEY
row in your Secrets.
Set Cohere billing limits
- At the point of writing this guide, there are no billing limits available in the Cohere. We will update this guide when they are available.
Hugging Face
Hugging Face is a large open-source community that builds tools to enable users to build, train, and deploy machine learning models based on open-source code and technologies. Hugging Face offers an Inference API that lets you run models via API calls.
Create your API key
If you don't already have a Hugging Face account, you can create one free or login to your existing one.
- Go to your Account settings — Access tokens
- We suggest you create a new token for Kollaprompt.
- Copy your API token and paste it in
HUGGINGFACE_API_KEY
row in your Secrets.
Set Hugging Face billing limits
- At the point of writing this guide, there are no billing limits available in the Hugging Face API. We will update this guide when they are available.