Image Prompt Flow Endpoint Consumption

Farah Diana Masri 35 Reputation points
2024-12-18T05:38:04.5866667+00:00

Hi, I have deployed the image prompt flow from Azure AI Foundry utilizing Azure OpenAI GPT4vision. Currently, I want to consume this endpoint from my own application, can someone assist on how to consume this endpoint in my own application or Postman first? Thank you, because I receive the 424 error when I try to consume the endpoint in Postman. Need advice on this matter. Thank you.

Azure OpenAI Service
Azure OpenAI Service
An Azure service that provides access to OpenAI’s GPT-3 models with enterprise capabilities.
3,448 questions
Azure AI services
Azure AI services
A group of Azure services, SDKs, and APIs designed to make apps more intelligent, engaging, and discoverable.
2,999 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. AshokPeddakotla-MSFT 35,491 Reputation points
    2024-12-18T09:21:18.15+00:00

    Farah Diana Masri Greetings!

    Did you check Process images in prompt flow already?

    You can deploy a flow to an online endpoint for real-time inference.

    Currently the Test tab in the deployment detail page doesn't support image inputs or outputs.

    For now, you can test the endpoint by sending request including image inputs.

    To consume the online endpoint with image input, you should represent the image by using the format {"data:<mime type>;<representation>": "<value>"}. In this case, <representation> can either be url or base64.

    If the flow generates image output, it is returned with base64 format, for example, {"data:<mime type>;base64": "<base64 string>"}.

    Also, see Troubleshoot guidance for prompt flow if it helps.

    Do let me know if that helps or have any further queries.


Your answer

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