# Google AI Edge Gallery β¨
[](LICENSE)
[](https://github.com/google-ai-edge/gallery/releases)
[-lightgrey)](https://github.com/google-ai-edge/gallery)
**Unlock the power of on-device Generative AI! The Google AI Edge Gallery is your experimental playground to explore, experience, and evaluate cutting-edge AI modelsβrunning entirely offline, directly on your Android device (iOS support coming soon).**
Dive into a world of creative and practical AI: chat with advanced models, get insights from your images, experiment with prompts, and see real-time performance. All this, without needing an internet connection once models are downloaded.
---
## π What Can You Do?
The Gallery showcases a variety of on-device AI capabilities:
| **Overview & Model Selection** | **Visual Q&A (Ask Image)** |
| :-----------------------------------------------------------------------------------------------------------------------: | :-------------------------------------------------------------------------------------------------------------------------: |
|
|
|
| **Explore available models and dive into different AI experiences.** | **Upload an image and ask questions about it, get descriptions, or identify objects.** |
| **Prompt Lab (Single-Turn LLM)** | **AI Chat (Multi-Turn Conversation)** |
| :-------------------------------------------------------------------------------------------------------------------------: | :-----------------------------------------------------------------------------------------------------------------------: |
|
|
|
| **Summarize text, rewrite content, generate code, or use freeform prompts.** | **Engage in dynamic, multi-turn conversations with an AI.** |
***Suggestion: Consider creating a short GIF showcasing these features in action and embedding it here for a more dynamic preview!***
---
## β¨ Core Features
* **π± Run Locally, Fully Offline:** Experience the magic of Generative AI without an internet connection. All processing happens directly on your device, ensuring privacy and speed.
* **π€ Diverse Model Zoo:** Easily switch between different foundation models (e.g., from Hugging Face) and compare their performance and capabilities.
* **πΌοΈ Visual Question Answering (Ask Image):** Go beyond simple object detection. Upload an image and ask complex questions, get detailed descriptions, or solve visual puzzles.
* **βοΈ Creative Prompting (Prompt Lab):** A sandbox for your ideas! Summarize articles, rewrite paragraphs, generate code snippets, or explore other single-turn LLM use cases.
* **π¬ Conversational AI (AI Chat):** Engage in fluid, multi-turn conversations. Explore the model's reasoning, memory, and conversational abilities.
* **π Real-time Performance Insights:** Monitor key metrics like Time To First Token (TTFT), decode speed (tokens/sec), and overall latency to understand model efficiency on your device.
* **π§© Bring Your Own Model (BYOM):** Advanced users can easily test their own local LiteRT `.task` models.
* **π Developer-Focused Resources:** Quick access to model cards, source code, and relevant documentation.
---
## π Get Started in Minutes!
1. **Download the App:** Grab the latest `ai-edge-gallery.apk` from our [**Releases Page**](https://github.com/google-ai-edge/gallery/releases/latest).
2. **Install & Explore:**
* Enable installation from unknown sources on your Android device.
* Install the APK.
* Launch the app and download your first model!
3. **Need Help?** For detailed installation instructions (including for corporate devices) and a full user guide, head over to our [**Project Wiki**](https://github.com/google-ai-edge/gallery/wiki).
---
## π οΈ Technology Powering the Gallery
This app leverages Google's cutting-edge on-device ML technologies:
* **Google AI Edge:** The core suite of APIs and tools enabling powerful on-device machine learning.
* **LiteRT (MediaPipe GenAI):** A lightweight, high-performance runtime optimized for executing Generative AI models directly on mobile devices.
* **LLM Inference API:** Specifically designed for running Large Language Models efficiently on-device, powering features like chat and prompt lab.
* **Hugging Face Integration:** Seamlessly discover, download, and utilize a wide range of pre-trained models from the Hugging Face Hub.
---
## π€ We Value Your Feedback!
This is an **experimental Alpha release**, and your input is crucial for shaping its future.
* π **Found a bug?** Help us improve by [**reporting it here**](https://github.com/google-ai-edge/gallery/issues/new?assignees=&labels=bug&template=bug_report.md&title=%5BBUG%5D).
* π‘ **Have an idea or feature request?** We'd love to hear it! [**Suggest it here**](https://github.com/google-ai-edge/gallery/issues/new?assignees=&labels=enhancement&template=feature_request.md&title=%5BFEATURE%5D).
* π€ **Questions or discussions?** Join the conversation on our [**Discussions Tab**](https://github.com/google-ai-edge/gallery/discussions) (if enabled) or raise an issue.
---
## π License
Licensed under the Apache License, Version 2.0. See the [LICENSE](LICENSE) file for details.
---
## π Useful Links
* [**Project Wiki (User Guides & FAQs)**](https://github.com/google-ai-edge/gallery/wiki)
* [LLM Inference guide for Android (Google AI Edge Docs)](https://ai.google.dev/edge/mediapipe/solutions/genai/llm_inference/android)
* [Google AI Edge Documentation](https://ai.google.dev/edge)
* [Hugging Face LiteRT Community](https://huggingface.co/litert-community) (for discovering compatible models)
---
**Made with β€οΈ by the Google AI Edge Team.**