IMPORTANT: In July 2025, we stopped releasing new versions of KTX modules, and we removed the KTX libraries from the Firebase Android BoM (v34.0.0). If you use KTX APIs from the previously released KTX modules, we recommend that you
migrate your app to use KTX APIs from the main modules instead. For details, see the
FAQ about this initiative.
Stay organized with collections
Save and categorize content based on your preferences.
com.google.firebase.vertexai
Classes
Chat |
This class is deprecated. The Vertex AI in Firebase SDK (firebase-vertexai) has been replaced with the FirebaseAI SDK (firebase-ai) to accommodate the evolving set of supported features and services.
|
FirebaseVertexAI |
Entry point for all Vertex AI in Firebase functionality.
|
GenerativeModel |
This class is deprecated. The Vertex AI in Firebase SDK (firebase-vertexai) has been replaced with the FirebaseAI SDK (firebase-ai) to accommodate the evolving set of supported features and services.
|
ImagenModel |
This class is deprecated. The Vertex AI in Firebase SDK (firebase-vertexai) has been replaced with the FirebaseAI SDK (firebase-ai) to accommodate the evolving set of supported features and services.
|
LiveGenerativeModel |
This class is deprecated. The Vertex AI in Firebase SDK (firebase-vertexai) has been replaced with the FirebaseAI SDK (firebase-ai) to accommodate the evolving set of supported features and services.
|
Extension functions summary
Extension properties summary
Extension functions
Extension properties
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2025-07-21 UTC.
[null,null,["Last updated 2025-07-21 UTC."],[],[],null,["# com.google.firebase.vertexai\n============================\n\nClasses\n-------\n\n|------------------------------------------------------------------------------------------------|-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| [Chat](/docs/reference/kotlin/com/google/firebase/vertexai/Chat) | **This class is deprecated.** The Vertex AI in Firebase SDK (firebase-vertexai) has been replaced with the FirebaseAI SDK (firebase-ai) to accommodate the evolving set of supported features and services. |\n| [FirebaseVertexAI](/docs/reference/kotlin/com/google/firebase/vertexai/FirebaseVertexAI) | Entry point for all *Vertex AI in Firebase* functionality. |\n| [GenerativeModel](/docs/reference/kotlin/com/google/firebase/vertexai/GenerativeModel) | **This class is deprecated.** The Vertex AI in Firebase SDK (firebase-vertexai) has been replaced with the FirebaseAI SDK (firebase-ai) to accommodate the evolving set of supported features and services. |\n| [ImagenModel](/docs/reference/kotlin/com/google/firebase/vertexai/ImagenModel) | **This class is deprecated.** The Vertex AI in Firebase SDK (firebase-vertexai) has been replaced with the FirebaseAI SDK (firebase-ai) to accommodate the evolving set of supported features and services. |\n| [LiveGenerativeModel](/docs/reference/kotlin/com/google/firebase/vertexai/LiveGenerativeModel) | **This class is deprecated.** The Vertex AI in Firebase SDK (firebase-vertexai) has been replaced with the FirebaseAI SDK (firebase-ai) to accommodate the evolving set of supported features and services. |\n\nExtension functions summary\n---------------------------\n\n|------------------------------------------------------------------------------------------|------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| [FirebaseVertexAI](/docs/reference/kotlin/com/google/firebase/vertexai/FirebaseVertexAI) | [Firebase](/docs/reference/kotlin/com/google/firebase/Firebase)`.`[vertexAI](/docs/reference/kotlin/com/google/firebase/vertexai/package-summary#(com.google.firebase.Firebase).vertexAI(com.google.firebase.FirebaseApp,kotlin.String))`(app: `[FirebaseApp](/docs/reference/kotlin/com/google/firebase/FirebaseApp)`, location: `[String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)`)` Returns the [FirebaseVertexAI](/docs/reference/kotlin/com/google/firebase/vertexai/FirebaseVertexAI) instance of a given [FirebaseApp](/docs/reference/kotlin/com/google/firebase/FirebaseApp). |\n\nExtension properties summary\n----------------------------\n\n|------------------------------------------------------------------------------------------|-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| [FirebaseVertexAI](/docs/reference/kotlin/com/google/firebase/vertexai/FirebaseVertexAI) | [Firebase](/docs/reference/kotlin/com/google/firebase/Firebase)`.`[vertexAI](/docs/reference/kotlin/com/google/firebase/vertexai/package-summary#(com.google.firebase.Firebase).vertexAI()) Returns the [FirebaseVertexAI](/docs/reference/kotlin/com/google/firebase/vertexai/FirebaseVertexAI) instance of the default [FirebaseApp](/docs/reference/kotlin/com/google/firebase/FirebaseApp). |\n\nExtension functions\n-------------------\n\n### vertexAI\n\n```\nfun Firebase.vertexAI(\n app: FirebaseApp = Firebase.app,\n location: String = \"us-central1\"\n): FirebaseVertexAI\n```\n\nReturns the [FirebaseVertexAI](/docs/reference/kotlin/com/google/firebase/vertexai/FirebaseVertexAI) instance of a given [FirebaseApp](/docs/reference/kotlin/com/google/firebase/FirebaseApp).\n\nExtension properties\n--------------------\n\n### vertexAI\n\n```\nval Firebase.vertexAI: FirebaseVertexAI\n```\n\nReturns the [FirebaseVertexAI](/docs/reference/kotlin/com/google/firebase/vertexai/FirebaseVertexAI) instance of the default [FirebaseApp](/docs/reference/kotlin/com/google/firebase/FirebaseApp)."]]