Getting 400 Bad Request when calling azure cognitive services (Image Analyses)

Danilo Rodrigues Alexandre 41 Reputation points

Hi team,

I have been trying to call the Azure Cognitive Service (Image Analyze) but I am getting error 400. I have scanned all the docs I found about that but could not figure out what is wrong in the HTTP req

As the service requires a POST method, I am using Postman to test it first and then embed it in my code

That's the Azure Service endpoint


Testing URL:

Url Params as per Azure documentation:

The two required HTTP Headers parameters as per the documentation


The Image URL parameter in body of the HTTP Post as per documentation


The error:


I really appreciate any help on this!

Azure AI services
Azure AI services
A group of Azure services, SDKs, and APIs designed to make apps more intelligent, engaging, and discoverable.
2,449 questions
0 comments No comments
{count} votes

Accepted answer
  1. GiftA-MSFT 11,151 Reputation points

    Hi, thanks for reaching out. The content type is application/json so you need to enter the url in JSON format in the request body as shown below:


    Hope this helps!

0 additional answers

Sort by: Most helpful