ai
fun Firebase.ai(app: FirebaseApp, backend: GenerativeBackend = GenerativeBackend.googleAI(), useLimitedUseAppCheckTokens: Boolean = false): FirebaseAI(source)
The FirebaseAI instance for app and backend.
Parameters
backend
the backend to send the requests to: GenerativeBackend.googleAI (the Gemini Developer API) or GenerativeBackend.agentPlatform.
useLimitedUseAppCheckTokens
whether to send App Check's limited-use tokens instead of the cached ones.
The FirebaseAI instance for the default app, using the Gemini Developer API backend.