# Need help for Infernece API rate limiting

**URL:** </static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Ft%2Fneed-help-for-infernece-api-rate-limiting%2F88652%3E%5C
**Category:** Beginners\
**Created:** [May 26, 2024, 11:51pm UTC](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Ft%2Fneed-help-for-infernece-api-rate-limiting%2F88652 "2024-05-26T23:51:04Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![flashback29](https://avatars.discourse-cdn.com/v4/letter/f/b5e925/32.png) [@flashback29](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Fu%2Fflashback29)%5C
**Post date:** [May 26, 2024, 11:51pm UTC](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Ft%2Fneed-help-for-infernece-api-rate-limiting%2F88652%2F1 "2024-05-26T23:51:04Z")

</div>

Just subscribed the PRO monthly, but still got rate limited when making the inference API call

```auto
  const api_url = "/static-proxy?url=https%3A%2F%2Fapi-inference.huggingface.co%2Fmodels%2Fmeta-llama%2FMeta-Llama-3-8B";
  const payload = JSON.stringify({
    "query": input,
  });

  const body = {
      "headers" : {"Authorization": `Bearer ${API_TOKEN}`},
      "wait_for_model": true,
      "use_gpu": false,
      "method" : "POST",
      "contentType" : "application/json",
      "payload" : payload
    };
  
  var xmlHttp = new XMLHttpRequest();
  xmlHttp.open("POST", api_url, false);
  xmlHttp.send(body);
  return xmlHttp.responseText;

```

Need some help
