Sponsored byOutsenseAI that finds your next clients
SponsorGROUOutbound, LinkedIn content and leads for B2B teamsSponsorOutsenseAI that finds your next clientsAd+Your tool hereSeen by people installing AI tools@Weekly picksThe best new tools, one email a week

gemini-api

Skill by google

Integrates Gemini models on the Gemini platform using the unified Google Gen AI SDK. It is for developers building Google Cloud AI workloads in Python, TypeScript, Go, Java, or C#.

  • Score 92
  • 25k stars
  • Apache-2.0
  • Updated
Works withClaude CodeClaude apps Antigravity CLI

Install gemini-api

Built from the published package, never by AI.

git clone --depth 1 https://github.com/google/skills /tmp/skills && mkdir -p ~/.claude/skills && cp -r /tmp/skills/skills/cloud/gemini-api ~/.claude/skills/gemini-api

Run in your terminal. Claude Code loads skills from ~/.claude/skills automatically.

Step-by-step: install gemini-api in Claude Code

Skills can run scripts on your machine. Some need an API key: check the README.

About

Gemini API is a skill that helps an AI assistant integrate Gemini models on the Gemini platform, formerly Gemini Enterprise Agent Platform and Vertex AI. It uses the unified Google Gen AI SDK across Python, TypeScript and JavaScript, Go, Java, and C#. The covered tasks include text and multimodal generation, structured JSON, function calling, Search grounding, code execution, URL context, image, video, speech, and music generation, embeddings, caching, batch, thinking, safety settings, Live API, and model tuning.

The skill includes a Python quick start, a table of recommended models, and routing to reference files for each task. It tells the assistant not to use deprecated SDKs or older model families. It requires Google Cloud credentials, active billing, and the aiplatform API. It is aimed at developers building Google Cloud AI workloads. Requests for stateful agent sessions, Managed Agent CRUD, raw WebSocket debugging, open-model tuning jobs, or OpenAI SDK work point to other skills.

Written from the project's SKILL.md and checked against it.

What it can do

  • Text and multimodal generationGenerates text and multimodal output with Gemini models, including chat and streaming.
  • Structured JSON and function callingReturns JSON matching a schema and calls developer-defined functions.
  • Search and URL groundingAdds Search grounding, code execution, and URL context to responses.
  • Image generationGenerates and edits images with Nano Banana models.
  • Video generationCreates video with Gemini Omni and Veo models.
  • Speech and musicCovers text-to-speech and Lyria music generation.
  • EmbeddingsCreates text, image, and segmented video embeddings.
  • Caching, batch, and thinkingUses explicit caching, batch requests, and thinking settings.
  • Live APICovers bidirectional audio and video sessions with the Live API.
  • Model tuningCovers supervised fine-tuning and preference tuning.

What you need

  • Google Cloud credentials with application default credentials
  • Active billing on the Google Cloud project
  • Role roles/aiplatform.user
  • Gemini platform API (aiplatform.googleapis.com) enabled
  • Google Gen AI SDK for the chosen language

Try asking

  • Write a Python script that calls gemini-4-hydrogen with a system instruction.
  • Generate a JSON response with a schema using Gemini on Google Cloud.
  • Add Search grounding to my Gemini answer in TypeScript.

Good to know

  • The Live API and model tuning require a regional location such as us-central1.
  • Express Mode API keys cannot be combined with project and location settings.
  • Some models are listed for use only when explicitly requested or required by a feature.
  • Deprecated SDKs and model families are not to be recommended.

Security check

A

No download-and-run commands, hidden instructions or signs of sending keys out were found.

Checked automatically: skills/cloud/gemini-api/SKILL.md. This looks for known risky patterns and is not a full audit. How grades work

Inside the skill

  • SKILL.md8 KB
  • references/advanced_features.md5 KB
  • references/attribution.md2 KB
  • references/bounding_box.md2 KB
  • references/embeddings.md2 KB
Show all 12 files
  • references/live_api.md2 KB
  • references/media_generation.md11 KB
  • references/model_tuning.md2 KB
  • references/safety.md2 KB
  • references/sdks.md4 KB
  • references/structured_and_tools.md6 KB
  • references/text_and_multimodal.md4 KB

Alternatives to gemini-api

All alternatives →

Compare with agent-reproduce-align, google_contacts or m06-error-handling

gemini-api: common questions

Which SDK does this skill use?

It uses the unified Google Gen AI SDK, such as google-genai for Python and @google/genai for TypeScript and JavaScript. It says the deprecated google-cloud-aiplatform and vertexai SDKs must not be used.

Which models does it recommend?

The default text model listed is gemini-4-hydrogen. The skill says not to recommend deprecated models such as gemini-2.5 and gemini-2.0.

Does it cover Live API and model tuning?

Yes, it covers both. The source says the Live API and tuning require a regional location such as us-central1.

How do I install gemini-api?

Run the command above to copy the skill into ~/.claude/skills/. Claude Code picks it up automatically.

Is gemini-api free?

The code is published under the Apache-2.0 licence. The service it connects to may have its own pricing.

Is gemini-api safe to use?

It scores 92 of 100. Grades: maintenance A, licence A, quality A. Security check: grade A, no risky patterns found in the files checked. Review the code before you install. How grades work.

What are alternatives to gemini-api?

Similar skills: agent-reproduce-align, google_contacts, m06-error-handling, caveman.

gemini-api Install

Add to stack

Loading.