翻篇收录说明
翻篇网页快照

Extensions and AI | Chrome for Developers

https://developer.chrome.com/docs/extensions/ai

最近抓取:2026-12-04 15:02:54(北京时间)

最近内容变化:2026-12-02 00:56:39(北京时间)

这是最近一次有效抓取的文本快照,不含网页脚本、图片和动态交互内容。实际网页可能已更新。

访问原网页

页面简介

Learn how to develop extensions with AI

正文摘录

Home Docs Chrome Extensions Extensions and AI 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. Build extensions with AI coding tools Learn how to work with AI coding tools to build and debug your extensions and unlock faster, smarter development and more powerful user experiences. Install Chrome extensions skill from Modern Web Guidance via CLI: npx skills add GoogleChrome/modern-web-guidance --skill chrome-extensions Get started 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. Read more 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. Learn more about client-side AI 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. Learn more about Gemini WebMCP WebMCP is a proposed web standard to build and expose structured tools for AI agents. This can significantly improve the performance and reliability of agent actuation. Read the docs WebMCP tool security Security considerations Agent developers must build responsible and secure agents. We identify some security techniques relevant to agents using WebMCP. Read our guidance 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. Proofreader API Improve your content readability and grammar. 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 Prompt 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 an on-device model Try out an extension that summarizes the content of the currently open tab, built with the Summarizer API in Chrome. 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. Read the blog 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. Read the blog 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. Join the EPP Learn more 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. web.dev What is AI? Understand the basics and definitions of the various emerging technologies, often referred to as AI. Read the docs developer.chrome.com Learn how to build extensions Learn how extensions work, what they can do, and how to build them. Read the docs developer.chrome.com AI on Chrome Discover how AI can make it easier for developers to build powerful experiences on the web. Read the docs