Chrome Built-in AI: Simple Rewriter

This example shows how to use the LanguageModel.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

To use this feature, you must have the "Enable built-in AI" flag enabled in Chrome. Open a new tab, paste the link below, press Enter, enable the flag, and then restart Chrome.



My GitHub

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

By Jeremy Ellis LinkedIn