# Need help for Infernece API rate limiting

**URL:** <https://discuss.huggingface.co/t/need-help-for-infernece-api-rate-limiting/88652>\
**Category:** Beginners\
**Created:** [May 26, 2024, 11:51pm UTC](https://discuss.huggingface.co/t/need-help-for-infernece-api-rate-limiting/88652 "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](https://discuss.huggingface.co/u/flashback29)\
**Post date:** [May 26, 2024, 11:51pm UTC](https://discuss.huggingface.co/t/need-help-for-infernece-api-rate-limiting/88652/1 "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 = "https://api-inference.huggingface.co/models/meta-llama/Meta-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
