SuperAPI AI Directory

cc-gemini

Agents & models

View repository

Updated 10-16 07:26

About this skill

Set up Gemini free API (Claude Code version)
  1. Go to https://aistudio.google.com/apikey to create a free API key
  2. Save to ~/.gemini.env:GEMINI_API_KEY=你的key
  3. To use it in Claude, you can call it via a Skill script

Test

curl "https://generativelanguage.googleapis.com/v1beta/models/gemini-2.0-flash:generateContent?key=$GEMINI_API_KEY" -H "Content-Type: application/json" -d '{"contents":[{"parts":[{"text":"Hello"}]}]}'

⚠️ The Gemini API key is created in AI Studio and does not require a credit card.