Skip to main content

How can I get an API key to use AI in Heptabase?

Updated yesterday

Starting from v1.59.0, you can use your own API key to access AI chat in Heptabase, letting you pay based on your usage.

We'll soon launch a plan that lets you use AI features without needing to set up an API key. Stay tuned!

Below is a brief guide on how to request API keys. We currently support three options: Google Gemini, OpenAI, and Anthropic Claude. (Just click the link to go to the section)


Google Gemini

Step 1: Sign in with a Google Account

Go to the Gemini API page, make sure you are logged into a Google account in your web browser (the one you want associated with the API key). If you don’t have a Google account, you will need to create one first.

Step 2: Go to the API Keys Page

After logging in, click the "Get a Gemini API key" button.

Step 3: Create API Key and save it

Click the "Create API key" button in the top-right of the page. Choose an existing project, then click "Create API key in existing project.

Then, follow the instruction on the page, save the API key in a safe place.

Step 4: Paste the key into Heptabase

Open your desktop or web version of Heptabase, then go to Settings → AI Features → Use my API key to use AI features without limits.

Next, click the + button, select Gemini, and paste your secret key.

Step 5: Upgrade to the Paid Tier (optional)

Google Gemini has free and paid tiers. To use advanced models like Gemini Pro 2.5, you may need to upgrade to a paid plan. For more details, check the pricing page and click the "Upgrade to Paid Tier" button to upgrade.


OpenAI

Step 1: Sign Up for an OpenAI Account

If you don’t have one, go to the OpenAI platform and create an account. You may need to verify your email and phone number during registration (a valid phone is required for account verification). Once your account is created and verified, log in.

Step 2: Create a new Secret Key

After logging in, navigate to the OpenAI API keys section. Click the "Create new secret key" button in the top-right corner. You can choose different settings based on your needs. If you have no specific preference, simply click "Create secret key".

Step 3: Copy the key and save it

Follow the instruction on the page, save the secret key in a safe place.

Step 4: Paste the key into Heptabase

Open your desktop or web version of Heptabase, then go to Settings → AI Features → Use my API key to use AI features without limits.

Next, click the + button, select OpenAI, and paste your secret key.

Step 5: Buy credits

You must first purchase at least $5 worth of credits to use the service. You can visit the Billing page on the OpenAI Platform to buy credits and set up an usage limit.


Anthropic Claude

Step 1: Sign Up for an Anthropic Account

If you don’t have one, go to the Anthropic Console and create an account. You may need to verify your email and phone number during registration (a valid phone is required for account verification). Once your account is created and verified, log in.

Step 2: Create API Key

After logging in, navigate to the API Key section. Click the "Create key" button in the right. You can name your key, then click "Add".

Step 3: Copy the key and save it

Follow the instruction on the page, save the secret key in a safe place.

Step 4: Paste the key into Heptabase

Open your desktop or web version of Heptabase, then go to Settings → AI Features → Use my API key to use AI features without limits.

Next, click the + button, select Anthropic, and paste your secret key.

Step 5: Buy credits

You must first purchase at least $5 worth of credits to use the service. You can visit the Billing page on the Anthropic Console to buy credits, set up auto-reload, or set up an usage limit.

Did this answer your question?