@Krish_Varnakavi1 Please see the other thread for more details Gemini 2.5 Pro (paid, with API key) errors 100% of the time when token count is over 131k - #7 by Steven_Waterman
- model: “gemini-2.5-pro”
- Paid, happens on both API keys, both tier 3 and tier 2
- The error is:
{
error: {
code: 400,
status: "Bad Request"
message: {
error: {
code: 400,
status: "INVALID_ARGUMENT"
message: "The input token count (174472) exceeds the maximum number of tokens allowed (131072)."
}
},
}
}
Note that the maximum tokens allowed SAYS 131072 but that is ONLY 131k tokens. Gemini 2.5 Pro support 1 MILLION tokens. So I am not over the limit.
I have DMed you with my project ID as you requested previously but you did not respond.