•   7 months ago

Need help with Gemini Nano API not injecting in Chrome Canary

Hello,

I’m working on the on-device Gemini Nano APIs in a Chrome extension, but they don’t seem to be injected.

Even though the model shows as Ready (GPU) in chrome://on-device-internals (Chrome Canary v144 on macOS) and all the required flags are enabled, both window.ai and chrome.ai remain undefined.

Console shows:
Uncaught TypeError: Cannot read properties of undefined (reading 'languageModel')

I’ve tried restarting Chrome, reloading the extension, and waiting for the model to initialize, no luck so far.
Is this a known limitation in Canary 144, or do extensions need additional access to use window.ai / chrome.ai?

Any insights or confirmations from the Chrome team or other developers would be greatly appreciated!

Thanks,
Azkhan

Comments are closed.