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.

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:

Text / Chat

Image analysis / generation

Audio analysis

Video analysis

Live API (Real-time bidrectional streaming)

  • ForecastTalk: Use bidirectional streaming to get information about weather conditions
  • Gemini Live (Video input): Use bidirectional streaming to chat with Gemini using your phone's camera

Document (PDFs) analysis

All samples

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