cs-gemini-setup

Configure GEMINI_API_KEY on Windows and verify it against the stable v1 endpoint.

1|Updated Jun 12, 2026
One-click install
npx skills add https://github.com/Sampi314/Sam-Plugin-Marketplace --skill cs-gemini-setup
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: cs-gemini-setup
Source: https://github.com/Sampi314/Sam-Plugin-Marketplace/tree/main/Claude%20Setup/skills/cs-gemini-setup
Command: npx skills add https://github.com/Sampi314/Sam-Plugin-Marketplace --skill cs-gemini-setup

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) and references (resource) components.

What problem does it solve?

This Skill eliminates the friction of manually configuring the GEMINI_API_KEY on Windows, which causes local Gemini-dependent scripts (like the daily AI blog image generator) to fail with authentication or quota errors, and avoids the silent v1beta image generation limit issue that breaks unconfigured setups.

Core Features & Use Cases

  • Guided API Key Setup: Walks users through obtaining a Gemini API key from Google AI Studio, validates the key format, and persists it as a Windows User-scope environment variable so it works across all PowerShell sessions.
  • Endpoint-Aligned Verification: Tests both text and image generation against the stable v1 Gemini endpoint (not the v1beta preview endpoint) to catch the free-tier image generation limit issue before dependent scripts run.
  • Tailored Troubleshooting: Diagnoses common Gemini API errors (401, 403, 429) with specific, actionable fixes, including guidance for enabling billing when image generation fails due to depleted credits.
  • Use Case: If your local AI blog image generator is returning 429 errors, this skill identifies if the issue is depleted prepayment credits and walks you through enabling billing in Google AI Studio.

Quick Start

Use the cs-gemini-setup skill to configure your GEMINI_API_KEY on Windows and verify it works for both text and image generation.

Frequently Asked Questions about cs-gemini-setup

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I configure the GEMINI_API_KEY environment variable on Windows?

To configure the GEMINI_API_KEY environment variable on Windows, you need to obtain a key from Google AI Studio and persist it as a User-scope variable so it functions across all PowerShell sessions for local scripts.

Why does Gemini image generation return a 429 error on the v1beta endpoint?

Gemini image generation returns a 429 error on the v1beta endpoint due to depleted free-tier prepayment credits, requiring you to enable billing in Google AI Studio or switch to the stable v1 endpoint to avoid silent limits.

How do I troubleshoot 401 and 403 authentication errors for Gemini API scripts?

Troubleshooting 401 and 403 Gemini API authentication errors involves validating your API key format against the stable v1 endpoint and applying specific fixes for permission issues to ensure local scripts run correctly.

Does the Gemini API stable v1 endpoint support image generation verification?

Yes, the Gemini API stable v1 endpoint supports image generation verification, allowing you to test both text and image generation capabilities to catch free-tier limit issues before executing dependent scripts.

What is the best way to validate a Gemini API key format for PowerShell scripts?

The best way to validate a Gemini API key format for PowerShell scripts is to test the key against the stable v1 endpoint, which ensures it is correctly configured for local text and image generation tasks.