# Rate Limit Error while using the API

**URL:** <https://community.deeplearning.ai/t/rate-limit-error-while-using-the-api/402041>\
**Category:** LangChain for LLM Application Development\
**Created:** [July 30, 2023, 10:17am UTC](https://community.deeplearning.ai/t/rate-limit-error-while-using-the-api/402041 "2023-07-30T10:17:43Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![s-h-a-m-i-k](https://avatars.discourse-cdn.com/v4/letter/s/a587f6/32.png) [@s-h-a-m-i-k](https://community.deeplearning.ai/u/s-h-a-m-i-k)\
**Post date:** [July 30, 2023, 10:17am UTC](https://community.deeplearning.ai/t/rate-limit-error-while-using-the-api/402041/1 "2023-07-30T10:17:43Z")

</div>

Hello,

Am getting the below error while trying to run the jupyter notebook of L4.

```auto
Retrying langchain.embeddings.openai.embed_with_retry.<locals>._embed_with_retry in 4.0 seconds as it raised RateLimitError: exceeded quota for this month.

```

Could someone please help with this?  
Am not using my personal OpenAI API key for this course, but using the one that’s provided.

Thank you

---

<div class="post-metadata">

**Author:** ![gent.spah](https://sea1.discourse-cdn.com/dlai/user_avatar/community.deeplearning.ai/gent.spah/32/136423_2.png) [@gent.spah](https://community.deeplearning.ai/u/gent.spah)\
**Post date:** [July 30, 2023, 1:11pm UTC](https://community.deeplearning.ai/t/rate-limit-error-while-using-the-api/402041/2 "2023-07-30T13:11:31Z")

</div>

It says you have exceeded your quota, there should be an in built allowance here. Maybe if you try later might reset…

---

<div class="post-metadata">

**Author:** ![s-h-a-m-i-k](https://avatars.discourse-cdn.com/v4/letter/s/a587f6/32.png) [@s-h-a-m-i-k](https://community.deeplearning.ai/u/s-h-a-m-i-k)\
**Post date:** [July 30, 2023, 2:08pm UTC](https://community.deeplearning.ai/t/rate-limit-error-while-using-the-api/402041/3 "2023-07-30T14:08:22Z")

</div>

Thank you for the answer.  
I tried after a few hours and am getting the same error.  
Would it be possible to check when the limit will be restored?

Thank you

---

<div class="post-metadata">

**Author:** ![gent.spah](https://sea1.discourse-cdn.com/dlai/user_avatar/community.deeplearning.ai/gent.spah/32/136423_2.png) [@gent.spah](https://community.deeplearning.ai/u/gent.spah)\
**Post date:** [July 30, 2023, 4:08pm UTC](https://community.deeplearning.ai/t/rate-limit-error-while-using-the-api/402041/4 "2023-07-30T16:08:05Z")

</div>

No I have no access to that.

---

<div class="post-metadata">

**Author:** ![jeffchan](https://avatars.discourse-cdn.com/v4/letter/j/779978/32.png) [@jeffchan](https://community.deeplearning.ai/u/jeffchan)\
**Post date:** [August 2, 2023, 2:08am UTC](https://community.deeplearning.ai/t/rate-limit-error-while-using-the-api/402041/5 "2023-08-02T02:08:23Z")

</div>

Seems to have reset today with the beginning of the month. It’s some sort of monthly quota, I think.

---

<div class="post-metadata">

**Author:** ![s-h-a-m-i-k](https://avatars.discourse-cdn.com/v4/letter/s/a587f6/32.png) [@s-h-a-m-i-k](https://community.deeplearning.ai/u/s-h-a-m-i-k)\
**Post date:** [August 2, 2023, 3:42pm UTC](https://community.deeplearning.ai/t/rate-limit-error-while-using-the-api/402041/6 "2023-08-02T15:42:59Z")

</div>

yes, that’s true as per the error message it’s supposed to reset every month.  
maybe i have taken too many courses using chatgpt during july and that’s why i exhausted the rate limit

---

<div class="post-metadata">

**Author:** ![jeffchan](https://avatars.discourse-cdn.com/v4/letter/j/779978/32.png) [@jeffchan](https://community.deeplearning.ai/u/jeffchan)\
**Post date:** [August 4, 2023, 2:20am UTC](https://community.deeplearning.ai/t/rate-limit-error-while-using-the-api/402041/7 "2023-08-04T02:20:50Z")

</div>

I suspect the quota is not per person but rather across everyone who takes the course. I was probably the one that went over the quota as it was working when I initially tried it in the middle of last month, but then it hit the rate limit when I retried a few minutes later. I’ve been poking at it every so often since then until it worked again at the beginning of this month.
