explaingit

google-ai-edge/gallery

📈 Trending23,074KotlinAudience · developerComplexity · 3/5ActiveLicenseSetup · moderate

TLDR

Run AI language models directly on your phone with no internet or privacy concerns. Download a model, chat offline, analyze photos, and transcribe audio, all locally on your device.

Mindmap

mindmap
  root((repo))
    What it does
      Run LLMs offline
      No internet needed
      Private on-device
    Key features
      AI Chat
      Analyze photos
      Voice transcription
      Custom models
    Use cases
      Private conversations
      Evaluate models locally
      Learn AI capabilities
    Tech stack
      Kotlin Android
      Swift iOS
      Google AI Edge
    Audience
      Mobile developers
      Privacy-conscious users
      AI experimenters

Things people build with this

USE CASE 1

Build a private AI chat app that works offline on your phone without sending data to servers.

USE CASE 2

Analyze photos and images using AI vision capabilities directly on your device.

USE CASE 3

Transcribe and translate voice in real-time without an internet connection.

USE CASE 4

Test and compare how different AI models perform on your specific phone hardware.

Tech stack

KotlinSwiftGoogle AI EdgeLiteRTAndroidiOS

Getting it running

Difficulty · moderate Time to first run · 30min

Requires Android SDK/Xcode setup and downloading a model file before first run.

Use freely for any purpose including commercial. Keep the notice and disclose changes to the patent grant.

In plain English

Google AI Edge Gallery is a mobile app that lets you run large language models, AI that can hold conversations, answer questions, and reason through problems, entirely on your phone, with no internet connection required. The models run directly on your device's hardware, so nothing leaves your phone. The problem it solves: most AI assistants send your questions to remote servers, raising privacy concerns and requiring a connection. This app lets you experience powerful AI capabilities offline and privately, on your own device. How it works: you download the app, choose one of the supported open-source language models (such as Google's Gemma 4 family), and the model is downloaded and stored on your device. From there, all processing happens locally. The app includes several built-in use cases: AI Chat (multi-turn conversations with optional step-by-step reasoning display), Ask Image (analyze photos from your camera or gallery), Audio Scribe (real-time voice transcription and translation), Prompt Lab (a testing workspace for trying different inputs), and Mobile Actions (offline device automation). You can also load custom models. You would use this app if you want to experiment with on-device AI privately, evaluate model performance on your specific phone, or build understanding of what current AI models can do locally without a server. The tech stack is Kotlin (Android) and Swift (iOS), using Google AI Edge and LiteRT for on-device model inference.

Copy-paste prompts

Prompt 1
Show me how to integrate Google AI Edge Gallery into my Android app to run Gemma models locally.
Prompt 2
How do I load a custom language model into the Google AI Edge Gallery app and test it offline?
Prompt 3
Walk me through the code for the Ask Image feature that analyzes photos on-device in this gallery.
Prompt 4
What's the best way to implement real-time voice transcription using this repo's Audio Scribe approach?
Prompt 5
Help me understand how to set up the Prompt Lab testing workspace to experiment with different model inputs.
Open on GitHub → Explain another repo

Generated 2026-05-18 · Model: sonnet-4-6 · Verify against the repo before relying on details.