vertex-ai-gemini
БесплатноБез исполняемых скриптовНе проверенGoogle Cloud Vertex AI (now Gemini Enterprise Agent Platform) for running Gemini models with Google Cloud IAM, fine-tuning and batch jobs. Use when deploying…
от TerminalSkills★ 221 звезда на GitHubОб этом скилле
Vertex AI — Gemini on Google Cloud
Overview
Vertex AI is Google Cloud's enterprise platform for Gemini. It serves the same Gemini models as the Gemini Developer API (Google AI Studio) but authenticates with Google Cloud IAM instead of an API key, bills to your project, and adds supervised fine-tuning, batch jobs at a discount, and Cloud Storage and BigQuery integration.
Naming: Google is renaming Vertex AI to Gemini Enterprise Agent Platform. Same service, same endpoints and IAM roles; the documentation has moved to
docs.cloud.google.com/gemini-enterprise-agent-platformand the old pages are no longer updated.
Instructions
Step 1: Use the Google Gen AI SDK
The Generative AI module of the Vertex AI SDK (vertexai.generative_models, GenerativeModel, vertexai.tuning.sft) was deprecated on June 24, 2025 and scheduled for removal on June 24, 2026 (Google's deprecations page). Do not write new code against it; migrate existing code to google-genai (Python 3.11+, version 3.0.0 when checked; Python 3.10 support was dropped in 2.34). Other languages: @google/genai (JS/TS), google.golang.org/genai (Go), com.google.genai:google-genai (Java), Google.GenAI (.NET).
pip install google-genai
gcloud auth application-default login # local development: no key file needed
from google import genai
# Vertex AI / Agent Platform mode: project + location, credentials from ADC
client = genai.Client(enterprise=True, project="northwind-prod", location="global")
response = client.models.generate_content(
model="gemini-3.5-flash",
contents="Explain containerization in simple terms.",
)
print(response.text)
The same client can come from environment variables: GOOGLE_GENAI_USE_ENTERPRISE=true, GOOGLE_CLOUD_PROJECT, GOOGLE_CLOUD_LOCATION, then genai.Client(). The older vertexai=True argument and GOOGLE_GENAI_USE_VERTEXAI still work (3.0.0 release notes). If GOOGLE_API_KEY or GEMINI_API_KEY is set without those variables, the client talks to the Gemini Developer API instead, so check which one you got.
location="global" routes to a region with capacity. Use a named region (us-central1, europe-west4) only for data residency. In Vertex AI / Enterprise mode the SDK still calls the beta API (v1beta1) by default; pass http_options=types.HttpOptions(api_version="v1") to the client for the stable one, or set GOOGLE_GENAI_API_VERSION.
Upgrading from 2.x to 3.0.0 (Nov 5, 2026): two breaking changes. The Gemini Developer API default moves from v1beta to v1 (Vertex AI / Enterprise defaults are unchanged and stay on v1beta1; GOOGLE_GENAI_API_VERSION or HttpOptions(api_version=...) restores or sets a version). The default HTTP client changes from httpx to httpx2, and httpx is no longer installed: pip install "google-genai[httpx]" plus GOOGLE_GENAI_HTTP_CLIENT=httpx restores it, and any timeout or transport objects you pass in HttpOptions must match the active client. The client.models, chats, batches and tunings calls below are unchanged.
Step 2: Models
Take the current list from the model-versions page of the docs; IDs change several times a year. On 2026-11-06 it listed:
| Model ID | Notes |
|---|---|
gemini-4-argon |
released Oct 13, 2026, retirement Oct 13, 2027 or later |
gemini-3.8-flash |
released Sep 2, 2026, retirement Sep 2, 2027 or later |
gemini-3.7-flash, gemini-3.6-flash |
retire Jan 28, 2027 and Nov 19, 2026: migrate to gemini-3.8-flash |
gemini-3.5-flash, gemini-3.5-flash-lite |
retirement May and July 2027 or later |
gemini-2.5-pro, gemini-2.5-flash, gemini-2.5-flash-lite |
retirement date Oct 20, 2026 has passed: treat as retired and migrate |
gemini-embedding-001, gemini-embedding-2 |
embeddings |
text-embedding-005, text-embedding-004 |
retire April 1, 2027 |
gemini-2.0-flash and gemini-1.5-* are retired, and the 2.5 family passed its retirement date on Oct 20, 2026; code that names them fails. Stable model IDs carry no date suffix; use the exact ID rather than an alias such as gemini-flash-latest in production, so a new default cannot change your results.
Step 3: Generation, streaming, chat
from google.genai import types
# System instruction and sampling settings
response = client.models.generate_content(
model="gemini-3.5-flash",
contents="How do I set up Cloud Run?",
config=types.GenerateContentConfig(
system_instruction="You are a GCP expert. Provide concise, actionable answers.",
temperature=0.2,
),
)
# Streaming
for chunk in client.models.generate_content_stream(
model="gemini-3.5-flash", contents="Write a product description for a smartwatch."
):
print(chunk.text, end="", flush=True)
# Chat keeps the history for you
chat = client.chats.create(model="gemini-3.5-flash")
print(chat.send_message("How do I set up Cloud Run?").text)
print(chat.send_message("What about environm
Установить vertex-ai-gemini в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
Вложенные файлы
FAQ
Что делает скилл vertex-ai-gemini?
Google Cloud Vertex AI (now Gemini Enterprise Agent Platform) for running Gemini models with Google Cloud IAM, fine-tuning and batch jobs. Use when deploying Gemini in GCP-native environments, running fine-tuning jobs, needing enterprise IAM controls, VPC isolation, batch prediction at scale, or production ML pipelines on Google Cloud.
Как установить скилл vertex-ai-gemini?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл vertex-ai-gemini запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
theme-factory
Toolkit for styling artifacts with a theme. These artifacts can be slides, docs, reportings, HTML landing pages, etc. There are 10 pre-set themes with…
от Anthropicaccess
Manage Discord channel access — approve pairings, edit allowlists, set DM/group policy. Use when the user asks to pair, approve someone, check who's allowed…
от Anthropicconfigure
Set up the Discord channel — save the bot token and review access policy. Use when the user pastes a Discord bot token, asks to configure Discord, asks "how…
от Anthropicaccess
Manage iMessage channel access — approve pairings, edit allowlists, set DM/group policy. Use when the user asks to pair, approve someone, check who's allowed…
от Anthropic