How do I enable live On-Device AI in my browser?
To run these demos using the native models built into Google Chrome, configure these flags:
- Open Chrome and navigate to chrome://flags/#prompt-api-for-gemini-nano. Set it to Enabled.
- Navigate to chrome://flags/#optimization-guide-on-device-model. Set it to Enabled BypassPerfRequirement.
- Navigate to chrome://flags/#translation-api (or writing-assistance APIs) if you want support for specialized translation, writing, and rewriting on-device models.
- Restart Chrome. The browser will download the model in the background (check progress at chrome://components under Optimization Guide On Device Model).
Currently active in Simulation Mode: Playground will run fully simulated mocks so you can test the functionality right away.
Prompt API Playground
Run open-ended text prompting or generate structured responses using response constraint schemas directly in the browser.
Summarizer API Playground
Extract key insights, teasers, or TL;DRs from long articles using Chrome's specialized text summarization model.
Translator API Playground
Translate sentences dynamically using Chrome's offline translation engine, preserving security and privacy.
Language Detector API
Identify the language of a text block entirely client-side, with relative confidence scores using the expert language detector model.
Writer API Playground
Generate new content or drafts locally from scratch by supplying a prompt and context details to the native browser writer assistant.
Rewriter API Playground
Polish or rewrite your user-generated inputs by adapting the length, tone, or formatting natively using browser intelligence.
Zero-Cost AI Audit Simulator
Based on chudi.dev's visibility methodology, see how moving the "judgment layer" to on-device models saves significant server model token costs.