Problems in firebase studio with gemini

when developing a project in firebase studio via AI. this is where you enter the prompt "Prototype an app with AI
" after a while it started to give out “Sorry, I hit a snag. Please try again shortly or modify your prompt.
[GoogleGenerativeAI Error]: Error fetching from https://monospace-pa.googleapis.com/v1/models/gemini-2.5-pro-preview-06-05:streamGenerateContent?alt=sse: [400 Bad Request] The input token count (1056555) exceeds the maximum number of tokens allowed (1048576).” is it possible to reset these tokens or increase the number

1 Like

Hi @user2182 ,
This error means your prompt or input context is too long.It exceeds the Gemini model’s token limit (~1 million tokens). You can’t increase this limit, but you can fix it by simplifying or resetting your app prompt.
Check it here.
Thanks!

Hello,

For firebase related issues you can seek help on firebase support platform..