MediaPipe LLM Inference API is in maintenance mode: what Android developers should know
Reader question: I found a tutorial that uses MediaPipe to run a language model in an Android app. Should I build on it?
Google's Android guide for the MediaPipe LLM Inference API opens with a notice. The API is in maintenance-only mode, and Google recommends migrating Android projects to the LiteRT-LM Android (Kotlin) API. That one line decides most of the answer: older tutorials still work as a learning aid, but new work should start from LiteRT-LM. Our page on LiteRT-LM supported models and measured speeds covers the replacement.
What the guide says about devices
- The API runs language models completely on the device, for tasks such as text generation, retrieving information in natural language form, and summarising documents.
- Google says it is optimized for high-end Android devices, such as the Pixel 8 and Samsung S23 or later, and does not reliably support device emulators. If you only test on an emulator, you will not learn how a model behaves.
What the quickstart does
- Add the
com.google.mediapipe:tasks-genailibrary (the guide shows version 0.10.27). - Download a model. The guide uses Gemma-3 1B in a 4-bit quantized format from Hugging Face.
- During development, push the model to the phone with
adb. For release, Google says to host the model on a server and download it at runtime, because the model is too large to bundle in an APK. - Create the task with the model path and a maximum top-K, then call
generateResponse()for one answer, or the async version to stream partial results.
What is not stated
The guide does not say when support will end, and we found no date. We also did not test whether apps built on it keep working.
What we did not check
We did not build or run the sample. The library version and model names are those on the guide on 27 November 2026 and will change.
Sources
- LLM Inference guide for Android, Google AI Edge (read 27 Nov 2026)
- Gemma 4 on LiteRT-LM, Google AI Edge
Checked: 27 Nov 2026. Figures change; confirm on the source before you rely on them.
Keep reading
- 8 GB vs 12 GB vs 16 GB phone for AI: which one should you buy?What each RAM tier lets you run, with the models, file sizes and the one-sentence verdict for each.
- AI-Benchmark ranking: what the columns mean, and what the top phones showReading the AI-Benchmark phone table: the score columns, five phones with their chip, RAM and AI Score as listed, and what the numbers cannot tell you about chat models.
- The airplane mode test: how to check a phone model is really offlineLoad a model on Wi-Fi, switch on airplane mode, send a prompt. The check VDF AI recommends and what it does and does not prove.
- Android local AI runtimes explained: MLC LLM, llama.cpp, ExecuTorch and moreA May 2026 guide lists five ways to run models on Android and warns about NNAPI deprecation, aggressive background killing and vendor-locked NPU tools. A secondary source, with caveats.