Microsoft Foundry Agents Responses API suddenly rejects Base64 input_image data URIs

Armen Moloian 0 Reputation points
2026-07-30T19:45:12.1833333+00:00

Two previously working Power Automate flows began failing on July 30, 2026 when calling a Microsoft Foundry agent through the Responses API.

Service: Microsoft Foundry

Region: East US 2

Agent: MLAIntakeReviewer, Version 28

Endpoint pattern:

https://[resource].services.ai.azure.com/api/projects/[project]/openai/v1/responses

Both flows submit an image using this documented Responses API structure:

{

"type": "input_image",

"image_url": "data:image/jpeg;base64,[image data]",

"detail": "high"

}

The endpoint now returns HTTP 400 with:

code: invalid_payload

message:

'data:image/jpeg;base64,...' is not a valid absolute URI.

parameter:

input[0].content[1].image_url

The same request structure worked previously. The failure was reproduced independently in both of these flows:

  1. MLA AI Vision Test Bench
  2. MLA AI Vision Power Automation

The Power Apps trigger and preceding Power Automate actions succeed. The first failed action in each flow is the HTTP request to the Foundry Responses API.

No application, prompt, agent-version, or image-encoding change preceded the failure.

Can Microsoft confirm whether Base64 data-URI support for input_image has regressed or whether the Foundry Agents endpoint introduced a schema change requiring an HTTPS URL?

If this is a service regression, please escalate it to the Microsoft Foundry engineering team.

Foundry Agent Service
Foundry Agent Service

A fully managed platform in Microsoft Foundry for hosting, scaling, and securing AI agents built with any supported framework or model


1 answer

Sort by: Most helpful
  1. Anshika Varshney 15,115 Reputation points Microsoft External Staff Moderator
    2026-07-30T21:09:41.1766667+00:00

    Hello Armen Moloian,

    Thank you for reporting this issue and for providing detailed reproduction information.

    Based on your description, the payload format using:

    {

    "type": "input_image",

    "image_url": "data:image/jpeg;base64,<image-data>",

    "detail": "high"

    }

    was previously functioning and is now returning:

    HTTP 400 - invalid_payload

    'data:image/jpeg;base64,...' is not a valid absolute URI

    This behavior suggests that the service may now be performing stricter validation on the image_url field and interpreting it as a standard URI rather than accepting Data URI (data:) schemes. However, since no changes were made to your flows, agent version, or image encoding, and the issue started suddenly on July 30, 2026, it could indicate a recent service-side regression.

    As an initial troubleshooting step, please verify whether the same payload reproduces the issue outside Power Automate, for example by calling the Responses API directly using Postman or a REST client. This helps determine whether the behavior is specific to the Power Platform connector path or affects the underlying Foundry Responses API itself.

    If the issue persists across direct API calls, please let us know with below details in the private chat:

    • Foundry project endpoint
    • Region (East US 2)
    • Agent name and version
    • Timestamp of a failed request
    • Correlation/Request ID from the failed API call
    • Sample payload (with image data redacted)

    In the meantime, as a potential workaround, you may test hosting the image in a secure storage location (for example, a SAS-protected Blob URL) and supplying an HTTPS URL instead of a Base64 Data URI to determine whether only Data URI handling is affected.

    Please let us know whether you can reproduce the same error with a direct REST API call, as that information will help narrow down the root cause.

    Thankyou!

    Was this answer helpful?

    0 comments No comments

Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.