FirebaseVertexAI Framework Reference Stay organized with collections Save and categorize content based on your preferences.
Classes
The following classes are available globally.
An object that represents a back-and-forth chat with a model, capturing the history and savingthe context in memory between each message sent.
Declaration
Swift
@available(iOS15.0,macOS12.0,tvOS15.0,watchOS8.0,*)publicfinalclassChat:SendableA type that represents a remote multimodal model (like Gemini), with the ability to generatecontent based on various input types.
Declaration
Swift
@available(iOS15.0,macOS12.0,tvOS15.0,watchOS8.0,*)publicfinalclassGenerativeModel:SendableRepresents a remote Imagen model with the ability to generate images using text prompts.
See thegenerate imagesdocumentationfor more details about the image generation capabilities offered by the Imagen model in theVertex AI in Firebase SDK.
Warning
For Vertex AI in Firebase, image generation using Imagen 3 models is in PublicPreview, which means that the feature is not subject to any SLA or deprecation policy andcould change in backwards-incompatible ways.
Declaration
Swift
@available(iOS15.0,macOS12.0,tvOS15.0,watchOS8.0,*)publicfinalclassImagenModelA
Schemaobject allows the definition of input and output data types.These types can be objects, but also primitives and arrays. Represents a select subset of anOpenAPI 3.0 schema object.
Declaration
Swift
@available(iOS15.0,macOS12.0,tvOS15.0,watchOS8.0,*)publicfinalclassSchema:SendableextensionSchema:EncodableThe Vertex AI for Firebase SDK provides access to Gemini models directly from your app.
Declaration
Swift
@available(iOS15.0,macOS12.0,tvOS15.0,watchOS8.0,*)publicclassVertexAI
Except as otherwise noted, the content of this page is licensed under theCreative Commons Attribution 4.0 License, and code samples are licensed under theApache 2.0 License. For details, see theGoogle Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2025-03-17 UTC.