WhoBuilt

Gemini Nano on device

May 22, 2026· 20 min· 2.0K views·Watch on YouTube

Speakers

Florina Muntenescu, developer relations engineer, and Oli Gaymond, Android AI product manager, at Google DeepMind discuss building Android experiences with Gemini Nano and cloud models at an AI Engineer event.

Choosing on-device, hybrid, or cloud inference

Android apps can use on-device models, cloud inference, or a hybrid approach that uses a local model when available and the cloud otherwise. On-device processing keeps prompts on the device, supports offline use, and avoids inference charges. Muntenescu cited sensitive data, personalization, and translation as possible use cases.

Accessing Gemini Nano through Android

Muntenescu described ML Kit GenAI APIs as the route to Gemini Nano, with LiteRT-LM for developers who need custom models. Gemini Nano is delivered through the AI Core system service, which manages the model and optimizes it for device hardware. The Prompt API accepts text and images and returns text; task-specific APIs include summarization, proofreading, and rewriting.

Extending reach with hybrid inference

Gemini Nano is currently available on recent flagship devices, including Pixel 9 and Pixel 10 generations and some other manufacturers’ devices. Firebase AI Logic can route inference to the cloud when the on-device model is unavailable, or provide cloud access to Gemini models through Gemini API and Vertex AI. Gaymond described Android’s offering as spanning local, cloud, and blended inference.

Managing battery, memory, and shared access

Gaymond said the models require flagship hardware and can drain battery quickly if run continuously, while occasional interactive use, such as 10 to 20 requests a day, was not a major concern in their experience. AI Core centralizes the model, scheduling, and access across apps; foreground requests receive priority, while background requests may be queued. The model sizes discussed were around 1 GB for smaller useful models and 3–4 GB for those being shipped.

Building retrieval and supporting more devices

Gaymond said developers can build RAG-style features with the Prompt API, and that an embedding API was planned but not yet available at the time of the talk. ML Kit’s traditional text, OCR, and vision models can run on a much wider range of devices than the newer GenAI APIs. Developers seeking broader GenAI device coverage can use LiteRT-LM, but must test compatibility and performance themselves.

Takeaways

  • Choose on-device inference when privacy, offline access, or avoiding per-request inference costs matters.
  • Use hybrid routing to support devices without Gemini Nano while retaining a local path where available.
  • Treat continuous inference as a battery and scheduling concern; design batch workloads for background or charging periods.
  • AI Core handles shared model access and prioritization, but queued requests may affect latency.
  • Plan for device coverage: GenAI APIs target recent flagships, while custom-model approaches require developer testing.

Mentioned in this talk

Search inside this talk

What was claimed 15

Show all 15 facts

Related talks