<!-- mobian-agent-page publisher="dailydev" canonical="https://daily.dev/posts/introducing-unity-support-in-firebase-ai-logic-hj68givoe" -->

---
title: Introducing Unity support in Firebase AI Logic | daily.dev
description: Firebase AI Logic now has a Preview SDK for Unity, letting game and Android XR developers integrate Gemini models directly into their Unity projects without...
canonical: https://daily.dev/posts/introducing-unity-support-in-firebase-ai-logic-hj68givoe
twitter:card: summary_large_image
twitter:site: @dailydotdev
og:type: website
og:site_name: daily.dev
og:title: Introducing Unity support in Firebase AI Logic | daily.dev
og:description: Firebase AI Logic now has a Preview SDK for Unity, letting game and Android XR developers integrate Gemini models directly into their Unity projects without...
og:url: https://daily.dev/posts/introducing-unity-support-in-firebase-ai-logic-hj68givoe
og:image: https://api.daily.dev/og/posts/HJ68givoe.png
og:image:alt: Introducing Unity support in Firebase AI Logic
og:image:width: 1200
og:image:height: 630
og:locale: en
---

> ## Documentation Index
> Fetch the complete documentation index at: https://daily.dev/llms.txt
> Use this file to discover all available pages before exploring further.

# Introducing Unity support in Firebase AI Logic

