Skip to content

Migrate Gemini API to Google Cloud

Guides moving a Gemini app from Google AI Studio to Google Cloud's Agent Platform (Vertex AI)

Repository
google/skills
Stars
21,782
Licence
Apache-2.0
Files
2 files

What it does

When installed, the agent follows a step-by-step migration guide for moving an app that calls Gemini models from Google AI Studio to Google Cloud's Agent Platform (formerly Vertex AI). It explains how to set up billing and budget alerts, enable the API, configure authentication through Application Default Credentials and IAM roles, and compare the two services. It also tells the agent to tag its gcloud commands with an attribution string so usage can be tracked.

Great for

  • Developers moving a Gemini prototype from AI Studio into a Google Cloud project
  • Teams that want to use Google Cloud free-trial or promotional credits for Gemini calls
  • Ops engineers who need to put Gemini inference under existing Google Cloud IAM, billing and telemetry

Skip it if

  • People who only want to keep using AI Studio's free API key; the skill pushes toward Google Cloud billing and can incur charges if budgets are not set
  • Anyone without a Google Cloud account or payment method, since the migration requires billing setup
  • Non-technical users, because the steps involve terminal commands, IAM roles and VM access scopes

Try asking

  • “Help me move my Gemini chatbot from AI Studio to Vertex AI on Google Cloud”
  • “Walk me through enabling the Agent Platform API and setting up Application Default Credentials”
  • “Which IAM role do I need on my Compute Engine service account to call Gemini?”
  • “Can I use my $300 Google Cloud credits for Gemini API calls instead of AI Studio?”
Step-by-step guide: how to use Migrate Gemini API to Google CloudInstall, first run, examples, tips and FAQs

Install in 3 steps

  1. 1

    Download the skill

    The ZIP contains the 2 original files, the Apache-2.0 licence and an attribution note.

    agent-platform-migrate-from-ai-studio.zip
  2. 2

    Add it to your agent

    Claude Code (all projects)

    mkdir -p ~/.claude/skills && unzip agent-platform-migrate-from-ai-studio.zip -d ~/.claude/skills/

    Claude Code / Agent SDK (this project only)

    mkdir -p .claude/skills && unzip agent-platform-migrate-from-ai-studio.zip -d .claude/skills/

    Claude apps (web/desktop): Settings → Capabilities → Skills → Upload skill, and choose the ZIP.

  3. 3

    Ask for the task

    No special command needed — the agent reads the skill's description and loads it when your request matches. Try one of the prompts above.

Get better results

  • Set a budget alert in Google Cloud Billing before running any workload so spending stays capped
  • Review each gcloud command before the agent runs it, especially IAM policy bindings that change project permissions
  • Check the VM access scopes on Compute Engine instances, since legacy scopes can override IAM settings

What's inside

  • references/attribution.md
  • SKILL.md

Redistributed unmodified from google/skills under the Apache-2.0 licence. The assessment was drafted with AI from the skill's files on 2026-10-29. Skills can instruct your agent to run code — read SKILL.md and any scripts before installing.