getInstance
Returns the FirebaseAI instance for the provided FirebaseApp and backend.
Parameters
the backend reference to make generative AI requests to.
Returns the FirebaseAI instance for the provided FirebaseApp and backend.
Parameters
the backend reference to make generative AI requests to.
when sending tokens to the backend, this option enables the usage of App Check's limited-use tokens instead of the standard cached tokens. Learn more about limited-use tokens, including their nuances, when to use them, and best practices for integrating them into your app.
This flag is set to false by default.
The FirebaseAI instance for the provided FirebaseApp using the Google AI Backend.
Returns the FirebaseAI instance for the provided FirebaseApp and backend.
Parameters
the backend reference to make generative AI requests to.
Returns the FirebaseAI instance for the provided FirebaseApp and backend.
Parameters
the backend reference to make generative AI requests to.
when sending tokens to the backend, this option enables the usage of App Check's limited-use tokens instead of the standard cached tokens. Learn more about limited-use tokens, including their nuances, when to use them, and best practices for integrating them into your app.
This flag is set to false by default.
The FirebaseAI instance for the provided FirebaseApp using the Google AI Backend.
Returns the FirebaseAI instance for the provided FirebaseApp and backend.
Parameters
the backend reference to make generative AI requests to.
Returns the FirebaseAI instance for the provided FirebaseApp and backend.
Parameters
the backend reference to make generative AI requests to.
when sending tokens to the backend, this option enables the usage of App Check's limited-use tokens instead of the standard cached tokens. Learn more about limited-use tokens, including their nuances, when to use them, and best practices for integrating them into your app.
This flag is set to false by default.
The FirebaseAI instance for the provided FirebaseApp using the Google AI Backend.