Chrome logo

Chrome Built-in AI Playground

Learn more about the experimental AI APIs at https://goo.gle/chrome-ai-dev-preview

How to Enable Built-in AI APIs in Chrome
  1. Download the latest version of Google Canary
  2. Type chrome://flags in the address bar
  3. Enable "Prompt API for Gemini Nano"
  4. Enable "Summarization API for Gemini Nano"
  5. Enable "Writer API for Gemini Nano"
  6. Enable "Rewriter API for Gemini Nano"
  7. Enable "Enables optimization guide on device"
  8. Restart the browser
  9. Go to chrome://components/ and update "Optimization Guide On Device Model"

To use it, open Developer Tools and create a session with:

const session = await window.ai.createTextSession();

Writer API

Generate new content based on a writing task.

Rewriter API

Refine and restructure existing text.

Summarizer API

Condense long-form content into key points.

Translate (with the Prompt API)

Translate content to different languages using the Prompt API.

Direct Prompt API Chat

Interact directly with the Prompt API in a freeform way.