**[Firebase](https://daily.dev/sources/firebase-blog)** · 5 min read · 0 upvotes · 0 comments

## Summary

Firebase AI Logic now has a Preview SDK for Unity, letting game and Android XR developers integrate Gemini models directly into their Unity projects without building custom backend infrastructure. The SDK offers two API pathways: the Gemini Developer API (free tier plus pay-as-you-go, currently in Preview) and the Vertex AI Gemini API (enterprise-grade, already GA). It supports multimodal input/output and bi-directional streaming, enabling use cases like conversational storytelling, dynamic image generation, and context-aware NPCs. Built-in integrations with Firebase Authentication, App Check, and Cloud Storage support production readiness. The SDK works with Android XR Developer Preview 2 projects in Unity 6, and supports Unity 2021 LTS and later on Android and iOS.

## Full article

daily.dev links to this article rather than hosting it. Read it at the original source: <https://firebase.blog/posts/2025/05/ai-logic-unity-androidxr>

## Questions this post answers

### How do I integrate Gemini AI models into a Unity game or Android XR app?

Use the Firebase AI Logic SDK for Unity, released in Preview, which lets you call Gemini models directly from Unity runtime code without building a custom backend. It supports the Gemini Developer API (free tier plus pay-as-you-go) or the GA Vertex AI Gemini API for enterprise needs, and includes built-in Firebase Authentication, App Check, and Cloud Storage integration.

_daily.dev surfaces SDK releases like this for developers wiring generative AI into Unity projects._

### Does the Firebase AI Logic Unity SDK support Android XR?

Yes, the Firebase AI Logic SDK for Unity is compatible with Android XR projects built in Unity 6, specifically targeting Android XR Developer Preview 2. It also supports Unity 2021 LTS and onward on both Android and iOS, letting developers build multimodal AI features like context-aware artwork generation placed in XR environments.

_Developers tracking XR and AI tooling compatibility can follow updates like this on daily.dev._

### What is the difference between the Gemini Developer API and Vertex AI Gemini API in Firebase AI Logic?

The Gemini Developer API is aimed at getting started quickly, offering a no-cost tier for prototyping plus a pay-as-you-go plan for production, and is currently in Preview working toward general availability. The Vertex AI Gemini API is already generally available and targets production apps needing enterprise-grade governance and availability guarantees.

_Comparing AI API tiers before committing a production app is easier with daily.dev's coverage of these releases._

## Similar posts on daily.dev

- [Build smarter apps with Gemini 3 Flash](https://daily.dev/posts/build-smarter-apps-with-gemini-3-flash-rgootmsr4) · Android Developers Blog · 76 upvotes · 2 comments
- [Serverless AI for Android with Firebase AI Logic](https://daily.dev/posts/serverless-ai-for-android-with-firebase-ai-logic-33d7pefc4) · ProAndroidDev · 0 upvotes · 0 comments
- [Experimental hybrid inference and new Gemini models for Android](https://daily.dev/posts/experimental-hybrid-inference-and-new-gemini-models-for-android-cc5bn1znk) · Android Developers Blog · 1 upvotes · 0 comments

---

Tags: [#genai](https://daily.dev/tags/genai), [#unity](https://daily.dev/tags/unity), [#firebase](https://daily.dev/tags/firebase), [#google-gemini](https://daily.dev/tags/google-gemini)

[View this post on daily.dev](https://daily.dev/posts/introducing-unity-support-in-firebase-ai-logic-hj68givoe)

```json
{"@context":"https://schema.org","@graph":[{"@type":"Organization","@id":"https://daily.dev/#organization","name":"daily.dev","url":"https://daily.dev","logo":{"@type":"ImageObject","url":"https://daily.dev/apple-touch-icon.png","width":180,"height":180},"sameAs":["https://twitter.com/dailydotdev","https://github.com/dailydotdev","https://www.linkedin.com/company/daily-dev-ltd"]},{"@type":"WebSite","@id":"https://daily.dev/#website","url":"https://daily.dev","name":"daily.dev","publisher":{"@id":"https://daily.dev/#organization"},"potentialAction":{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https://daily.dev/search?q={search_term_string}"},"query-input":"required name=search_term_string"}}]}
{"@context":"https://schema.org","@type":"TechArticle","headline":"Introducing Unity support in Firebase AI Logic","url":"https://daily.dev/posts/introducing-unity-support-in-firebase-ai-logic-hj68givoe","mainEntityOfPage":{"@type":"WebPage","@id":"https://daily.dev/posts/introducing-unity-support-in-firebase-ai-logic-hj68givoe"},"datePublished":"2026-08-23T12:20:25.984Z","dateModified":"2026-08-23T12:43:21.820Z","description":"Firebase AI Logic now has a Preview SDK for Unity, letting game and Android XR developers integrate Gemini models directly into their Unity projects without...","image":"https://media.daily.dev/image/upload/f_auto,q_auto/v1/posts/abec0906c283503808e304987d9d53fd?_a=AQAEuop","thumbnailUrl":"https://media.daily.dev/image/upload/f_auto,q_auto/v1/posts/abec0906c283503808e304987d9d53fd?_a=AQAEuop","isAccessibleForFree":true,"articleSection":"Firebase","inLanguage":"en","publisher":{"@type":"Organization","name":"daily.dev","url":"https://daily.dev","logo":{"@type":"ImageObject","url":"https://daily.dev/apple-touch-icon.png","width":180,"height":180}},"author":{"@type":"Organization","name":"Firebase","logo":"https://media.daily.dev/image/upload/s--i395oqZH--/f_auto,q_auto/v1787487448/logos/firebase-blog?_a=BAMAMicg0","url":"https://daily.dev/sources/firebase-blog"},"commentCount":0,"discussionUrl":"https://daily.dev/posts/introducing-unity-support-in-firebase-ai-logic-hj68givoe","interactionStatistic":[{"@type":"InteractionCounter","interactionType":{"@type":"LikeAction"},"userInteractionCount":0},{"@type":"InteractionCounter","interactionType":{"@type":"CommentAction"},"userInteractionCount":0}],"keywords":"genai,unity,firebase,google-gemini","timeRequired":"PT5M"}
{"@context":"https://schema.org","@type":"BreadcrumbList","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https://daily.dev"},{"@type":"ListItem","position":2,"name":"Firebase","item":"https://daily.dev/sources/firebase-blog"},{"@type":"ListItem","position":3,"name":"Introducing Unity support in Firebase AI Logic"}]}
{"@context":"https://schema.org","@type":"FAQPage","@id":"https://daily.dev/posts/introducing-unity-support-in-firebase-ai-logic-hj68givoe#faq","mainEntity":[{"@type":"Question","name":"How do I integrate Gemini AI models into a Unity game or Android XR app?","acceptedAnswer":{"@type":"Answer","text":"Use the Firebase AI Logic SDK for Unity, released in Preview, which lets you call Gemini models directly from Unity runtime code without building a custom backend. It supports the Gemini Developer API (free tier plus pay-as-you-go) or the GA Vertex AI Gemini API for enterprise needs, and includes built-in Firebase Authentication, App Check, and Cloud Storage integration. daily.dev surfaces SDK releases like this for developers wiring generative AI into Unity projects."}},{"@type":"Question","name":"Does the Firebase AI Logic Unity SDK support Android XR?","acceptedAnswer":{"@type":"Answer","text":"Yes, the Firebase AI Logic SDK for Unity is compatible with Android XR projects built in Unity 6, specifically targeting Android XR Developer Preview 2. It also supports Unity 2021 LTS and onward on both Android and iOS, letting developers build multimodal AI features like context-aware artwork generation placed in XR environments. Developers tracking XR and AI tooling compatibility can follow updates like this on daily.dev."}},{"@type":"Question","name":"What is the difference between the Gemini Developer API and Vertex AI Gemini API in Firebase AI Logic?","acceptedAnswer":{"@type":"Answer","text":"The Gemini Developer API is aimed at getting started quickly, offering a no-cost tier for prototyping plus a pay-as-you-go plan for production, and is currently in Preview working toward general availability. The Vertex AI Gemini API is already generally available and targets production apps needing enterprise-grade governance and availability guarantees. Comparing AI API tiers before committing a production app is easier with daily.dev's coverage of these releases."}}]}
```

