> For the complete documentation index, see [llms.txt](https://docs.sprinthub.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.sprinthub.com/en/topics/artificial-intelligence/ai-agents/ai-agents-token-per-minute-tpm-limits-in-openai-and-google-gemini.md).

# AI Agents - Token per Minute (TPM) Limits in OpenAI and Google Gemini

In this article, we detail the TPM limits of the newest OpenAI models (such as GPT-5, GPT-5.1, GPT-4.1, GPT-4o, etc.) and Google models (Gemini 2.0 line).

With the exponential growth of applications based on language models, understanding usage limits, such as Tokens Per Minute (TPM), has become essential to ensure performance, scalability, and stability in production environments.

{% embed url="<https://youtu.be/12tgkndCduI>" %}

## ✅ What are Tokens Per Minute (TPM)

Tokens are the smallest units of text processed by a language model. A token can be a word, part of a word, or even a punctuation symbol. The Tokens Per Minute (TPM) limit represents the maximum amount of tokens a model can process per minute — combining input (prompt) and output (response).

## TPM Limits in OpenAI (GPT-5, GPT-5.1, GPT-4.1, GPT-4o and Mini/Nano)

OpenAI offers a variety of models, each with different capabilities and usage limits. Typical TPM limits (subject to change):

| Template     | Tokens Per Minute (TPM)   | Requests Per Minute (RPM)  |
| ------------ | ------------------------- | -------------------------- |
| GPT-5        | (Check on the website)TPM | (Check on the website) RPM |
| GPT5.1       | (Check on the website)TPM | (Check on the website) RPM |
| GPT-5.1 Mini | (Check on the website)TPM | (Check on the website) RPM |
| GPT-5.1 Nano | (Check on the website)TPM | (Check on the website) RPM |
| GPT-4.1      | (Check on the website)TPM | (Check on the website) RPM |
| GPT-4.1 Mini | (Check on the website)TPM | (Check on the website) RPM |
| GPT-4.1 Nano | (Check on the website)TPM | (Check on the website) RPM |
| GPT-4o       | (Check on the website)TPM | (Check on the website) RPM |
| GPT-4o Mini  | (Check on the website)TPM | (Check on the website) RPM |
| o4 Mini      | (Check on the website)TPM | (Check on the website) RPM |
| o3 Mini      | (Check on the website)TPM | (Check on the website) RPM |

{% hint style="info" %}
💡 Note: values may vary depending on the plan.\
You can view your current limits here:\
<https://platform.openai.com/docs/models>
{% endhint %}

## TPM Limits in Gemini (Google AI) – Flash and Flash Light

Google has been evolving its Gemini model line, with emphasis on the 2.0 Flash series models, optimized for speed and cost-effectiveness.

| Template               | Tokens Per Minute (TPM)   | Requests Per Minute (RPM)  |
| ---------------------- | ------------------------- | -------------------------- |
| Gemini 2.0 Flash       | (Check on the website)TPM | (Check on the website) RPM |
| Gemini 2.0 Flash Light | (Check on the website)TPM | (Check on the website) RPM |

{% hint style="info" %}
💡 Note: values may vary depending on the plan.\
You can view your current limits here:\
<https://ai.google.dev/gemini-api/docs/rate-limits?hl=pt-br>
{% endhint %}

## ⚠️ What if I exceed the limits

Both OpenAI and Google will return rate limit errors (e.g., HTTP 429 code). To work around this:

* You can increase your tier by following the specific rules of each model.
* It is possible to limit the amount of characters used in the chatbot, according to your needs.
* You can request a plan upgrade directly on the SprintHub platform.

## Best Practices for Token Optimization

* Simplify prompts – Avoid repetitions and unnecessary structures in your AI agent's rules.

## Conclusion

With the growing sophistication of language models, efficient management of limits such as TPM becomes a technical differentiator. Understanding these limits not only helps avoid failures, but also makes it possible to scale applications in a smarter, more sustainable, and more cost-effective way.

<br>


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://docs.sprinthub.com/en/topics/artificial-intelligence/ai-agents/ai-agents-token-per-minute-tpm-limits-in-openai-and-google-gemini.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
