# gallery | google-ai-edge | Knowledge Base | Instagit

A gallery that showcases on-device ML/GenAI use cases and allows people to try and use models locally.

GitHub Stars: 17.4k

Repository: https://github.com/google-ai-edge/gallery

---

## Articles

### [How to Extend Mobile Actions with Custom Native Functionality: A Step-by-Step Guide](/google-ai-edge/gallery/extend-mobile-actions-custom-native-functionality-google-ai-edge-gallery)

Extend Mobile Actions with custom native functionality. Learn how to annotate Kotlin methods, define Action subclasses, and implement Android logic step-by-step. Enhance your mobile app development now.

- Tags: how-to-guide
- Published: 2026-04-06

### [Build System Used for the Android App in AI Edge Gallery: Gradle with Kotlin DSL](/google-ai-edge/gallery/build-system-android-app-google-ai-edge-gallery)

Discover the Gradle Kotlin DSL build system powering the Google AI Edge Gallery Android app. Learn about its centralized configuration, version catalog, and SDK 35 Jetpack Compose setup.

- Tags: internals
- Published: 2026-04-06

### [Minimum Android and iOS Versions Required for the Google AI Edge Gallery App](/google-ai-edge/gallery/minimum-android-ios-versions-google-ai-edge-gallery)

Discover the minimum Android 12+ and iOS 17+ OS versions needed for the Google AI Edge Gallery app. Learn why these requirements ensure access to the latest ML APIs.

- Tags: api-reference
- Published: 2026-04-06

### [How Google AI Edge Gallery Maintains Privacy and Security During On-Device Inference](/google-ai-edge/gallery/privacy-security-on-device-inference-google-ai-edge-gallery)

Discover how Google AI Edge Gallery secures on-device inference. Learn about LiteRT-LM runtime, private app directories, and local tensor processing for complete user privacy.

- Tags: best-practices
- Published: 2026-04-06

### [How to Add Tool Definitions for Mobile Actions in Android](/google-ai-edge/gallery/add-tool-definitions-mobile-actions-google-ai-edge-gallery)

Learn how to add tool definitions for Mobile Actions in Android by annotating Kotlin functions and implementing execution logic. Follow our guide for seamless integration.

- Tags: how-to-guide
- Published: 2026-04-06

### [How to Define New Action Types for Mobile Actions in Google AI Edge Gallery](/google-ai-edge/gallery/define-new-action-types-mobile-actions-google-ai-edge-gallery)

Learn how to define new action types for Mobile Actions in the Google AI Edge Gallery. Extend ActionType, expose a matching Tool method, and implement runtime logic.

- Tags: how-to-guide
- Published: 2026-04-06

### [How to Use the 'Ask Image' Feature for Visual Analysis with the Device Camera in Google AI Edge Gallery](/google-ai-edge/gallery/ask-image-feature-visual-analysis-camera-google-ai-edge-gallery)

Unlock visual analysis with the 'Ask Image' feature in Google AI Edge Gallery. Use your device camera to query on-device LLMs for insights without cloud data. Learn more today.

- Tags: how-to-guide
- Published: 2026-04-06

### [Google AI Edge Gallery Multimodal Capabilities: On-Device Image and Audio Processing](/google-ai-edge/gallery/multimodal-capabilities-google-ai-edge-gallery)

Explore multimodal capabilities in the Google AI Edge Gallery. Process images and audio on-device with Ask Image and Audio Scribe tasks for LLMs.

- Tags: deep-dive
- Published: 2026-04-06

### [How to Load Agent Skills from URLs or Community Contributions in AI Edge Gallery](/google-ai-edge/gallery/load-agent-skills-urls-community-google-ai-edge-gallery)

Learn to load Agent Skills from URLs or community contributions in the AI Edge Gallery. Easily add new skills using SkillManagerViewModel and SkillAllowlist.

- Tags: how-to-guide
- Published: 2026-04-06

