Hello Abhyuday Luthra,
Thanks for reaching out on Microsoft Q&A.
This error is common with Azure's S0 tier, which has strict token limits, so it’s easy to hit them quickly, even if it’s your first time using the service. If you set a high max_completion_tokens (like 5000), try lowering it to 500–1000. Also, new deployments sometimes take a bit of time to fully set up, so waiting and testing again later might help. If the limit still feels too tight, you can put in a Request for Quota Increase to get more access. You can check more about these limits in Azure's documentation. I also recommend reporting this issue to the Azure support team.
Hope this helps!
If you found this answer helpful, please upvote and mark it as accepted to close the thread. Thanks!