Chrome Built-in AI: Simple Prompt

This simple example shows how to use the LanguageModel.prompt() method, which sends a one-off text prompt to the built-in AI model and returns a single, complete response. It is a non-streaming operation.

Your Prompt

Status and Output

Ready. Enter a prompt 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