Hello Anuj Kumar,
Welcome to the Microsoft Q&A and thank you for posting your questions here.
I understand that you are getting error 401 when you test the model externally.
A 401 error with the message "key_auth_access_denied" typically indicates an issue with your API key or authentication method and / or URL Parameters.
Follow the links below for more details and how to solve it:
- https://community.postman.com/t/im-getting-401-unauthorized-error/38820
- https://community.postman.com/t/using-api-key-in-authorization-getting-401-error/19946
- https://community.postman.com/t/how-to-resolve-error-401-unauthorized-in-postman/17318
I hope this is helpful! Do not hesitate to let me know if you have any other questions.
Please don't forget to close up the thread here by upvoting and accept it as an answer if it is helpful.