### [How to Embed JavaScript and HTML in Google AI Edge Gallery Agent Skills](/google-ai-edge/gallery/embed-web-technologies-agent-skills-google-ai-edge-gallery)

Learn to embed JavaScript and HTML in Google AI Edge Gallery Agent Skills. Build interactive web interfaces for LLM tool calls using native webviews.

- Tags: how-to-guide
- Published: 2026-04-06

### [How Agent Skills Extend LLMs with External Integrations in Google AI Edge Gallery](/google-ai-edge/gallery/agent-skills-extend-llms-external-integrations-google-ai-edge-gallery)

Learn how Agent Skills extend LLMs with external integrations securely on device. Inject metadata and route tool calls to JavaScript or Android for powerful, cloud-free assistants. Explore Google AI Edge Gallery.

- Tags: deep-dive
- Published: 2026-04-06

### [How to Perform Benchmark Testing of Models on Different Hardware in the Gallery App](/google-ai-edge/gallery/benchmark-testing-models-hardware-google-ai-edge-gallery)

Benchmark test AI models on various hardware using the Gallery app. Measure init latency, prefill throughput, and decode speed. Compare results efficiently.

- Tags: how-to-guide
- Published: 2026-04-06

### [How the Gallery Model Management System Handles Downloading and Caching ML Models](/google-ai-edge/gallery/model-management-download-cache-google-ai-edge-gallery)

Discover how Google AI Edge Gallery's model management system efficiently downloads and caches ML models with WorkManager, resume support, and external storage.

- Tags: internals
- Published: 2026-04-06

### [How Thinking Mode Works in Google AI Edge Gallery: A Complete Technical Guide](/google-ai-edge/gallery/thinking-mode-chat-system-google-ai-edge-gallery)

Uncover how Google AI Edge Gallery's Thinking Mode reveals LLM reasoning during chat. Get a complete technical guide to this UI-driven feature.

- Tags: deep-dive
- Published: 2026-04-06

### [How LlmChatModelHelper.kt Interfaces with the LiteRT Runtime for On-Device LLM Inference](/google-ai-edge/gallery/llmchatmodelhelper-kt-liter-interface)

Discover how LlmChatModelHelper.kt bridges your chat UI with the LiteRT LLM runtime. Learn about model configuration, backend selection, and native resource management for efficient on-device inference.

- Tags: deep-dive
- Published: 2026-04-06

### [How the LLM Chat Interface Is Built with Jetpack Compose in the AI Edge Gallery](/google-ai-edge/gallery/llm-chat-interface-jetpack-compose-google-ai-edge-gallery)

Discover how the LLM chat interface in the AI Edge Gallery is built with Jetpack Compose using reusable components and a stateful ViewModel for streaming on-device responses.

- Tags: deep-dive
- Published: 2026-04-06

### [Main Architectural Components of the Google AI Edge Gallery App: A Deep Dive into the Android Codebase](/google-ai-edge/gallery/google-ai-edge-gallery-architecture-components)

Explore the Google AI Edge Gallery app's main architectural components. Dive into its layered, modular design leveraging Jetpack Compose, Hilt, and a custom task framework for seamless AI integration. Understand the Android cod...

- Tags: architecture
- Published: 2026-04-06

### [What Is LiteRT and How It Powers On-Device LLM Inference in Google AI Edge Gallery](/google-ai-edge/gallery/what-is-liter-google-ai-edge-gallery)

Discover LiteRT, the lightweight runtime powering on-device LLM inference with a simple Kotlin/Java API. Explore its use in Google AI Edge Gallery for advanced AI applications.

- Tags: deep-dive
- Published: 2026-04-06

### [How to Run LLMs Entirely On-Device with Google AI Edge Gallery: Complete Implementation Guide](/google-ai-edge/gallery/how-to-run-llms-on-device-google-ai-edge-gallery)

Run LLMs entirely on-device with Google AI Edge Gallery and the MediaPipe LLM Inference API. Discover a complete implementation guide for local, private model execution.

- Tags: how-to-guide
- Published: 2026-04-06

