Hi OP, Architectural Differences: google.generativeai - Low-Level API: Direct Model Access: This library provides a relatively direct mapping to the underlying Google generative model APIs. It exposes concepts like GenerationConfig, SafetySettings, and different model variants in a fairly ver… Answer from CincyAI on discuss.ai.google.dev
🌐
Google AI
ai.google.dev › gemini api › migrate to the google genai sdk
Migrate to the Google GenAI SDK | Gemini API | Google AI for Developers
April 28, 2026 - import google.generativeai as genai ... While GoogleGenerativeAI was a central point for models and chat, other functionalities like file and cache management often required importing and instantiating entirely separate client classes. import { ...
🌐
PyPI
pypi.org › project › google-generativeai
google-generativeai · PyPI
Google Generative AI High level API client library and tools. ... With Gemini 2.0, we took the chance to create a single unified SDK for all developers who want to use Google's GenAI models (Gemini, Veo, Imagen, etc).
      » pip install google-generativeai
    
Published   Dec 16, 2025
Version   0.8.6
🌐
Google AI
discuss.ai.google.dev › gemini api
Google.generativeai vs python-genai - Gemini API - Google AI Developers Forum
December 13, 2024 - I see google has new API. GenAI (from google import genai) I am not sure, Is the GenAI will be replace google.generativeai or they will maintain both?
🌐
Google Cloud
cloud.google.com › ai › generative-ai
Generative AI | Google Cloud
1 week ago - Learn how generative AI can transform customer service, enhance employee productivity, automate business processes, and more. Build a single knowledge base from disparate datasets ...
Top answer
1 of 2
15

Gemini is a large language model as you specified. You can use it (via API calls) by calling either Google AI APIs or Vertex AI APIs.

If you are relatively new to Gemini and wants to explore the feature and build some prototype for your chatbot app, Google AI APIs (with Google AI Studio) is a fast way to get started. While your app and idea matures and you'd like to leverage more MLOps tools that streamline the usage, deployment, and monitoring of models, you can move to Google Cloud Vertex AI which provides Gemini APIs along with many other features. Basically, to help you productionize your app.

Depending on your app requirement and stages of your development, you can choose the path:

  • Start with Google AI Studio and migrate Gemini app to Vertex AI
  • Prototype and build with Vertex AI if you already have GCP established.

Pay attention to the Google AI vs. Vertex AI differences when making decision.

Update (2025):

Google released a new GenAI SDK that provides a unified interface to Gemini >2.0models through both the Gemini Developer API and the Gemini API on Vertex AI. With a few exceptions, code that runs on one platform will run on both. This means that you can prototype an application using the Gemini Developer API and then migrate the application to Vertex AI without rewriting your code.

Detail see here.

2 of 2
1

Updated answer in Aug 2025

Significant changes have been introduced in 2025. Google has released a new Google GenAI SDK, that allows to switch between Google Gemini and Gemini on Vertex AI.

Here is a code samples for your

Copyimport {GoogleGenAI} from '@google/genai';
const GEMINI_API_KEY = process.env.GEMINI_API_KEY;

const ai = new GoogleGenAI({apiKey: GEMINI_API_KEY});      # Using Google Gemini

async function main() {
  const response = await ai.models.generateContentStream({
    model: 'gemini-2.0-flash-001',
    contents: 'Write a 100-word poem.',
  });
  for await (const chunk of response) {
    console.log(chunk.text);
  }
}

main();

To change this code to use Gemini on Vertex

Copy
const ai = new GoogleGenAI({                               # Using Gemini on Vertex AI
    vertexai: true,
    project: 'your_project',
    location: 'your_location',
    apiVersion: 'v1'
});

Tip: If you are planning to use Gemini on Vertex AI, I recommend check Global Endpoint.

To make this code more portable, you also set required config in Environment Variables. Check: https://www.npmjs.com/package/@google/genai or https://github.com/googleapis/js-genai

🌐
Google AI
discuss.ai.google.dev › gemini api
Need clarification about Google AI python packageS (google-genai vs google-generativeai) - Gemini API - Google AI Developers Forum
January 16, 2025 - The problem I encounter is the existence of two different Python packages offered by Google. First, there is the generative-ai-python (github: /google-gemini/generative-ai-python), installed as pip install -U google-generativeai and imported as import google.generativeai as genai. The README ...
🌐
Google
docs.cloud.google.com › gemini enterprise agent platform › generative ai beginner's guide
Generative AI beginner's guide | Gemini Enterprise Agent Platform | Google Cloud Documentation
5 days ago - Generative AI models are often called large language models (LLMs) because of their large size and ability to understand and generate natural language. However, depending on the data that the models are trained on, these models can understand and generate content from multiple modalities, including text, images, videos, and audio.
🌐
GitHub
github.com › google-gemini › deprecated-generative-ai-python › issues › 266
google-gemini/deprecated-generative-ai-python
March 30, 2024 - This SDK is now deprecated, use the new unified Google GenAI SDK. - google-gemini/deprecated-generative-ai-python
Author   google-gemini
Find elsewhere
🌐
Google
docs.cloud.google.com › gemini enterprise agent platform › google gen ai sdk
Google Gen AI SDK | Generative AI on Vertex AI
The Google Gen AI SDK provides a unified interface to Gemini models through both the Gemini Developer API and the Gemini API on Gemini Enterprise Agent Platform.
🌐
Google
blog.google › products-and-platforms › products › search › generative-ai-google-search-may-2024
Generative AI in Search: Let Google do the searching for you
When you’re looking for fresh ideas, it can take a lot of work to find inspiration and consider all your options. Soon, when you’re looking for ideas, Search will use generative AI to brainstorm with you and create an AI-organized results page that makes it easy to explore.
Published   May 12, 2025
🌐
Medium
medium.com › google-cloud › gemini-on-vertex-ai-and-google-ai-now-unified-with-the-new-google-gen-ai-sdk-094a7ebca8e6
Gemini on Vertex AI and Google AI now unified with the new Google Gen AI SDK | by Mete Atamel | Google Cloud - Community | Medium
December 17, 2024 - response = client.models.generate_content( model='gemini-2.0-flash-exp', contents='Why is sky blue?' ) print(response.text) So far, nothing out of the ordinary. However, let’s now try talking to Gemini on Vertex AI. For Vertex AI, you need a Google Cloud project and also pick a location for your Gen AI calls. You still create a client but this time, you pass in the vertexai=True flag. You also pass in your Google Cloud project id and location: client = genai.Client( vertexai=True, project='your-google-cloud-project-id', location='us-central1' )
🌐
Coursera
coursera.org › coursera articles › data › ai and machine learning › ai vs. generative ai: the differences explained
AI vs. Generative AI: The Differences Explained | Coursera
January 9, 2026 - Generative AI applications like ChatGPT, Microsoft Copilot, Google Gemini, and DALL-E can produce human-like responses and generate original content.
🌐
Wikipedia
en.wikipedia.org › wiki › Generative_AI
Generative AI - Wikipedia
1 day ago - Generative artificial intelligence (GenAI) is a subfield of artificial intelligence (AI) that uses generative models to generate text, images, videos, audio, software code (vibe coding) or other forms of data.
🌐
Google
docs.cloud.google.com › ai and ml › generative ai › when to use generative ai or traditional ai
When to use generative AI or traditional AI | Generative AI | Google Cloud Documentation
In this document, traditional AI refers to AI capabilities and use cases that might not require employing generative AI capabilities, like some classification and predictive AI use cases. Traditional AI models excel at learning from existing data to classify information or predict future outcomes based on historical patterns.
🌐
Medium
medium.com › google-cloud › 10-google-ai-tools-for-genai-developers-you-need-to-know-cf77f5a4b458
10 Google AI Tools for GenAI Developers You Need to Know | by Olejniczak Lukasz | Google Cloud - Community | Medium
August 19, 2024 - In this rapidly evolving field of generative AI, Google is paving the way with an impressive suite of tools that streamline the development process, enhance model evaluation, and simplify the integration of AI capabilities into applications. From prototyping to deployment, these tools offer a comprehensive solution for building cutting-edge GenAI ...
🌐
Datatonic
datatonic.com › insights › generative-ai-google-cloud
Generative AI 101: GenAI on Google Cloud | Datatonic
Google Cloud has recently announced a set of differentiating GenAI products aiming to accelerate the enterprise adoption of GenAI. First, Generative App Builder has been introduced, an application that aims at powering companies with out-of-the-box solutions for search and conversational experiences.
🌐
Google DeepMind
deepmind.google › models
Models — Google DeepMind
3 days ago - Google AI Studio · Gemini Enterprise Agent Platform · Learn more · Our most advanced music generation model yet · Gemini app · Google AI Studio · Gemini Enterprise Agent Platform · Learn more · New · Advanced real-time audio models, built on Gemini ·
🌐
LangChain
python.langchain.com › docs › integrations › chat › google_generative_ai
ChatGoogleGenerativeAI integration - Docs by LangChain
Access Google’s Generative AI models, including the Gemini family, via the Gemini Developer API or Vertex AI. The Gemini Developer API offers quick setup with API keys, ideal for individual developers. Vertex AI provides enterprise features and integrates with Google Cloud Platform. For information on the latest models, model IDs, their features, context windows, etc. head to the Google AI docs. Vertex AI consolidation & compatibilityAs of langchain-google-genai 4.0.0, this package uses the consolidated google-genai SDK instead of the legacy google-ai-generativelanguage SDK.This migration brings support for Gemini models both via the Gemini Developer API and Gemini API in Vertex AI, superseding certain classes in langchain-google-vertexai, such as ChatVertexAI.Read the full announcement and migration guide.
🌐
Google Translate
translate.google.com › gemini api
Google.generativeai vs python-genai - Gemini API - Google AI Developers Forum
December 11, 2024 - Simplified Workflow: genai is designed to offer a simpler programming model. The aim is to reduce the verbosity required to achieve basic functionalities. The interaction looks more functional.
🌐
Nielsen Norman Group
nngroup.com › articles › ai-changing-search-behaviors
How AI Is Changing Search Behaviors - NN/G
March 18, 2026 - Many users still default to Google, giving Gemini a fighting chance. Generative AI (genAI) is reshaping how people search for information. Anyone watching their content pageviews decline is currently ...