# Error fetching input token count exceeds

**URL:** https://community.firebasestudio.dev/t/error-fetching-input-token-count-exceeds/16506
**Category:** General
**Created:** [July 14, 2025, 5:50pm UTC](https://community.firebasestudio.dev/t/error-fetching-input-token-count-exceeds/16506 "2025-07-14T17:50:32Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![Blair](https://sea2.discourse-cdn.com/flex002/user_avatar/community.firebasestudio.dev/blair/32/7303_2.png) [@Blair](https://community.firebasestudio.dev/u/Blair)
#### Post date: [July 14, 2025, 5:50pm UTC](https://community.firebasestudio.dev/t/error-fetching-input-token-count-exceeds/16506/1 "2025-07-14T17:50:32Z")

</div>

I am running into this issue, and I have tried a few things like download and uploading into new project.

This is the Error:

[GoogleGenerativeAI Error]: Error fetching from [https://monospace-pa.googleapis.com/v1/models/gemini-2.5-pro:streamGenerateContent?alt=sse:](https://monospace-pa.googleapis.com/v1/models/gemini-2.5-pro:streamGenerateContent?alt=sse:) [400 Bad Request] The input token count (1263888) exceeds the maximum number of tokens allowed (1048576).

Please help me fix this issue

---

<div class="post-metadata">

### Author: ![dms](https://sea2.discourse-cdn.com/flex002/user_avatar/community.firebasestudio.dev/dms/32/8270_2.png) [@dms](https://community.firebasestudio.dev/u/dms)
#### Post date: [July 14, 2025, 6:50pm UTC](https://community.firebasestudio.dev/t/error-fetching-input-token-count-exceeds/16506/2 "2025-07-14T18:50:53Z")

</div>

Hi @Blair ,  
Have a look at this thread here: [Temporary workaround for error due to exceeding input token count (unofficial)](https://community.firebasestudio.dev/t/temporary-workaround-for-error-due-to-exceeding-input-token-count-unofficial/12457)
