agentsclimarketplace

Gcp gemini api developer

Skill Raishin/vanguard-frontier-agentic/skills/gcp/gcp-gemini-api-developer

Curated marketplace of AI skills, agents, and rules for cloud, zero-trust, and compliance-aware engineering - works with Claude Code, Codex, Cursor, Copilot, and more.

Install
npx -y skills add Raishin/vanguard-frontier-agentic --skill gcp-gemini-api-developer

Assembled from the repository path, not quoted from the project. Check it against their README if it does not work.

One thing to look at

  • 18 stars18 stars. Stars are a popularity signal and not a quality one, but at this level it is likely that nobody has read this closely except its author, and you would be relying on your own review.

What its author says it does

Copied from the file, not written here

Build, integrate, and debug Gemini API applications on Google Cloud Agent Platform (formerly Vertex AI) using the unified google-genai SDK. Covers text generation, multimodal inputs, function calling, structured output, embeddings, context caching, batch prediction, streaming, Live API (bidirectional voice/video), and model tuning across Python, TypeScript/JavaScript, Go, Java, and C#. Use when building Gemini-powered applications, migrating from deprecated Vertex AI or google-generativeai SDKs, or integrating Gemini capabilities into a GCP-hosted service.

SKILL.md

4.9 KB, 993 tokens by cl100k_base, as published. Nobody here has run it

GCP Gemini API Developer

IMPORTANT BRANDING NOTE

"Agent Platform" (full name: Gemini Enterprise Agent Platform) was previously named "Vertex AI". Many web resources still use "Vertex AI" branding.

CRITICAL SDK NOTE

The following SDKs are DEPRECATED and must NOT be used:

  • google-cloud-aiplatform (Python)
  • @google-cloud/vertexai (Node.js)
  • google-generativeai (Python — Gemini Developer API SDK)

Use ONLY the unified Gen AI SDK:

  • Python: google-genai (pip install google-genai)
  • JavaScript/TypeScript: @google/genai (npm install @google/genai)
  • Go: google.golang.org/genai (go get google.golang.org/genai)
  • Java: com.google.genai:google-genai
  • C#/.NET: Google.GenAI (dotnet add package Google.GenAI)

Authentication

# Application Default Credentials (ADC) — preferred
export GOOGLE_CLOUD_PROJECT='your-project-id'
export GOOGLE_CLOUD_LOCATION='global'  # Use 'global' for automatic region routing
export GOOGLE_GENAI_USE_VERTEXAI=true

Model Selection

  • gemini-3.1-pro-preview — complex reasoning, coding, research (1M tokens)
  • gemini-3-flash-preview — fast, balanced, multimodal (1M tokens)
  • gemini-3.1-flash-lite-preview — high-frequency lightweight tasks
  • gemini-3-pro-image-preview — image generation and editing
  • gemini-live-2.5-flash-native-audio — Live Realtime API (bidirectional audio/video)
  • DEPRECATED (do not use): gemini-2.0-, gemini-1.5-, gemini-1.0-*, gemini-pro

Quick Start (Python)

from google import genai
client = genai.Client  # picks up env vars automatically
response = client.models.generate_content(
    model="gemini-3-flash-preview",
    contents="Explain transformer architecture"
)
print(response.text)

Reference Directory

Load only when needed:

ScenarioTrigger KeywordsReference
Text + multimodalchat, image, video, audio, streamingreferences/text-multimodal.md
Function calling + toolstool use, function call, grounding, code executionreferences/tools.md
Structured outputJSON, schema, structured, typed responsereferences/structured-output.md
Embeddingsembedding, semantic search, vectorreferences/embeddings.md
Context cachingcache, large context, caching tokensreferences/caching.md
Batch predictionbatch, async, large datasetreferences/batch.md
Live APIlive, realtime, voice, video streaming, bidirectionalreferences/live-api.md
Model tuningfine-tune, SFT, preference tuningreferences/tuning.md
Safetysafety filter, threshold, harm categoryreferences/safety.md
SDK migrationmigrate, deprecated, upgradereferences/migration.md

Core Rules

  • ALWAYS use the unified google-genai SDK family. If user code imports google-cloud-aiplatform, @google-cloud/vertexai, or google-generativeai, flag it as deprecated and provide migration guidance.
  • Use location="global" (global endpoint) by default for automatic capacity routing. Only use a specific region if the user explicitly requests it.
  • Initialize the client without parameters when environment variables are set — don't hardcode project/location in code.
  • gemini-3.1-pro-previewgemini-3-pro-preview — the latter does NOT exist; use the correct model IDs.
  • Context caching (CachedContent) reduces cost for repeated large contexts (system prompts, documents) — recommend it proactively for production workloads with stable large contexts.
  • For production, consult docs for stable model version aliases rather than using -preview models.
  • Batch prediction (BatchJob) is for async large-dataset inference — use it instead of looping generate_content for bulk processing.

Official Docs

Security Notes

Read-only advisory. Never embed API keys or service account credentials in code examples. Use ADC and environment variables. Do not call batch jobs or fine-tuning jobs on production data without explicit user approval.

What ships with it: 1 file

1.1 KB alongside SKILL.md

Keep looking

Skills are one crate of 327,069. Ordering is by how many stacks a row turns up in, so the top of any crate is what has actually been picked rather than what has the most stars.