> ## Documentation Index
> Fetch the complete documentation index at: https://docs.semgrep.dev/llms.txt
> Use this file to discover all available pages before exploring further.

# Azure OpenAI: Error 429 - Max Tokens Exceeded

If you have chosen Azure OpenAI as your AI provider for Semgrep Multimodal, and you see **Error 429 - Max Tokens Exceeded**:

<Steps>
  <Step>
    Go to **Azure OpenAI Studio > Deployments** and select your active deployment.
  </Step>

  <Step>
    Under **Details**, click **Edit** and increase the **Tokens per Minute Rate Limit** to the maximum value.
  </Step>

  <Step>
    If the error persists, contact Microsoft Azure support to request a quota upgrade.
  </Step>
</Steps>

If you can't save the endpoint and API key when configuring Semgrep, Semgrep cannot establish a connection with Azure OpenAI.

1. Ensure that the endpoint URL is correctly formatted. It should look something like `https://<YOUR_DEPLOYMENT_NAME>.openai.azure.com/openai/deployments/mymodel/chat/completions?api-version=2023-05-06-preview`.
2. Verify that your API key is correct.
