Extensions and AI

AI can mean many things: machine learning, large language models, generative AI, and more. Find resources built to help you understand how to effectively use AI in Chrome Extensions.

Enhance browsing with AI-powered extensions

With Extensions, you can control web content and customize the browser, improving user experience on the web. Take this to the next level with AI.
  • Control web content

    Use AI to help create and comprehend content on the web.
  • Make the browser more helpful

    Use extension APIs to enrich the bookmark experience, provide a better new tab page or make it easier to re-discover content from your browsing history.
  • Customize the browser

    Seamlessly embed AI functionality into the browser with a side panel, new-tab page, action bar, or context menus.

Build AI-powered Chrome Extensions with Gemini

Learn how to use client-side, on-device, and cloud-hosted AI to optimize the web and browser for your needs and the needs of your users. With Gemini's powerful multimodal APIs, you can build completely new experiences. Watch as we examine use cases and endless possibilities of AI in Chrome Extensions.

Even more use cases

You can build AI-powered extensions that summarize text, help with translation, generate content, assist with coding, provide recommendations, personalize user interfaces, and so much more. Check out how the Google Creative Lab team used AI and extensions to build an interactive creative coding experience.

Integrate AI with extensions

Client-side AI

Client-side AI is the latest offering for bringing powerful models to users, while protecting sensitive data and improving latency. Client-side AI cannot completely replace and replicate the work you do on the cloud, however, client-side AI can unlock great possibilities for your extensions such as ability to use purpose-built models, faster response times, offline availability and more.

Cloud AI

Cloud AI offers a blend of power, scaleability and ease of integration. Cloud platforms provide access to cutting-edge hardware and software, ensuring high performance and continuous improvement through regular updates. The Gemini ecosystem brings together all of Google's models, products and platforms.

Built-in AI APIs

Try the new built-in AI APIs in Chrome extensions.

Prompt API

Discover the infinite possibilities of the Prompt API.
Sign up for the origin trial

Writer API

Create new content that conforms to a specified writing task.
Sign up for the origin trial

Rewriter API

Help your users refine existing text. Make it longer or shorter or change the tone.

Translator API

Live translate text in the browser and help users contribute in their first language.

Language Detector API

Identify the language used in any given text with the Language Detector API.

Summarizer API

Generate different types of summaries in varied lengths and formats.

AI-powered extensions in action

Check out the examples that demonstrate what's possible with Gemini in Chrome extensions.

How to use the Gemini Cloud API in a Chrome extension

Try out an extension that provides a chat interface for the Gemini API. Explore the code demonstrates how to use the Gemini Cloud API in a Chrome extension.

How to use the Gemini Nano API in a Chrome extension

This extension provides a chat interface using the Prompt API with Gemini Nano in Chrome. Try out the extension and explore the code.

Client-side summarization with Gemini Nano

Try out an extension that summarizes the content of the currently open tab, built with the Summarizer API in Chrome.

Origin trials and Early Preview Program

Join the origin trials and start using AI APIs in production.

New APIs at I/O 2025

At Google I/O 2025, we announced APIs that have begun origin trials and a brand new API for Early Preview Program participants.

Higher quality summaries with LoRA

Chrome collaborated with Google Cloud to fine-tune Gemini Nano with low-rank adaptation (LoRA), to enhance the experience and output quality for all summary styles and lengths.

Participate in the built-in AI Early Preview Program

Join the EPP to provide feedback on early-stage ideas and test in-progress APIs. Your input helps shape the APIs, to ensure they meet your needs, and informs discussions with browser vendors.

Best practices

Follow this guidance to make sure your extensions are safe, secure, and efficient.

When possible, use smaller models

For larger, client-side models, trigger the download after the extension is installed. Manage the life cycle of your model independently of your extension and your users won't have to download the model with every extension update. Note that models are not considered remote hosted code.

Protect your API keys

Never share your keys with Chrome Web Store. Ask users to provide an API key. Proxy calls through your own server. Fetch the API key from your server before using it.

Protect user privacy

If you're using AI in the cloud or otherwise sharing user input with a server, update your privacy policy to include what information is shared.

What is AI?

Understand the basics and definitions of the various emerging technologies, often referred to as AI.

Learn how to build extensions

Learn how extensions work, what they can do, and how to build them.

AI on Chrome

Discover how AI can make it easier for developers to build powerful experiences on the web.