Skip to content

[Prompt API] Feedback for the Prompt API developer preview in Microsoft Edge #1012

Open

Description

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!

Activity

  1. added
    Prompt API
    on May 19, 2025
  2. changed the title [-]Placeholder issue[/-] on May 19, 2025
  3. changed the title [-][Prompt API] Feedback[/-] on May 19, 2025
  4. adiazcan commented on May 22, 2025

    @adiazcan

    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.

  5. sohchatt commented on Jun 5, 2025

    @sohchatt

    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.

  6. scaryrawr commented on Sep 2, 2025

    @scaryrawr

    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:

    const session = await LanguageModel.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"],
          },
          async execute({ location }) {
            const res = await fetch("https://weatherapi.example/?location=" + location);
            // Returns the result as a JSON string.
            return JSON.stringify(await res.json());
          },
        }
      ]
    });
    
    const result = await session.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?

    Thanks!

  7. tomayac commented on Sep 2, 2025

    @tomayac
    Contributor

    It's not supported yet in neither Edge nor Chrome, just specified in the explainer. The bug to monitor is https://crbug.com/422803232.

  8. meistudioli commented on May 12, 2026

    @meistudioli

    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 responseConstraint parameter. Passing this parameter results in an immediate failure.

    Image

    Is it possible to support structured output ?

  9. sushraja-msft commented on May 14, 2026

    @sushraja-msft

    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

  10. FrankLi-MSFT commented on May 16, 2026

    @FrankLi-MSFT

    ...our next Canary should have a fix ...

    Just an update. The fix will be in Edge Canary v 150.0.4036.0

  11. yoichiro commented on Jun 20, 2026

    @yoichiro

    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.

    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!

  12. FrankLi-MSFT commented on Jun 24, 2026

    @FrankLi-MSFT

    ... 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.

  13. yoichiro commented on Jun 25, 2026

    @yoichiro

    ... 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.

  14. FrankLi-MSFT commented on Jun 25, 2026

    @FrankLi-MSFT

    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]
    Image

  15. yoichiro commented on Jun 25, 2026

    @yoichiro

    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

    Image Image
  16. tomayac commented on Jun 26, 2026

    @tomayac
    Contributor

    this is because the system prompt is not being taken into account by the Prompt API.

    See my comment on the Issue that you opened. You're using outdated code. Switch to initialPrompts with role: 'system'.

  17. yoichiro commented on Jun 26, 2026

    @yoichiro

    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.

    Thanks FrankLi-MSFT for routing me to a dedicated issue, and thanks again to Thomas Steiner (@tomayac) for the quick spec clarification. 🙏

  18. bil-ash commented on Aug 9, 2026

    @bil-ash

    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?

  19. captainbrosset commented on Nov 19, 2026

    @captainbrosset
    ContributorAuthor

    In which version of stable Edge (non canary & dev) will Aion-1.0-Instruct come to Edge?

    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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Prompt API

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions