question

Angela-1833 avatar image
1 Vote"
Angela-1833 asked Angela-1833 commented

Bing Image Search API Error 401: Permission Denied after upgrading subscription tier to S1

I'm getting the following error when I try to make a call to the Bing Image Search API:

401 Client Error: Access Denied for url: https://api.bing.microsoft.com/v7.0/images/visualsearch

I know my code is okay because it worked previously. The only thing that changed is that I upgraded my Bing Search subscription from "Free" to the "S1" tier.

I tried regenerated my keys, as well as creating a new resource group. Neither have fixed the issue. Any help would be much appreciated.

Thanks in advance.

azure-bing-image
· 2
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

Hello @Angela-1833, Did you mean that you tried creating the resource again ? If No, bing resources migrated from cognitive services to bing in October 2020. If you are using a key of the older instance that is created previously. You could see similar error. Can you try to create a new search resource at your end ?

Reference: https://docs.microsoft.com/en-us/answers/questions/353462/getting-401-while-using-bing-v7-key-with-customsea.html


0 Votes 0 ·
Angela-1833 avatar image Angela-1833 SathyamoorthyVijayakumar-MSFT ·

Hi @SathyamoorthyVijayakumar-MSFT, thanks for your response. Yes, I did try creating the resource again. The original resource was only from March 2021 too. Not sure what the problem is

0 Votes 0 ·

1 Answer

SathyamoorthyVijayakumar-MSFT avatar image
1 Vote"
SathyamoorthyVijayakumar-MSFT answered Angela-1833 commented

@Angela-1833 - Thanks for the update. I further investigated at my end. Visual Search Capability is available only at S9.

When I set up Bing Resources with S1, I encountered the below 401 error with below description

 {"error":{"code":"401","message": "The Visual Search Operation under Visual Search API - v7 is not supported with the current subscription key and pricing tier Bing.Bundle.S1."}}

Upon further investigation in the pricing details

97538-image.png

The Visual Search Feature is available only S9 Instances.

97642-image.png

Reference : https://azure.microsoft.com/en-in/pricing/details/cognitive-services/search-api/

You can also check whether Bing Image Search can meet your requirement - which included in the S1 instances

97560-image.png



Please do not forget to "Accept the answer" wherever the information provided helps you. This will help others in the community as well.




image.png (20.7 KiB)
image.png (12.0 KiB)
image.png (12.8 KiB)
· 2
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

@Angela-1833 - I wanted to drop in and check with you whether above information helped you ?

0 Votes 0 ·
Angela-1833 avatar image Angela-1833 SathyamoorthyVijayakumar-MSFT ·

@SathyamoorthyVijayakumar-MSFT Yes! I confused Bing Image Search with Bing Visual Search -- switched my plan to S9, and everything works again. Thanks so much for your help!

0 Votes 0 ·