Does the Gemini-2.5-Flash API not support simultaneous function calls and structured output?

According to the official documentation, 2.5-Flash should support both function calls and JSON output, but I found that if I enable both Google search function calls and JSON output at the same time, a 400 error occurs, and it fails to return results properly.

I suspect this might be related to the free tier I'm currently using, so I tried switching to 2.0-Flash.

Under 2.0-Flash, I can use both Google search and JSON output simultaneously, but although the URLs returned by the search exist, the content of those websites displays a 404 page.

So, does the Gemini-2.5-Flash API not support using function calls and JSON output simultaneously?

The issue is that a week ago, I was able to use both the function call and JSON output features of Gemini-2.5-Flash simultaneously, but a few days ago it suddenly stopped working.

Leave a Reply