Gemini Nano is built directly into Chrome on supported hardware. When it works, your AI completions run entirely on your device — free, instant, and never leaving your machine.
Gemini Nano runs locally, so your hardware matters. Chrome checks these requirements automatically before enabling the model.
Gemini Nano and the Prompt API are experimental features. You need to enable two Chrome flags and then download the model before it will respond to requests.
Type the following into your Chrome address bar and press Enter:
Search for Prompt API for Gemini Nano in the flags search box, then set it to Enabled.
window.ai JavaScript API so extensions can interact with Gemini Nano.Search for Enables optimization guide on device and set it to Enabled BypassPerfRequirement. The bypass option allows download even on lower-spec hardware.
Click the blue Relaunch button that appears at the bottom of the flags page, or close and reopen Chrome completely.
After relaunching, navigate to the components page to force Chrome to download the Nano model:
Find Optimization Guide On Device Model in the list and click Check for update. The download may take several minutes depending on your connection. The model is approximately 20 GB.
Once the model is downloaded, you can confirm everything is set up correctly without leaving Chrome.
Open any webpage, press F12 (or right-click → Inspect → Console), and paste this snippet:
The console output means:
Go back through the steps above and confirm both flags are enabled (not just one). Then relaunch Chrome again and wait 5–10 minutes before retesting. Chrome sometimes delays initialising the API even after the flags are set.
Make sure you're signed into Chrome with a Google account. In some regions, the model is gated behind a Google account sign-in. Also ensure Chrome is not running through a VPN or proxy that blocks Google's download servers.
Visit chrome://components, find the Optimization Guide model, and click
Check for update again. If it remains stuck, try restarting Chrome and
checking for updates once more.
chrome://version).Donbrico Autofill AI gracefully falls back to your Bring Your Own Key API key (OpenAI, Anthropic, Groq, or OpenRouter) whenever Gemini Nano isn't available. You'll never be left without AI completions.
If neither Gemini Nano nor an API key is configured, the extension will show a friendly prompt guiding you to set one up. You can always add an API key in the extension's settings panel.