# TPM: Tokens per minute limiting

**URL:** <https://community.crewai.com/t/tpm-tokens-per-minute-limiting/1941>\
**Category:** CrewAI Community Support\
**Tags:** crewai\
**Created:** [December 10, 2024, 7:54pm UTC](https://community.crewai.com/t/tpm-tokens-per-minute-limiting/1941 "2024-12-10T19:54:41Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![luandro](https://sea1.discourse-cdn.com/flex025/user_avatar/community.crewai.com/luandro/32/1407_2.png) [@luandro](https://community.crewai.com/u/luandro)\
**Post date:** [December 10, 2024, 7:54pm UTC](https://community.crewai.com/t/tpm-tokens-per-minute-limiting/1941/1 "2024-12-10T19:54:41Z")

</div>

CrewAI has RPM options for crews, but not TMP (Tokens per minute), which is necessary for services such as Groq. Here’s an example error:

`2024-12-10 16:50:11,862 - 135614723733312 - llm.py-llm:170 - ERROR: LiteLLM call failed: litellm.RateLimitError: RateLimitError: GroqException - {"error":{"message":"Rate limit reached for model llama-3.3-70b-versatile in organization org_xxxx on tokens per minute (TPM): Limit 6000, Used 7599, Requested 1777. Please try again in 33.764s. Visit https://console.groq.com/docs/rate-limits for more information.","type":"tokens","code":"rate_limit_exceeded"}}`

Are there any plans to implement this, or are there any work arounds that people have used?

---

<div class="post-metadata">

**Author:** ![rjanicki](https://sea1.discourse-cdn.com/flex025/user_avatar/community.crewai.com/rjanicki/32/2439_2.png) [@rjanicki](https://community.crewai.com/u/rjanicki)\
**Post date:** [May 6, 2025, 9:55am UTC](https://community.crewai.com/t/tpm-tokens-per-minute-limiting/1941/2 "2025-05-06T09:55:36Z")

</div>

That’d be awesome to have, are there any plans to do the limit or at least a backoff?

---

<div class="post-metadata">

**Author:** ![Tony\_Wood](https://sea1.discourse-cdn.com/flex025/user_avatar/community.crewai.com/tony_wood/32/1876_2.png) [@Tony\_Wood](https://community.crewai.com/u/Tony_Wood)\
**Post date:** [May 6, 2025, 10:22am UTC](https://community.crewai.com/t/tpm-tokens-per-minute-limiting/1941/3 "2025-05-06T10:22:09Z")

</div>

Welcome to the community

Yes sounds like a good idea to have TMP (Tokens Per Minute).  
In the meantime this might be useful. [Agents - CrewAI](https://docs.crewai.com/concepts/agents#performance-optimization)

@tonykipkemboi Is there an approved way to make suggestions?

---

<div class="post-metadata">

**Author:** ![rjanicki](https://sea1.discourse-cdn.com/flex025/user_avatar/community.crewai.com/rjanicki/32/2439_2.png) [@rjanicki](https://community.crewai.com/u/rjanicki)\
**Post date:** [May 6, 2025, 10:36am UTC](https://community.crewai.com/t/tpm-tokens-per-minute-limiting/1941/4 "2025-05-06T10:36:40Z")

</div>

Thanks!

Just FYI - I’ve used all of these recommendations in my project from the start. The TPM rate limit happened once to me so far, so it doesn’t guarantee it won’t happen, but I’m sure it reduces the risk
