A starting point for a client-side, LLM in the browser, for online and offline Javascript use.
This page demonstrates the core features of the Gemini Nano Prompt API (`LanguageModel` API) available in Chrome 138+.
Ensure you have enabled the necessary flags. Copy the link below and paste it into your Chrome address bar:
Then search for "optimization-guide-on-device-model" and then search for "gemini-nano"
#optimization-guide-on-device-model
(set to Enabled BypassPrefRequirement)#prompt-api-for-gemini-nano
(set to Enabled)#prompt-api-for-gemini-nano-multimodal-input
(set to Enabled) #summarization-api-for-gemini-nano
(set to Enabled) #writer-api-for-gemini-nano
(set to Enabled) #rewriter-api-for-gemini-nano
(set to Enabled) No output yet. Click a button to begin.