Files
chrome-extensions-samples/functional-samples/ai.gemini-on-device-alt-texter

Alt-texter: On-device multimodal AI with Gemini Nano - image understanding

This sample demonstrates how to use the image understanding capabilities of the multi-modal Gemini Nano API preview together with Chrome's translation API. To learn more about the API and how to sign-up for the origin trial, head over to Built-in AI on developer.chrome.com.

Overview

This extension adds a context menu entry for images on the web to generate an alt text description that is displayed in a popup window.

Running this extension

  1. Clone this repository.
  2. Load this directory in Chrome as an unpacked extension.
  3. Right click an image on a webpage and select "Generate alt text"