Gemini Nano Demos

Explore Gemini Nano API capabilities with these interactive demos that run locally on-device.

Gemini Nano

Setup & Configuration

Before using these demos, you'll need to configure Chrome to enable Gemini Nano APIs. Follow these steps to get started:

1. Chrome Version Requirements

Make sure you're running Chrome version 138 or higher. You can check your Chrome version by typing chrome://settings/help in the address bar.

2. Enable Chrome Flags

Open chrome://flags in your browser and enable the following flags:

Prompt API for Gemini Nano Enabled
Prompt API for Gemini Nano with Multimodal Input Enabled
Summarization API for Gemini Nano Enabled
Writer API for Gemini Nano Enabled
Rewriter API for Gemini Nano Enabled
Optimization Guide On Device Model Enabled
Chrome Flags for Gemini Nano More Chrome Flags for Gemini Nano Optimization Guide Flag

After enabling these flags, restart Chrome for the changes to take effect.

3. Download Required Components

Ensure you have the necessary Chrome components installed and up to date:

  1. Navigate to chrome://components in your browser
  2. Look for "Optimization Guide On Device Model" and click "Check for update"
  3. Wait for the component to download and install
Chrome Components

The first time you run any of the demos, you may be prompted to download the necessary models if they're not already installed.

4. API Availability

Each demo includes buttons to check API availability on your device. Use these to verify that everything is set up correctly.

Demo Applications

📱 Gemini Nano API Samples

Interactive demonstrations of individual Gemini Nano APIs including text generation, translation, summarization, and language detection.

🔄 Gemini Nano Workflows

Advanced integration examples showing how multiple Gemini Nano APIs can be chained together for complex workflows.

View on GitHub