# Problems in firebase studio with gemini

**URL:** <https://discuss.ai.google.dev/t/problems-in-firebase-studio-with-gemini/91608>\
**Category:** Gemini API\
**Tags:** firebase, gemini-2-5\
**Created:** [June 30, 2025, 3:42am UTC](https://discuss.ai.google.dev/t/problems-in-firebase-studio-with-gemini/91608 "2025-06-30T03:42:17Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![user2182](https://d1dlmcr85iqnpo.cloudfront.net/user_avatar/discuss.ai.google.dev/user2182/32/57337_2.png) [@user2182](https://discuss.ai.google.dev/u/user2182)\
**Post date:** [June 30, 2025, 3:42am UTC](https://discuss.ai.google.dev/t/problems-in-firebase-studio-with-gemini/91608/1 "2025-06-30T03:42:17Z")

</div>

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:](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

---

<div class="post-metadata">

**Author:** ![Dinesh\_Kumar79](https://d1dlmcr85iqnpo.cloudfront.net/user_avatar/discuss.ai.google.dev/dinesh_kumar79/32/32206_2.png) [@Dinesh\_Kumar79](https://discuss.ai.google.dev/u/Dinesh_Kumar79)\
**Post date:** [July 2, 2025, 10:02am UTC](https://discuss.ai.google.dev/t/problems-in-firebase-studio-with-gemini/91608/3 "2025-07-02T10:02:06Z")

</div>

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.](https://cloud.google.com/vertex-ai/generative-ai/docs#token-limits)  
Thanks!

---

<div class="post-metadata">

**Author:** ![Lalit\_Kumar](https://d1dlmcr85iqnpo.cloudfront.net/user_avatar/discuss.ai.google.dev/lalit_kumar/32/37058_2.png) [@Lalit\_Kumar](https://discuss.ai.google.dev/u/Lalit_Kumar)\
**Post date:** [July 9, 2025, 4:47am UTC](https://discuss.ai.google.dev/t/problems-in-firebase-studio-with-gemini/91608/5 "2025-07-09T04:47:37Z")

</div>

Hello,

For firebase related issues you can seek help on [firebase support platform.](https://firebase.google.com/support).

---

<div class="post-metadata">

**Author:** ![Vinod\_D](https://d1dlmcr85iqnpo.cloudfront.net/user_avatar/discuss.ai.google.dev/vinod_d/32/75129_2.png) [@Vinod\_D](https://discuss.ai.google.dev/u/Vinod_D)\
**Post date:** [December 3, 2025, 6:59pm UTC](https://discuss.ai.google.dev/t/problems-in-firebase-studio-with-gemini/91608/7 "2025-12-03T18:59:17Z")

</div>

I guess I had faced this same instance and was only able to resolve by starting a new chat. However old chat had ended without any further questions. Hope this help your build to continue
