How to get a free Gemini API key and keep it safe
Make a Gemini API key in Google AI Studio in about two minutes, connect it to Capify, and learn how to keep it private and what to do if it leaks.
Capify uses Google’s Gemini to hear the words in your video. To use Gemini, you need an API key: a long code that connects requests to your own Google account. Making one is free and takes about two minutes. This guide shows how, and how to look after it.
What an API key is, in plain words
An API key works like a password that lets an app use a service on your behalf. When Capify captions your video, your browser sends the audio to Gemini along with your key. Google sees the key, knows the request comes from your account, and counts it against your account’s limits.
Because the key is yours, you stay in control. You can see it in Google AI Studio, and you can delete it at any time, which stops it working immediately.
Step by step: make your key
- Go to aistudio.google.com/apikey and sign in with your Google account. Any Gmail account works.
- Click Create API key. If Google asks you to choose a project, pick any one or let it make a new one for you.
- Google shows a long code that starts with AIza. Click the copy button next to it.
- In Capify, open the key page, paste the key into the box and connect it. Capify checks it with Google straight away.
That is it. You only do this once per browser. Next time you open Capify on the same computer and browser, the key is already there.
Is it really free?
Google offers a free tier for Gemini API keys, with limits on how much you can use each minute and each day. The free tier covers most short videos. If you reach the daily limit, Capify tells you, and you can carry on the next day.
Google only charges if you add billing to your Google project yourself. If you never set up billing, you are not charged. Google sets and changes these limits, so check Google AI Studio for the current details.
Google’s terms for the free tier may allow Google to use what you send to improve its products. Read the Gemini API terms in Google AI Studio, and avoid captioning recordings you would not want Google to process.
Where Capify keeps your key
Your key is saved only in your browser, on the computer where you entered it. When you caption a video, your browser sends the key straight to Google. It never reaches the Capify server, and we cannot see it.
That also means the key does not follow you. If you use another browser or computer, or clear your browser data, connect your key again. You can copy it from Google AI Studio whenever you need it.
Keeping your key safe
- Do not share it. Anyone with your key can use your Gemini limits, and if you have billing turned on, they could run up charges.
- Do not post it. Keep it out of screenshots, screen recordings, WhatsApp groups, comments and public documents.
- Be careful on shared computers. Remove your key from Capify when you finish on a computer other people use, or use your own browser profile.
- Only paste it into apps you trust. A key gives access to your account’s Gemini usage, so treat it with the same care as a password.
- Turn on billing only if you need it. Staying on the free tier means a leaked key cannot cost you money.
If your key leaks
Open Google AI Studio, find the key and delete it. It stops working immediately. Then create a new key and connect it in Capify. It takes a minute and there is no harm in doing it whenever you are unsure.
Do you always need a key?
No. If you already have a script, Script to captions times your text to the video without Gemini, so it needs no key. You also do not need a key to explore the sample project.
Next: follow the full guide to adding Sinhala captions.