The Android XR SDK has reached Developer Preview 4, and we want your feedback! Try things out, and visit our support page to reach out.

Enhance your Android XR app with AI using Gemini API

Applicable XR devices
This guidance helps you build experiences for these types of XR devices.
XR Headsets
Wired XR Glasses
Audio &
Display Glasses

Android XR is the first Android platform built in the Gemini era, and it powers an ecosystem of headsets, glasses, and everything in between. Gemini makes Android XR experiences easier to use and adds unique capabilities by helping your users understand what they're seeing and taking actions on their behalf.

You can access Gemini APIs using Firebase AI Logic, which is available for both native Android apps (with Kotlin) and for Unity. Use these APIs to build AI-powered features that integrate with cloud-based Gemini models.

Choose a model

To get started, compare the capabilities of each model available in Firebase. You can then evaluate the results of various prompts for different models in AI Studio to determine which model fits your use case.

Explore other ways to enhance your app with Gemini

After you've determined the model that fits your use case, consider these other ways to enhance your app:

Content and code samples on this page are subject to the licenses described in the Content License. Java and OpenJDK are trademarks or registered trademarks of Oracle and/or its affiliates.

Last updated 2026年07月21日 UTC.