๐Ÿง  Android AI Projects and Production

Gemini Nano vs Cloud-Based Gemini Models

Gemini Nano runs on the device, through Android's AICore. Cloud Gemini models run on Google's servers, reached from Android through Firebase AI Logic. They have very different capabilities and constraints, and you can combine them with hybrid inference.

โœ๏ธ Yunok Tech ๐Ÿ“… Updated โฑ 3 min read ๐ŸŽฏ Intermediate
On this page
  1. Two paths to Gemini
  2. Side-by-side
  3. Hybrid inference
  4. How to choose
  5. Use cases
  6. Frequently asked questions
  7. Conclusion

Our Cloud vs On-Device AI article compares the approaches in general. This one is specific to Google's Gemini family on Android: what Nano can and can't do, what cloud models add, and how to use both.

Two paths to Gemini

Gemini Nano versus cloud Gemini architecture On-device path: the app calls ML Kit GenAI APIs, which use AICore and Gemini Nano on supported devices; data stays on the device. Cloud path: the app calls Firebase AI Logic, protected by App Check, which calls cloud Gemini models such as Flash. Hybrid inference can prefer on-device and fall back to cloud. Your app ML Kit GenAI APIs AICore โ†’ Gemini Nanoon supported devices Firebase AI Logic + App Check Cloud Gemini modelsFlash, Flash-Lite, Pro-class Hybrid inference: prefer on-device, fall back to cloud (experimental)
On-device keeps data local; cloud gives stronger models on every device.

Side-by-side

Gemini Nano (on-device)Cloud Gemini (Firebase AI Logic)
Device supportLimited set of recent devices with AICore. Check the supported list.Any device with network
CapabilitySmall model: summarise, rewrite, proofread, describe images, short promptsMuch stronger reasoning, long context, multimodal, tools
Input limitsSmall context (e.g. summarisation under ~4,000 tokens)Large context windows
LanguagesLimited per feature (e.g. summarisation: English, Japanese, Korean)Broad
PrivacyData stays on deviceData sent to Google; review terms
OfflineYes (after model download)No
CostNo per-call costPer-token pricing (free tier available)
ConstraintsForeground only, per-app quotas, battery limitsRate limits, App Check enforcement
StatusML Kit GenAI APIs in betaGenerally available

Model names and limits change frequently. Current cloud models include gemini-3.8-flash and gemini-3.5-flash-lite. Check the models page before shipping.

Hybrid inference

Firebase AI Logic offers experimental hybrid inference: the SDK uses on-device Gemini Nano when available, otherwise the cloud model:

Hybrid inference (experimental API)Kotlin
val model = Firebase.ai(backend = GenerativeBackend.googleAI()).generativeModel(
    modelName = "gemini-3.8-flash",                       // cloud fallback
    onDeviceConfig = OnDeviceConfig(mode = InferenceMode.PREFER_ON_DEVICE),
)
val reply = model.generateContent("Rewrite politely: $draft").text

Because the experimental API may change, follow the hybrid inference docs for the exact dependency and names.

Hybrid changes the privacy story

If the feature falls back to the cloud, data leaves the device on some phones. Disclose this, or offer an "on-device only" setting that disables the fallback for sensitive content.

How to choose

  1. Sensitive data, offline need, simple task โ†’ Nano where available, with a non-AI fallback elsewhere.
  2. Must work on every device, harder task โ†’ cloud Gemini.
  3. Simple task, wide reach, cost-sensitive โ†’ hybrid: Nano when present, cloud otherwise.
  4. Long documents or complex reasoning โ†’ cloud.

Use cases

Smart reply drafts

Nano rewriting on supported devices: private, instant.

Study Q&A

Cloud model for reasoning over long material. See AI Study Assistant.

Note summaries

Hybrid: on-device when possible, cloud for long notes.

Frequently asked questions

Can I call Gemini Nano with any prompt?

ML Kit's Prompt API allows custom prompts on supported devices, within Nano's smaller capability and context limits. Task-specific APIs (summarise, rewrite) are more tuned.

Is Nano free?

There's no per-call charge, but it only runs on supported devices, in the foreground, within quotas.

Conclusion

Gemini Nano offers private, offline, free inference for simple tasks on supported devices. Cloud Gemini offers stronger models everywhere at a per-token cost. Hybrid inference combines them, with clear disclosure.

Next step: run your own models on device with LiteRT and LiteRT-LM.

Official references

๐Ÿ“ฑ Apps built by Yunok Tech

Real Android apps on Google Play, free to download.

See all our apps โ†’

Ready to build real Android applications?

Every AI feature still runs inside an Android app that has to be fast, reliable and well structured. Strengthen the Kotlin, Jetpack Compose and architecture skills that AI integrations depend on, then apply these AI concepts with confidence.

Move beyond theory and strengthen your Android development skills with Yunoktech's Android course. Learn core concepts, practical implementation, modern Android development techniques, and the reasoning behind building maintainable applications.

Explore the Android course and take your next step as an Android developer.

Share: LinkedIn X / Twitter WhatsApp