Chrome Prompt API Test

Setup Instructions

The Prompt API requires Chrome 138+ with specific flags enabled:

  1. Open chrome://flags/#optimization-guide-on-device-model and set to Enabled BypassPerfRequirement
  2. Open chrome://flags/#prompt-api-for-gemini-nano and set to Enabled
  3. Open chrome://flags/#prompt-api-for-gemini-nano-multimodal-input and set to Enabled (for image/audio input)
  4. Click Relaunch to restart Chrome
  5. After relaunch, visit chrome://on-device-internals to check model status

Note: chrome:// links cannot be clicked directly. Copy the URL and paste it into your address bar.

Hardware Requirements

Mode

Chat is the default. Switch to Debug for the step-by-step panels.

Chat

Turn-by-turn chat using the Prompt API (streaming). Advanced model/session controls are in the drawer at the bottom.

Tip: First send will auto-load the model. If it fails, follow the Setup Instructions above.