Overview: Firebase AI Logic solutions

As you develop your app withFirebase AI Logic, you might want to go beyondthe basics discussed in the main guides. The solutions outlined in this sectionoffer guidance on more advanced use cases.

Manage files and include large files in multimodal requests

By usingCloud Storage for Firebase, you can take advantage of a fast, secure,and scalable infrastructure for file storage and management. Plus, you caninclude larger files in your multimodal requests using aCloud Storage for Firebase URL.

See theCloud Storage for Firebase solution

Protect your app from unauthorized clients

For mobile and web apps, you need to protect theGemini API andyour project resources from abuse by unauthorized clients.You can useFirebase App Check to verify that all API calls are from youractual app.

See theFirebase App Check guide

Dynamically and conditionally set runtime configurations

If you want to set configurations based on runtime conditions, you can useFirebase Remote Config. One example is changing thelocation where you run theVertex AI service and generative model based on anend-user's location.

See theRemote Config solution

Update values in your app without releasing a new version of your app

If you need to dynamically change values in your app without releasing a newversion of your app, you can useFirebase Remote Config. Examples includeupdating the model name when a new model version is released or changingsystem instructions, prompts, safety settings, or input for a request.

See theRemote Config solution


We're actively working on other solutions and guides, so check back soon!

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-10-03 UTC.