All AI inference goes through Firebase AI Logic. In hybrid mode the SDK runs Gemini Nano on-device (Chrome desktop, via the Prompt API) when available and seamlessly falls back to cloud Gemini otherwise — same code, no API key in the page.