https://github.com/marb2000/android_quickstart_ai_logic
https://github.com/marb2000/android_quickstart_ai_logic
Last synced: 8 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/marb2000/android_quickstart_ai_logic
- Owner: marb2000
- Created: 2025-08-20T21:22:28.000Z (10 months ago)
- Default Branch: main
- Last Pushed: 2025-09-27T04:25:52.000Z (9 months ago)
- Last Synced: 2025-09-27T06:14:51.143Z (9 months ago)
- Language: Kotlin
- Size: 119 KB
- Stars: 0
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# 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](http://firebase.google.com/docs/ai-logic).
## Getting Started
To try out this sample app, you need to use latest stable version of Android Studio.
However, if you want to latest lint checks and AI productivity features in Android
Studio use the latest preview version of [Android Studio](https://developer.android.com/studio/preview).
## Features
There are 2 main files that demonstrate the use of Firebase AI Logic:
- [ChatViewModel.kt](app/src/main/java/com/google/firebase/quickstart/ai/feature/text/ChatViewModel.kt)
which can do things such as:
- [Generate Text](https://firebase.google.com/docs/ai-logic/generate-text)
- [Generate structured output (JSON)](https://firebase.google.com/docs/ai-logic/generate-structured-output)
- [Analyze images](https://firebase.google.com/docs/ai-logic/analyze-images)
- [Analyze video](https://firebase.google.com/docs/ai-logic/analyze-video)
- [Analyze audio](https://firebase.google.com/docs/ai-logic/analyze-audio)
- [Analyze documents (PDFs)](https://firebase.google.com/docs/ai-logic/analyze-documents)
- [Generate images using Gemini 2.0](https://firebase.google.com/docs/ai-logic/generate-images-imagen)
- [Function calling](https://firebase.google.com/docs/ai-logic/function-calling)
- [ImagenViewModel](app/src/main/java/com/google/firebase/quickstart/ai/feature/media/imagen/ImagenViewModel.kt)
which shows how to [Generate images using Imagen models](https://firebase.google.com/docs/ai-logic/generate-images-imagen)
## All samples
The full list of available samples can be found in the
[FirebaseAISamples.kt file](app/src/main/java/com/google/firebase/quickstart/ai/FirebaseAISamples.kt).