Too many input tokens error

today (or more precisely ~6 minutes ago) i started getting an error that reads “Failed to generate content, too many input tokens: 131085 exceeds the limit of 131072. Please adjust your prompt and try again.”. i personally do not know what could be causing this as the conversation barely has 150,500 tokens; while i’ve had conversations that nearly reach 600,000 tokens. if anyone knows how to fix this (if it is possible to fix it; unless if it’s a bug within AI studio) i’d appreciate it.

Hi @ostauemayer,

Welcome to the Google AI Forum! :confetti_ball: :confetti_ball:

To help you better, can you please specify which platform and model are you using?

AI studio web (free tier); Gemini 2.5 Pro, but oddly enough, once i switched to 2.5 Flash, it gave me the survey to pick between two responses, and i picked one. it generated fine and kept working until i refreshed the page; and all replies from that point had disappeared and rerunning the prompt kept giving the same ‘Too many input tokens’

The issue is still not fixed, and in a separate prompt (which has ~590 thousand tokens) it just says that it failed to generate, with no error reason given. it would usually say “permission denied” or “quota exceeded” but now just says nothing. i don’t know what could be causing this kind of problem after problem with specific prompts considering ive had one with 755 thousand tokens that still works perfectly fine..

Hi @ostauemayer,

Apologies for the delay.. Are you still facing this issue?