Model Gemini 2.5 Pro get error when call via API

My code worked fine yesterday but now It got error with model “gemini-2.5-pro”, switch to “gemini-2.5-flash” work fine.

INFO:google_genai.models:AFC is enabled with max remote calls: 10.

INFO:httpx:HTTP Request: POST https://generativelanguage.googleapis.com/v1beta/models/gemini-2.5-pro:generateContent “HTTP/1.1 500 Internal Server Error”

2025-06-27 11:44:26 - ERROR - backend.app.agents.reasoning_agent - Reasoning error: 500 INTERNAL. {‘error’: {‘code’: 500, ‘message’: ‘An internal error has occurred. Please retry or report in Troubleshooting guide  |  Gemini API  |  Google AI for Developers’, ‘status’: ‘INTERNAL’}}

Anyone get error like me

1 Like

Hi @NGUY_N_HOANG_TU_N_IT ,
Welcome to the Forum!

500 INTERNAL means an unexpected error on Google’s side. Try reducing input context or switch to another model(e.g.,gemini-2.5-flash,etc). If it keeps happening, retry later or report using the Send feedback button in Google AI Studio.

Thanks!

2 Likes