As your Gemini API applications mature, you might find that you need a more expansive platform for building and deploying generative AI applications and solutions end-to-end. Vertex AI provides a comprehensive ecosystem of tools to enable developers to harness the power of generative AI, from the initial stages of app development to app deployment, app hosting, and managing complex data at scale.
With Vertex AI, you get access to a suite of Machine Learning Operations (MLOps) tools to streamline usage, deployment, and monitoring of AI models for efficiency and reliability. Additionally, integrations with databases, Development Operations (DevOps) tools, logging, monitoring, and IAM offer a comprehensive approach to managing the entire generative AI lifecycle.
Differences between using the Gemini API on its own and Vertex AI
The following table summarizes the main differences between the Gemini API and Vertex AI to help you decide which option is right for your use case:
generativelanguage.googleapis.com
aiplatform.googleapis.com
- Server: Python, Node.js, Go, Dart, ABAP
- Mobile/Web client (via Firebase AI Logic ): Android (Kotlin/Java), Swift, Web, Flutter, and Unity
- Server: Python, Node.js, Go, Java, ABAP
- Mobile/Web client (via Firebase AI Logic ): Android (Kotlin/Java), Swift, Web, Flutter, and Unity
- Customer encryption key
- Virtual private cloud
- Data residency
- Access transparency
- Scalable infrastructure for application hosting
- Databases and data storage
Migration steps
The following sections cover the steps required to migrate your Gemini API code to Vertex AI. These steps assume you have prompt data from Google AI Studio saved in Google Drive.
When migrating to Vertex AI:
- You can use your existing Google Cloud project (the same one you used to generate your Gemini API key) or you can create a new Google Cloud project .
- Supported regions might differ between the Gemini API and Vertex AI. See the list of supported regions for generative AI on Google Cloud .
- Any models you created in Google AI Studio need to be retrained in Vertex AI.
1. Migrate your prompts to Vertex AI Studio
Your Google AI Studio prompt data is saved in a Google Drive folder. This section shows how to migrate your prompts to Vertex AI Studio.
- Open Google Drive .
- Navigate to the AI_Studiofolder where the prompts are stored.

-
Download your prompts from Google Drive to a local directory.
-
Open Vertex AI Studio in the Google Cloud console.
-
In the Vertex AImenu, click Recents > View allto open the Prompt managementmenu.
-
Click Import prompt.
-
Next to the Prompt filefield, click Browseand select a prompt from your local directory.
To upload prompts in bulk, you must manually combine your prompts into a single JSON file.
-
Click Upload.
2. Upload training data to Vertex AI Studio
To migrate your training data to Vertex AI, you need to upload your data to a Cloud Storage bucket. For more information, see Introduction to tuning .
3. Delete unused API Keys
If you no longer need to use your Gemini API key for the Gemini Developer API, then follow security best practices and delete it.
To delete an API key:
-
Open the Google Cloud API Credentials page.
-
Find the API key that you want to delete and click the Actionsicon.
-
Select Delete API key.
-
In the Delete credentialmodal, select Delete.
Deleting an API key takes a few minutes to propagate. After propagation completes, any traffic using the deleted API key is rejected.
What's next
- Try a quickstart tutorial using Vertex AI Studio or the Vertex AI API .

