# Connect a Google Gemini Key Learn how to obtain a Gemini API key from Google AI Studio and configure Automix's language-model settings to use it as your AI provider. _Takes About 10 minutes._ ## Before you start > **You'll need a Google account** > > Any Google account can open AI Studio and create an API key. > > [Open Google AI Studio](https://aistudio.google.com/) > **Read this guide's overview first** > > This guide assumes you already know what the LLM & Providers setting is for. > > [LLM & Provider Settings overview](/docs/platform/guides/llm-and-provider-settings) ## 1. Create a Gemini API key Sign in to Google AI Studio using the Google account you want to be responsible for Gemini usage. Navigate to the API keys section and create a new key. Copy the key immediately after creating it and keep it secret: anyone who obtains it can spend against your Google account. ## 2. Find a Gemini model ID Check Google's current model documentation for a Gemini model ID supported by your account. Use the documented ID rather than a value copied from an older guide, since available models can change. ## 3. Connect your key and choose the model Open Settings → Providers and connect your Google Gemini key using its provider card. Then select BYOK Google Gemini in the AI model options and enter a model ID supported by your Google AI Studio account. The key connection and model choice are separate steps; use Google's current model documentation rather than an old copied model name. Environment variables: `LLM_PROVIDER`, `LLM_API_KEY`, `LLM_BASE_URL`, `LLM_MODEL` ## After connecting - After you select BYOK Google Gemini, supported AI actions use your connected key and selected model. Google bills its usage directly; Automix credits do not cover that provider bill. - If Gemini returns an error, double-check the base URL and model name against Google's current documentation before assuming the key itself is wrong. ## Next - [LLM & Provider Settings overview](/docs/platform/guides/llm-and-provider-settings) - [Connect an OpenRouter key instead](/docs/platform/guides/openrouter-key) ## Provider links - [Google AI Studio](https://aistudio.google.com/) --- Status: reviewed · reviewed by codex Author: qwen3.8-27b