Hello @SHERMAN BOYD , Greetings!
Thanks for posting your question in Microsoft Q&A, apologize for any inconvenience caused on this.
A 401 Unauthorized error typically points to issues with your access token. Here are common causes and solutions:
- Invalid or Missing Token: Ensure your access token is correctly generated and included in the Authorization header.
- Incorrect Audience: Verify the token's audience is set to
https://cognitiveservices.azure.com
. - Trial Account Limitations: Trial accounts may have restrictions on available models and usage quotas. Check Azure AI Usage Limitations for more details.
- Postman Collection: Use a Postman collection for testing to ensure correct headers and payload structure. Example collections for Azure AI are available in the documentation.
For trial accounts, consider using the free tier (SKU: F0) to explore the service. Review pricing options here: Azure Cognitive Services Pricing.
Additional Tip: Try using a freshly generated access token to resolve potential token issues.
Do let me know if you are still the facing the issue.