{"slug": "firebase-ai-logic-puts-gemini-in-apple-foundation-models", "title": "Firebase AI Logic Puts Gemini in Apple Foundation Models", "summary": "Firebase AI Logic now integrates Gemini cloud models into Apple's Foundation Models framework via the public LanguageModel protocol introduced at WWDC 2026, targeting iOS 27, macOS 27, iPadOS 27, and watchOS 27. The preview, requiring Firebase SDK for Apple platforms v12.5.0+ on the wwdc26-preview branch, lets developers swap on-device inference for Gemini's large context windows and multimodal input with no changes to SwiftUI views or @Generable structs. Firebase App Check automatically rejects calls from tampered devices before they reach the model.", "body_md": "# Firebase AI Logic Puts Gemini in Apple Foundation Models\n\nApple opened Foundation Models to cloud AI providers at WWDC 2026. Firebase AI Logic is now the Gemini entry point for iOS 27, in preview.\n\nApple unlocked its Foundation Models framework at WWDC 2026 (June 8–12), opening the `LanguageModel`\n\nprotocol to third-party cloud providers. Firebase AI Logic shipped the integration: Gemini cloud models that plug directly into the same Swift API your app already uses for on-device inference, with no extra backend required.\n\n## Key Takeaways\n\n- Apple introduced the public\n`LanguageModel`\n\nprotocol at[WWDC 2026](https://developer.apple.com/videos/play/wwdc2026/241/), targeting iOS 27, macOS 27, iPadOS 27 and watchOS 27. - Firebase AI Logic now runs Gemini through the Foundation Models framework. SwiftUI views,\n`@Generable`\n\nstructs and tool definitions stay unchanged ([Firebase blog, June 2026](https://firebase.blog/posts/2026/06/apple-foundation-models-gemini/)). - Requires\n**Firebase SDK for Apple platforms v12.5.0+**, currently on the`wwdc26-preview`\n\nbranch ([Firebase docs, June 17, 2026](https://firebase.google.com/docs/ai-logic/apple-foundation-models-framework/get-started)). - Firebase App Check handles attestation automatically. Calls from tampered devices and scripts are rejected before reaching the model.\n- This is a preview targeting iOS 27 / macOS 27 betas. Not production-ready today.\n\n## What Apple opened up\n\nFoundation Models in iOS 26 was on-device only. iOS 27 adds a public `LanguageModel`\n\nprotocol: a Swift interface any third-party provider can implement to expose their model through the same API surface as Apple’s built-in model. Your SwiftUI views, `@Generable`\n\nstructs and tool definitions compile against the protocol, not against a specific vendor. Swapping providers is a one-line change.\n\nGoogle and Anthropic both shipped Swift packages implementing the protocol at WWDC. Firebase is Google’s production layer for it: App Check, project wiring and Firebase AI Logic’s existing SDK infrastructure, routed through the Foundation Models surface.\n\n## What Firebase adds\n\nFirebase AI Logic implements `LanguageModel`\n\nfor Gemini. Apple’s on-device model offers maximum privacy, no network round-trip and offline support. Gemini via Firebase brings large context windows, multimodal input and stronger reasoning at the cost of a network hop. The practical split: on-device for latency-sensitive local work, Gemini for anything that needs depth or vision.\n\nFirebase App Check sits in the chain with no extra configuration. Every call from an Apple device goes through attestation — the same mechanism Firebase uses for Auth and other services. Tampered binaries and emulated calls are rejected before the model sees the request.\n\n## Where the preview stands\n\nThe Firebase docs ([last updated June 17, 2026](https://firebase.google.com/docs/ai-logic/apple-foundation-models-framework/capabilities)) list which Gemini capabilities surface through the `LanguageModel`\n\npath versus the full Firebase AI Logic SDK. Streaming, function calling and multimodal inputs each carry caveats. Check the capabilities page before building.\n\nThis does not replace the standard Firebase AI Logic SDK path. Apps targeting iOS 26 or earlier, or requiring capabilities not yet in the protocol, still use Firebase AI Logic directly.\n\n## Getting started\n\nAdd the Firebase SDK for Apple platforms v12.5.0+ via the `wwdc26-preview`\n\npackage branch. Add `FirebaseAILogic`\n\nand `FirebaseAppCheck`\n\nto your app target. The [getting-started guide](https://firebase.google.com/docs/ai-logic/apple-foundation-models-framework/get-started) covers full setup including App Check configuration for the attestation provider.\n\niOS 27 beta is the requirement today. Once it ships, the protocol layer means on-device and cloud inference swap at runtime, model upgrades land independently, and app logic stays unchanged.", "url": "https://wpnews.pro/news/firebase-ai-logic-puts-gemini-in-apple-foundation-models", "canonical_source": "https://firerun.io/blog/firebase-gemini-apple-foundation-models-2026/", "published_at": "2026-06-26 00:00:00+00:00", "updated_at": "2026-07-20 19:46:56.906851+00:00", "lang": "en", "topics": ["artificial-intelligence", "large-language-models", "generative-ai", "ai-products", "developer-tools"], "entities": ["Firebase", "Apple", "Gemini", "Google", "Anthropic", "WWDC 2026", "Firebase AI Logic", "Firebase App Check"], "alternates": {"html": "https://wpnews.pro/news/firebase-ai-logic-puts-gemini-in-apple-foundation-models", "markdown": "https://wpnews.pro/news/firebase-ai-logic-puts-gemini-in-apple-foundation-models.md", "text": "https://wpnews.pro/news/firebase-ai-logic-puts-gemini-in-apple-foundation-models.txt", "jsonld": "https://wpnews.pro/news/firebase-ai-logic-puts-gemini-in-apple-foundation-models.jsonld"}}