com.google.firebase.ai

Classes

Chat

Representation of a multi-turn interaction with a model.

FirebaseAI

Entry point for all Firebase AI functionality.

GenerativeModel

Represents a multimodal model (like Gemini), capable of generating content based on various input types.

ImagenModel

Represents a generative model (like Imagen), capable of generating images based on various input types.

LiveGenerativeModel

Represents a multimodal model (like Gemini) capable of real-time content generation based on various input types, supporting bidirectional streaming.

Extension functions summary

FirebaseAI

Returns the FirebaseAI instance for the provided FirebaseApp and backend.

Extension properties summary

FirebaseAI

The FirebaseAI instance for the default FirebaseApp using the Google AI Backend.

Extension functions

ai

fun Firebase.ai(
    app: FirebaseApp = Firebase.app,
    backend: GenerativeBackend = GenerativeBackend.googleAI()
): FirebaseAI

Returns the FirebaseAI instance for the provided FirebaseApp and backend.

Parameters
backend: GenerativeBackend = GenerativeBackend.googleAI()

the backend reference to make generative AI requests to.

Extension properties

ai

val Firebase.aiFirebaseAI

The FirebaseAI instance for the default FirebaseApp using the Google AI Backend.