Gemini 2.5 Pro Preview has a token problem
Eric Famanas
~6 min read

First, the great, almost truly exceptional thing about Gemini 2.5
As I was talking with some of my co-workers at RFIDentikit, I was encouraged to give Gemini 2.5 a go with respect to its Python coding abilities. As part of a standardised (but not yet formally published) LLM performance evaluation I had done on other GenAI systems during some of my research, I exercised the system using the same test wherein I would ask the LLM to help me construct a simple program, eventually increasing complexity and scope to see where it will finally break at. In a testament to Google's expert engineering practices and ingenuity, Gemini had performed the absolute best across all functional test criteria, including the spatial complexity test. I felt that this was quite amazing, so I decided to look at the advanced options. That's when I discovered that the output token length was maxed at ~65k.

The max number of tokens used in a response, as seen from Google's AI Studio UI
This felt misaligned with the needs of systems operating under resource constraints; most LLMs that I work with, as part of looking at low-resource, scalable solutions for AI FOR DEVELOPING COUNTRIES FORUM, only have a max limit 300-1500 tokens per response, with these controls either being explicitly stated or, through the interface, one can command the LLM to constrain the token limit. There are different ways that LLM's can still maintain continuous context over this constraint by using techniques such as chunking or windowing, so this limitation shouldn't matter much, especially to the likes of Google.
Let's just say... I was a bit surprised when I dialled it down.
But before I continue, it's only fair that I baseline your expectations on why this number is so important, especially when looking at resource-conscious solutions.
Why should I care about how many tokens my LLM uses?
A token, in AI systems, is a unit of text or code used during processing. More tokens = more compute, memory, latency, and cost. that is used to pay for goods or services in a particular country or region. In short, a token is a small piece of currency that is used as a means of payment. In the context of natural language processing (NLP), a token is a unit of information that is extracted from text data and used to train machine learning models (MLMs). It can be seen as a unit of data that is used to represent a specific concept in a language. In the context of computer science, a token is a unit of memory that is allocated to a particular instruction or operation in a processor.
"Tokens are the basic unit of data processing cost in AI systems."
When looking at what tokens mean in this sense, here are some points to help understand this concept:
Memory: Longer prompts and outputs increase the memory footprint during inference, especially with transformer models where attention mechanisms scale quadratically with input length.
Compute: More tokens = more matrix multiplications in each transformer layer, increasing latency and GPU usage.
Energy: Longer sequences lead to more time on hardware (e.g., GPUs/TPUs), consuming more electricity and cooling resources.
Cost: API providers charge based on token usage. A higher token count means greater operational cost for both provider and end user.
When looking at developing countries, resources are already precious; outside of digital and data sovereignty, the effectiveness of an LLM underneath constrained conditions will also come under extreme scrutiny. Not just to these countries, but to everyone invested in resource conservation, token efficiency is absolutely paramount.
So how did Gemini 2.5 perform under restrained conditions?
To help illustrate what exactly had happened, I took some screenshots below:

I am first informing Gemini that it has a token limitation in place

I am now asking why its output is far below the maximum allowed token length for a response
Apologies for the poor screenshots; I wanted to make sure that my settings were in clear view and that I am not just creating drama for the sake of it. However, to articulate what is going on:
300 tokens is roughly the equivalent of 200-300 words. This is the current setting in the 'Output Length'
Some LLM's also need to be explicitly told what their token limit-per-response is. This is also being done here for good measure.
The response from Gemini fell well below the 300 token limit, being truncated to tens of tokens.
I continued this exchange with Gemini did results started becoming truly bizarre. However, as with good practice, I tried to assert the token limitation again and it still failed to articulate a complete response:

Gemini 2.5's 'self reflection' responses leaking out into the response as a hallucination
As seen in the screenshot, even when the 300 token limit was asserted once again, the system still failed to provide a cohesive response, but instead seemed fragmented due to wanting to use a limit that was much higher, like 65000. Regardless, there should have been more than enough tokens to at least print a full, hallucination-free sentence.
One thing I did observe is that the "thoughts", although a very neat gimmick, actually consume a significant amount of tokens, quite possibly all of the tokens afforded in the output length. Ultimately, in terms of a UX, these "self reflections" don't actually add value to a user asking the LLM a question:

Opening up Gemini's "thoughts" as to why its not able to provide concise answers with 300 tokens.
Reading the thoughts was useful in some ways, but still didn't explain why the responses were so short. In the end, it just made me feel bad, because it felt like I was verbally abusing the fruits of hundreds of engineers' hard work. But this limitation needs to be explored if Google wishes for Gemini to have a truly diverse, and scalable, user experience. This is especially important for resource-constrained countries that wish to implement local deployments of Gemini within their own, nationally-hosted infrastructure. When thinking about this problem, there are some important points to consider:
Computational Cost High token usage means higher processing demands and memory requirements. Local deployment becomes impractical without robust hardware. Cloud-based use is hampered by: Limited bandwidth High latency Intermittent connectivity Expensive API costs
Token Efficiency vs. Hallucination Shorter prompts (e.g., 300 tokens) can lead to increased hallucinations. Yet requiring long prompts to ensure reliability increases resource use. This trade-off impacts usability in constrained environments.
Economic Inequity Token-based pricing structures favor wealthier institutions. Startups, educators, and individuals in the Global South may find these costs prohibitive.
Otherwise, there’s a risk that future AI architectures, such as Gemini’s high token dependency model, effectively favors well-resourced nations and organizations — potentially leaving behind those without access to scalable infrastructure.
Bibliography and Reference LLMs
Google Gemini 1.5, (and by extension 2.5) Technical Overview (2024)“Tokenization and the Fairness of Language Models” (Bender et al., 2021)
“The Curse of Recursion: Training on Tokenized Data” – EleutherAI
UNESCO Report: “AI and the Future of Learning in the Global South” (2022)
Mistral.ai and Gemma (Google)
Stanford CRFM “Beyond the Western Lens: Building LLMs for the Majority World” (Panel series, 2023–2024)
Masakhane NLP – Community-driven NLP research for African languages