gemini-api
Installation
SKILL.md
Gemini API in Gemini platform
[!IMPORTANT] Gemini platform was formerly named Gemini Enterprise Agent Platform and Vertex AI.
Usage Attribution
MUST READ: Before executing any gcloud, REST API, or MCP command, you
MUST read and follow the instructions in
Usage Attribution.
Core Directives & Prerequisites
- Unified Gen AI SDK ONLY: Python
google-genai(pip install "google-genai>=2.33.0,<3"), TS/JS@google/genai(npm install @google/genai), Gogoogle.golang.org/genai(go get google.golang.org/genai), Javacom.google.genai:google-genai:2.6.0, C#Google.GenAI(dotnet add package Google.GenAI). - NEVER use deprecated SDKs:
google-cloud-aiplatform(vertexai),@google-cloud/vertexai,cloud.google.com/go/vertexai,google-cloud-vertexai, orgoogle-generativeai(Migration Guide). - Prerequisites: Active billing (Pricing),
roles/aiplatform.user, API enabled (gcloud config set project {project_id},gcloud services enable aiplatform.googleapis.com), ADC (gcloud auth application-default login). - Efficiency: Model IDs and SDK signatures here and in
references/are verified against the current SDK. Respond directly if answered below; otherwise read only the matching line range in Reference Routing without reading unrelated references or running speculative repo/web searches unless inspecting user files or unlisted APIs.