Chrome Built-in AI: Simple Rewriter

This example shows how to use the Rewriter.rewrite() method to rephrase a given text. This is a non-streaming operation.

Text to Rewrite

Status and Output

Ready. Paste text and click the button.


A Note on Chrome Flags and Origin Trial

To use this feature, you must have the Rewriter API flag enabled in Chrome AND register for the origin trial. Open a new tab, paste the link below, press Enter, enable the flag, and then restart Chrome.


Note: The Rewriter API is currently in origin trial (Chrome 137-142). You may need to register at: Rewriter API Origin Trial


My GitHub

You can find more of my work on my hpssjellis GitHub page:

By Jeremy Ellis LinkedIn