Skip to content

Latest commit

 

History

History

README.md

Firebase AI Logic quickstart sample app

This Android sample app demonstrates how to use state-of-the-art generative AI models (like Gemini) to build AI-powered features and applications.

For more information about Firebase AI Logic, visit the documentation.

Screenshot

Setup & Configuration

Prerequisites

  • Google AI (Gemini) API Key: Most samples work out of the box with the Google AI SDK.
  • Vertex AI: Samples marked with (Vertex AI) require you to enable the Vertex AI API in your Google Cloud project and have your files in Cloud Storage.
  • Server Prompt Templates: These samples require you to set up templates in the Firebase Console.

Getting Started

To try out this sample app, you need to use latest stable version of Android Studio.

Features

You can find the implementation for each feature by clicking on the links below:

Gemini 3

Nano Banana

Multimodal understanding

Tools and function calling

Live API streaming

Server prompt templates

Hybrid inference

  • Hybrid Receipt Scanner: Use hybrid inference to scan receipts and extract expense data on-device whenever possible.

All samples

The full list of available samples can be found in the FirebaseAISamples.kt file.