explaingit

google-ai-edge/gallery

Analysis updated 2026-05-18

22,684KotlinAudience · developerComplexity · 3/5LicenseSetup · 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
Click or tap to explore — scroll the page freely

Code map

Detail Auto

An interactive map of this repo's files and how they connect — its source is parsed live in your browser. Click Visualize to build it.

filefunction / class

What do people build with it?

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.

What is it built with?

KotlinSwiftGoogle AI EdgeLiteRTAndroidiOS

How does it compare?

google-ai-edge/galleryandroid/compose-samplesgoogle/iosched
Stars22,68423,12021,688
LanguageKotlinKotlinKotlin
Setup difficultymoderatemoderatemoderate
Complexity3/52/54/5
Audiencedeveloperdeveloperdeveloper

Figures from each repo's GitHub metadata at analysis time.

How do you get 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.

Frequently asked questions

What is gallery?

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.

What language is gallery written in?

Mainly Kotlin. The stack also includes Kotlin, Swift, Google AI Edge.

What license does gallery use?

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

How hard is gallery to set up?

Setup difficulty is rated moderate, with roughly 30min to a first successful run.

Who is gallery for?

Mainly developer.

Open on GitHub → Explain another repo

This repo across BitVibe Labs

Scan in gitsafehub Deploy in gitdeployhub google-ai-edge on gitmyhub

Verify against the repo before relying on details.