The Prompt API requires Chrome 138+ with specific flags enabled:
chrome://flags/#optimization-guide-on-device-model and set to Enabled BypassPerfRequirementchrome://flags/#prompt-api-for-gemini-nano and set to Enabledchrome://flags/#prompt-api-for-gemini-nano-multimodal-input and set to Enabled (for image/audio input)chrome://on-device-internals to check model statusNote: chrome:// links cannot be clicked directly. Copy the URL and paste it into your address bar.
Check if the Prompt API and Gemini Nano model are available on this device.
Downloading model...
0%
Get the model's default and maximum parameter values.
Load the model and create a session with optional custom parameters.
Send a prompt and get the complete response at once.
Send a prompt and see the response stream in real-time.
Constrain the model's response using a JSON Schema.
Reset the conversation context (preserves system prompt, clears chat history).