You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[Prompt API] Feedback for the Prompt API developer preview in Microsoft Edge #1012
Thanks for trying out the Prompt API. Please use this thread to tell us about your use-cases for built-in SLMs, provide feedback about the model and API design, challenges and considerations, etc. We'd love to understand how to improve the Prompt API in Edge to meet your needs!
Reacted by Arif, Yoichiro Tanaka and Timothy
Reacted by Arif, Diego Pierangeli and Yoichiro Tanaka
I have a new Surface Laptop 7th Edition with an ARM chip and a Qualcomm Adreno GPU with 8Gb, but I have a "The device's GPU is not supported" message on the device performance page.
Why is it not supported? I think I have the minimum requirements.
Your Surface Laptop 7 is, indeed, capable of supporting the Prompt API. Unfortunately, there is a known issues with Qualcomm driver version 31.0.84.0 (I suspect this is what you have; you can check your driver version at edge://gpu > GL_RENDERER). Qualcomm's next driver update (version 31.0.96.0) is yet to be made broadly available via Windows Update.
For what it's worth, I have the same device as you, ran into the same issue, and have been testing QC driver 31.0.96.0, and the Prompt API works for me.
I see tool calling is part of the API, but I don't see the model ever call tools. Even trying the weather example from webmachinelearning/prompt-api:
constsession=awaitLanguageModel.create({initialPrompts: [{role: "system",content: `You are a helpful assistant. You can use tools to help the user.`}],tools: [{name: "getWeather",description: "Get the weather in a location.",inputSchema: {type: "object",properties: {location: {type: "string",description: "The city to check for the weather condition.",},},required: ["location"],},asyncexecute({ location }){constres=awaitfetch("https://weatherapi.example/?location="+location);// Returns the result as a JSON string.returnJSON.stringify(awaitres.json());},}]});constresult=awaitsession.prompt("What is the weather in Seattle?");
I get a response like:
'I can help you find the current weather in Seattle! Please note that weather information changes frequently, and for the most up-to-date information, you may want to check a reliable weather website like Weather.com or use a weather app on your smartphone. Would you like a brief summary based on the latest data I have access to, or would you prefer a direct link to a weather website?'
I notice on the learn page there's no tool calling examples.
Is it just not supported yet? Or is it something with prompting not being "enough" to convince it to call the tool?
I have completed an initial evaluation using Edge Canary (Version 149.0.4022.0) to see how our AI features perform in a non-Chrome Chromium environment. Here are my findings:
Structured Output Issues: The prompt() and promptStreaming() implementations in Edge do not yet support the responseConstraint parameter. Passing this parameter results in an immediate failure.
Use case: Zero-Knowledge Pitch Builder — a fully client-side elevator pitch generator
Hi team, thanks for opening up the Prompt API in Edge! I'd like to share a real-world use case.
I built Zero-Knowledge Pitch Builder, a web app that turns chaotic brainstorming notes into a structured elevator pitch. It works on Microsoft Edge 149 (stable) with the relevant flags enabled, as well as Chrome 148+.
Edge compatibility note: I ran a structured benchmark across Chrome 149, Edge 149 stable, and Edge Canary 151 using identical inputs. Edge stable is fully functional — it correctly honors the systemPrompt option and is actually ~1.4× faster per output token than Chrome (structurePitch total: ~4.3 s vs ~6.6 s). Output length is slightly shorter but quality is acceptable for this use case. No execution errors were observed. Edge Canary 151 is significantly faster still (~3× Chrome), but currently has a critical regression: the systemPrompt option appears to be silently ignored, causing all persona-style sessions to produce byte-for-byte identical output. This is a blocking issue for any app that relies on role differentiation via system prompts — I'd recommend filing a bug before encouraging Canary adoption.
The user dumps rough idea notes into a text area, and the app decomposes them into the six standard elevator pitch topics (Hook / Problem / Solution / Value Proposition / Competitors / Differentiators), inferring any missing pieces. It then generates pitches of different lengths for various situations, has three virtual personas (a VC, a corporate executive, and a consumer) review the pitch, and offers Japanese ⇄ English translation with automatic language detection.
The Prompt API is the core of the app: I create a dedicated LanguageModel session per topic with a systemPrompt defining the role (e.g., a startup pitch consultant), then run the six extractions sequentially. The Summarizer, Translator, and LanguageDetector APIs handle the rest of the workflow.
Why built-in SLMs matter for this use case
Privacy by architecture. Users feed the app unreleased business ideas and confidential concepts. Because inference happens entirely on-device, not a single byte of user input leaves the browser — there is no server at all. This "zero-knowledge" guarantee is something cloud-based LLM services cannot offer by definition, and it's only possible because the browser ships the model.
Zero operational cost. No inference costs, no API key management, no rate limits. The whole app is just static files on a hosting service. This dramatically lowers the barrier for individual developers to ship LLM-powered apps.
Trivial integration. window.LanguageModel.create() and a few lines of code — no SDK, no npm install. This DX is a huge selling point for web developers.
Feedback / hopes
My biggest hope is cross-browser support. While I know there are valid discussions around the non-deterministic nature of underlying models across different browser engines, for creative and generative use cases like mine, I don't think it's a problem — as long as quality meets a reasonable bar. Indeed, for apps that generate advice or draft text that users ultimately edit, output variance is expected and is exactly what makes LLMs compelling (i.e., it's not just a list of predefined advice). To ensure each browser has a model capable of delivering the necessary quality, the ideal path forward is establishing shared use-case benchmarks within groups like the Web Machine Learning Community Group. So I'm really glad to see Edge implementing this API. For multi-step, creative workflows like mine, a generalized interface is uniquely valuable in ways that narrow task-specific APIs simply cannot cover. I hope to see it progress to a shipping state so web developers can reliably target native local AI across more browsers.
Happy to provide more details about the implementation if useful. Thanks!
... causing all persona-style sessions to produce byte-for-byte identical output. ...
Hi Yoichiro Tanaka (@yoichiro), thank you for the feedback. A fix for the above has been included in 151.0.4112.0 Edge Canary. Please verify on that build and let us know if the issue persists.
... causing all persona-style sessions to produce byte-for-byte identical output. ...
Hi Yoichiro Tanaka (@yoichiro), thank you for the feedback. A fix for the above has been included in 151.0.4112.0 Edge Canary. Please verify on that build and let us know if the issue persists.
I tested this using Edge Canary (151.0.4115.0), but unfortunately, the issue persists. Even when specifying different system prompts in the Prompt API, the responses are completely identical. On the other hand, in Edge Stable (149.0.4022.80), the responses correctly vary depending on the different system prompts.
Interesting. I'm not seeing this issue on my side - I tested it on two different machines, and it works as expected.
Could you please open a new issue using the Prompt API issue template at https://github.com/MicrosoftEdge/MSEdgeExplainers/issues/new?template=prompt-api.md? That will help us collect the necessary environment details and investigate the problem further.
FrankLi-MSFT Thank you for checking. The issue occurs in the "Virtual Persona Review" section. There are three personas—"Investor", "Executive", and "General"—and each uses a different system prompt. As you can see from the attached image, the results are all different in Edge Stable, but they end up completely identical in Edge Canary. I believe this is because the system prompt is not being taken into account by the Prompt API.
Quick follow-up: this turned out to be not a bug in Edge Canary 151 — the regression I reported was on my side, caused by my code using the deprecated top-level systemPrompt option.
Thanks to a pointer from Thomas Steiner (@tomayac) on the dedicated issue I filed (#1350), I learned that systemPrompt has been superseded by initialPrompts: [{ role: 'system', content: '...' }] per the current Prompt API spec. Edge Canary 151 is correctly enforcing the new spec — Edge Stable 149 and Chrome were just being permissive about the legacy shape.
After migrating my session creation to initialPrompts, the three persona reviews now return clearly distinct, role-appropriate outputs on Edge Canary 151 as well. The fix is here: yoichiro/zero-knowledge-pitch-builder#1.
One important correction to my earlier benchmark comment (#4756088474): the "critical regression / blocking issue / systemPrompt ignored" framing for Edge Canary was misleading. The browser was behaving correctly; the speed numbers I reported (~3× Chrome on structurePitch, ~2× on personaReview) stand on their own and look very promising — but please mentally strike the "blocking regression" wording I used.
In which version of stable Edge(non canary & dev) will Aion-1.0-Instruct come to Edge? Also, other than English, Aion-1.0-instruct supports which other languages?
Activity
[-]Placeholder issue[/-][-][Prompt API] Feedback[/-]adiazcan commentedon May 22, 2025
Hello Team!
First, you implemented a great feature!!!
I have a new Surface Laptop 7th Edition with an ARM chip and a Qualcomm Adreno GPU with 8Gb, but I have a "The device's GPU is not supported" message on the device performance page.
Why is it not supported? I think I have the minimum requirements.
Thanks for your support.
sohchatt commentedon Jun 5, 2025
Alberto Diaz Martin (@adiazcan) apologies for the late reply.
Your Surface Laptop 7 is, indeed, capable of supporting the Prompt API. Unfortunately, there is a known issues with Qualcomm driver version 31.0.84.0 (I suspect this is what you have; you can check your driver version at edge://gpu > GL_RENDERER). Qualcomm's next driver update (version 31.0.96.0) is yet to be made broadly available via Windows Update.
If you're okay with testing out a pre-release version of the driver, you can install it from Qualcomm's website: https://softwarecenter.qualcomm.com/catalog/item/Windows_Graphics_Driver?osArch=ARM64&osType=Windows (Note that this is intended for developer testing and comes with some risk).
For what it's worth, I have the same device as you, ran into the same issue, and have been testing QC driver 31.0.96.0, and the Prompt API works for me.
scaryrawr commentedon Sep 2, 2025
I see tool calling is part of the API, but I don't see the model ever call tools. Even trying the weather example from webmachinelearning/prompt-api:
I get a response like:
I notice on the learn page there's no tool calling examples.
Is it just not supported yet? Or is it something with prompting not being "enough" to convince it to call the tool?
Thanks!
tomayac commentedon Sep 2, 2025
It's not supported yet in neither Edge nor Chrome, just specified in the explainer. The bug to monitor is https://crbug.com/422803232.
meistudioli commentedon May 12, 2026
HI,
I have completed an initial evaluation using Edge Canary (Version 149.0.4022.0) to see how our AI features perform in a non-Chrome Chromium environment. Here are my findings:
Structured Output Issues: The prompt() and promptStreaming() implementations in Edge do not yet support the
responseConstraintparameter. Passing this parameter results in an immediate failure.Is it possible to support structured output ?
sushraja-msft commentedon May 14, 2026
A feature flag was disabled by accident in Edge last week. Running edge with
--enable-features=AIPromptAPIStructuredOutput
Re-enables structured outputs in Edge, our next Canary should have a fix so that the feature flag gets auto enabled by the edge:\flags
FrankLi-MSFT commentedon May 16, 2026
Just an update. The fix will be in Edge Canary v 150.0.4036.0
yoichiro commentedon Jun 20, 2026
Use case: Zero-Knowledge Pitch Builder — a fully client-side elevator pitch generator
Hi team, thanks for opening up the Prompt API in Edge! I'd like to share a real-world use case.
I built Zero-Knowledge Pitch Builder, a web app that turns chaotic brainstorming notes into a structured elevator pitch. It works on Microsoft Edge 149 (stable) with the relevant flags enabled, as well as Chrome 148+.
Edge compatibility note: I ran a structured benchmark across Chrome 149, Edge 149 stable, and Edge Canary 151 using identical inputs. Edge stable is fully functional — it correctly honors the
systemPromptoption and is actually ~1.4× faster per output token than Chrome (structurePitch total: ~4.3 s vs ~6.6 s). Output length is slightly shorter but quality is acceptable for this use case. No execution errors were observed. Edge Canary 151 is significantly faster still (~3× Chrome), but currently has a critical regression: thesystemPromptoption appears to be silently ignored, causing all persona-style sessions to produce byte-for-byte identical output. This is a blocking issue for any app that relies on role differentiation via system prompts — I'd recommend filing a bug before encouraging Canary adoption.What it does
The user dumps rough idea notes into a text area, and the app decomposes them into the six standard elevator pitch topics (Hook / Problem / Solution / Value Proposition / Competitors / Differentiators), inferring any missing pieces. It then generates pitches of different lengths for various situations, has three virtual personas (a VC, a corporate executive, and a consumer) review the pitch, and offers Japanese ⇄ English translation with automatic language detection.
The Prompt API is the core of the app: I create a dedicated LanguageModel session per topic with a systemPrompt defining the role (e.g., a startup pitch consultant), then run the six extractions sequentially. The Summarizer, Translator, and LanguageDetector APIs handle the rest of the workflow.
Why built-in SLMs matter for this use case
Privacy by architecture. Users feed the app unreleased business ideas and confidential concepts. Because inference happens entirely on-device, not a single byte of user input leaves the browser — there is no server at all. This "zero-knowledge" guarantee is something cloud-based LLM services cannot offer by definition, and it's only possible because the browser ships the model.
Zero operational cost. No inference costs, no API key management, no rate limits. The whole app is just static files on a hosting service. This dramatically lowers the barrier for individual developers to ship LLM-powered apps.
Trivial integration. window.LanguageModel.create() and a few lines of code — no SDK, no npm install. This DX is a huge selling point for web developers.
Feedback / hopes
My biggest hope is cross-browser support. While I know there are valid discussions around the non-deterministic nature of underlying models across different browser engines, for creative and generative use cases like mine, I don't think it's a problem — as long as quality meets a reasonable bar. Indeed, for apps that generate advice or draft text that users ultimately edit, output variance is expected and is exactly what makes LLMs compelling (i.e., it's not just a list of predefined advice). To ensure each browser has a model capable of delivering the necessary quality, the ideal path forward is establishing shared use-case benchmarks within groups like the Web Machine Learning Community Group. So I'm really glad to see Edge implementing this API. For multi-step, creative workflows like mine, a generalized interface is uniquely valuable in ways that narrow task-specific APIs simply cannot cover. I hope to see it progress to a shipping state so web developers can reliably target native local AI across more browsers.
Happy to provide more details about the implementation if useful. Thanks!
FrankLi-MSFT commentedon Jun 24, 2026
Hi Yoichiro Tanaka (@yoichiro), thank you for the feedback. A fix for the above has been included in 151.0.4112.0 Edge Canary. Please verify on that build and let us know if the issue persists.
yoichiro commentedon Jun 25, 2026
I tested this using Edge Canary (151.0.4115.0), but unfortunately, the issue persists. Even when specifying different system prompts in the Prompt API, the responses are completely identical. On the other hand, in Edge Stable (149.0.4022.80), the responses correctly vary depending on the different system prompts.
FrankLi-MSFT commentedon Jun 25, 2026
Interesting. I'm not seeing this issue on my side - I tested it on two different machines, and it works as expected.
Could you please open a new issue using the Prompt API issue template at https://github.com/MicrosoftEdge/MSEdgeExplainers/issues/new?template=prompt-api.md? That will help us collect the necessary environment details and investigate the problem further.
Thanks!
[screenshot]

yoichiro commentedon Jun 25, 2026
FrankLi-MSFT Thank you for checking. The issue occurs in the "Virtual Persona Review" section. There are three personas—"Investor", "Executive", and "General"—and each uses a different system prompt. As you can see from the attached image, the results are all different in Edge Stable, but they end up completely identical in Edge Canary. I believe this is because the system prompt is not being taken into account by the Prompt API.
The code block which some system prompts are specified is below:
https://github.com/yoichiro/zero-knowledge-pitch-builder/blob/main/src/utils/chromeAI.ts#L384-L392
tomayac commentedon Jun 26, 2026
See my comment on the Issue that you opened. You're using outdated code. Switch to
initialPromptswithrole: 'system'.yoichiro commentedon Jun 26, 2026
Quick follow-up: this turned out to be not a bug in Edge Canary 151 — the regression I reported was on my side, caused by my code using the deprecated top-level
systemPromptoption.Thanks to a pointer from Thomas Steiner (@tomayac) on the dedicated issue I filed (#1350), I learned that
systemPrompthas been superseded byinitialPrompts: [{ role: 'system', content: '...' }]per the current Prompt API spec. Edge Canary 151 is correctly enforcing the new spec — Edge Stable 149 and Chrome were just being permissive about the legacy shape.After migrating my session creation to
initialPrompts, the three persona reviews now return clearly distinct, role-appropriate outputs on Edge Canary 151 as well. The fix is here: yoichiro/zero-knowledge-pitch-builder#1.One important correction to my earlier benchmark comment (#4756088474): the "critical regression / blocking issue / systemPrompt ignored" framing for Edge Canary was misleading. The browser was behaving correctly; the speed numbers I reported (~3× Chrome on structurePitch, ~2× on personaReview) stand on their own and look very promising — but please mentally strike the "blocking regression" wording I used.
Thanks FrankLi-MSFT for routing me to a dedicated issue, and thanks again to Thomas Steiner (@tomayac) for the quick spec clarification. 🙏
bil-ash commentedon Aug 9, 2026
In which version of stable Edge(non canary & dev) will Aion-1.0-Instruct come to Edge? Also, other than English, Aion-1.0-instruct supports which other languages?
captainbrosset commentedon Nov 19, 2026
The Prompt API with Aion Instruct is now available in Edge (all channels) either behind a flag or as an origin trial, starting with Edge 158. See https://learn.microsoft.com/en-us/microsoft-edge/web-platform/prompt-api#enable-the-prompt-api