Skip to main content
Connect Your AI

Get a Google Gemini API key

Get a Gemini API key from Google AI Studio and add it to Vinaa's Google connection.

Written By Sujeevan Nagarajah

Last updated 22 days ago

An API key is a secret code that lets Vinaa use Gemini through your Google project. In Vinaa's provider list, the connection is called Google.

Check the free tier and billing

Google offers a Gemini API free tier for eligible projects and models, with request and usage limits. Some models and tools require paid access. Check Google's API pricing for current availability; a key doesn't unlock every model.

Paid API use is managed through the Google Cloud billing account linked to the project. It is based on usage, including tokens—small pieces of text the model processes—and applicable tools. See Google's API billing guide before enabling paid access.

Get your key in Google AI Studio

  1. Open Google AI Studio's API keys page.

  2. Sign in with your Google account.

  3. Accept the service terms if prompted.

  4. Copy the key created for your default project, if one is provided.

If you need a new key instead:

  1. Click Create API key.

  2. Follow the dialog to name the key and choose or create its Google Cloud project.

  3. Create the key.

  4. Copy the complete key.

Every key belongs to a Google Cloud project, which controls billing and limits. Google may create a default project and key for new users. Existing Google Cloud users may need to import a project first; follow Google's API key guide.

Add Google to Vinaa

  1. Open Vinaa → Settings… (⌘,).

  2. Select AI Models.

  3. Click Add Connection in the toolbar.

  4. Select Google under Model Providers.

  5. Enter a Name, or keep the suggested name.

  6. Paste the key into API Key.

  7. Click Continue.

  8. In Choose Models, select models available to your project's tier.

  9. Click Add Connection.

Vinaa stores your key in the macOS Keychain. Press ⌘L in a chat to choose a Gemini model you added.

If a model or tool doesn't work

A model can appear in the list even when your project doesn't have quota to use it. If Google reports a limit or billing error, check the project's tier and available usage in AI Studio. Google's troubleshooting guide also covers projects that aren't eligible for the free tier.

Google Search availability varies by model and tier. A free-tier text reply working doesn't mean Search is available for that model. Check the model's entry in Google's pricing page, then try without that tool, choose a supported model, or enable paid billing if appropriate.

If an older key stops working, create a replacement in AI Studio following Google's current key guidance. In Vinaa, open the connection in AI Models and click Edit… to replace it.

Related articles

  • Which AI connection should I use?

  • Connect an AI provider

  • Use AI tools

  • Fix AI connection problems