How to Create Gemini API Key [Access and Use for Free]

How to Create Gemini API key

Are you finding ways to create Gemini API keys? It is recommended first to understand their importance and steps to generate, manage, and ensuring secure account connections with other applications. Read more in this article to experience a seamless process of creating new Gemini API keys.

What is the Gemini API key?

Gemini API key

The Gemini API key is a pair of codes that connect your software or apps to the Gemini cryptocurrency exchange's system through their API (Application Programming Interface). It consists of a public key and a private key. The public key acts as an identifier for your requests, while the private key is your secret password, used for authentication and to sign recommendations. These keys grant access to various Gemini APIs, allowing you to manage your account, fetch market data, and execute trades.

When you want to generate these keys, you can log into your Gemini account to access the API Management section and create a new API key. During this process, you specify what actions this key can perform. It's crucial to keep these keys confidential. If they're compromised, it's recommended to revoke the key immediately and create a new one. When making requests through the Gemini API, you include the API key in the HTTP request header to authenticate and access the desired functionalities.

How to create an API key.

Creating an API key is pretty straightforward process. First, you will have to head over to the API settings page. Once you're there, look for the option that says “Create a new API Key.” Click on that, and You'll get your new keys along with the chance to set what that key can do. Therefore to generate a gemini API key you can follow the steps below that can make the process seamless for the user:

Step 1: Log in to your Gemini account using your mobile browser and ensure that you complete the verification process to use the API keys.

Step 2: Click on your account name at the top right corner and click on Settings.

Step 3: Select ‘API' from the dropdown menu on the API setting page.

Select API

Step 4: In the ‘API Management‘ section, click on the ‘ Create API Key'¬† button, which you may be prompted to finish 2FA. When it's activated, input the 2FA code to continue the process.

Create API Key

Step 5: Pick from the dropdown menu to create an API Key on the scope, and choose Primary if you're trading with an individual account. Opt for Master if you use this API Key across multiple accounts.

choose Primary

Step 6: Enter names for the API keys. Having distinct names for each API will assist in effective management when dealing with multiple APIs. So you can proceed to enter the API key name.

Step 7: Save the API key and API secret. Make sure to copy this key and store it securely, as it is the only time it will be displayed, and you will need it for future connections.

Step 8: In the ‘Permissions‘ dropdown, choose the permissions you want to grant to this key. This can be either an auditor, fund management or trading. For example, if you want to give this key the ability to view your account balance, make trades, and withdraw funds, you would select ‘Trading.

Step 9: Click on the ‘Create‘ button to generate the API key. Your newly created API key should be displayed in the ‘API Keys‘ section of the ‘API Management' page.


API key is temporarily disabled in the UK.

API key functionality has been turned off in the UK since 22nd November 2023, and customers in the UK cannot create new API keys. For UK users requiring API key access, you will have to use an alternative way of utilizing a VPN to switch addresses so that it can bypass the restriction put in place to fake your geographical location in the IP address. The Gemini team is working tirelessly to make things right to follow the UK travel Rule to get API functions back up and running by January 2024.

How to turn off the API key

You may need to turn off your API key due to concerns about an API key getting into the wrong hands or you've stopped using a specific integration linked to your account. To achieve this, you may need to turn off that API key, and the below steps can guide you well on how to do that in your Gemini account:

Step 1: Sign in to your Gemini account.

Step 2: Click on your account name at the top right corner and select ‘API‘ from the dropdown menu.

Step 3: In the ‘API Management‘ section, find the API key you want to disable in the ‘API Keys‘ list.

Step 4: Click the ‘Disable' button next to the API key you want to disable. This will revoke the API key and prevent it from being used.

Note: Once you turn off an API key, you cannot use it again. If you want to re-enable it in the future, you will need to generate a new API key and set its permissions again.


Q. Can multiple applications use an API key?

Yes, this is possible when you generate an API key; you can assign it to any specific application or keep it Unassigned. However, when an API is used with multiple applications, the key may be at risk when it is compromised or stolen. Generating unique API keys for each application or user is a good practice.

Q. Will API keys expire?

Yes. By default, API keys usually expire every 90 days, adding a layer of security and preventing compromised keys from staying active for too long. But if you do not want the API keys to be deleted since you are using them, you must select the option in the checkbox that says ‘Automatically renew the API key‘ when creating a new API key. So, this kind of API key will still have that 90-day expiration, but every time you use it, it resets the key and acts like a refresh button.


To wrap it up, Gemini API keys are essential for connecting apps to the Gemini exchange application. They consist of public and private keys, allowing secure account management. The above steps highlighted in creating the Gemini API key will simplify your work. In the Gemini account settings, users create keys for assigning permissions and secure them since you will need them when creating a new API. Also, please note that API functionality was temporarily disabled in the UK, which is a matter under solving, but one can use a VPN to bypass the restriction kept in place.

Leave a Reply

Your email address will not be published. Required fields are marked *