Install Google Gemini API key

Free cloud AI for script generation. No credit card required. Generous free tier with Gemini 2.0 Flash and 2.5 Pro.

Windows PowerShell. Paste & run.


      
      
Open Windows Terminal or PowerShell, paste the line above, hit Enter. The script handles Python check, install, and model download.

macOS Linux Terminal. Paste & run.


      
      
Open Terminal, paste, hit Enter.

Paste this into Claude Code (works in Cursor / Codex / Cline too)

Open Claude (the desktop app or web), click + New session, switch to the Code tab, then paste the prompt below as your first message. Claude does the install, downloads, and verification for you. No terminal commands you have to type yourself.

Get Claude (free) Claude Code quickstart
Help me get a free Google Gemini API key for Phantomline.

1. Open https://aistudio.google.com/apikey in my browser.
2. Sign in with my Google account.
3. Click 'Create API Key' and select or create a Google Cloud project.
4. Copy the generated key.
5. In Phantomline, go to Settings → AI engine → Cloud, choose 'Gemini' as the provider, and paste the key.
6. The key is saved to my browser's localStorage — it never touches Phantomline's server.
7. Test by generating a script. It should complete in a few seconds using Gemini Flash.
What Claude will do for you:
  1. Detect your OS
  2. Check whether prerequisites are installed (Python, Git, etc.)
  3. Install anything missing
  4. Install Google Gemini API key and download model weights
  5. Verify the install worked
  6. Tell you when it's done
You'll see Claude ask for permission before running each install command. You can approve all or step through.

1Open Google AI Studio

Go to aistudio.google.com/apikey and sign in with any Google account. No credit card is required.

2Create an API key

Click Create API Key. Select an existing Google Cloud project or let it create one for you. The key appears instantly — copy it.

3Paste the key into Phantomline

Open the studio, go to Settings → AI engine → Cloud. Select Gemini as the provider and paste your key. It's saved to your browser's localStorage and never sent to Phantomline's server.

4Generate a test script

Pick any topic and hit Generate. Your browser calls the Gemini API directly. Scripts come back in a few seconds. The free tier supports Gemini 2.0 Flash and Gemini 2.5 Pro with generous rate limits.

Verify it worked

Generate a script in the studio. If it completes successfully, your Gemini API key is working.

Then: Reload /app — the readiness checklist will flip Google Gemini API key to READY.
Stuck? Email support@phantomline.xyz with your OS and the error and we'll send you exact steps.