I’ve been plagued by this issue for a month and am working with google cloud support but making very little progress on fixing, which is frustrating. You can see additional posts here (Re: Unexpected 400 errors with Generated Output Sc... - Google Cloud Community) and here (Unexpected InvalidArgument error for large response_schema). Lots of folks are having issues with this but google hasn’t done anything to resolve to date.
Related topics
| Topic | Replies | Views | Activity | |
|---|---|---|---|---|
| Error with too many enums in structured output | 5 | 388 | November 10, 2025 | |
| 500 INTERNAL error when using structured output with large "maxItems" | 4 | 220 | August 15, 2025 | |
| Please document allowed schema complexity | 2 | 222 | November 7, 2025 | |
| Unexpected InvalidArgument error for large response_schema | 4 | 842 | September 26, 2024 | |
| Gemini gemini-1.5-flash-latest doesn't work when setting maxItems in JSON schema output | 1 | 197 | July 25, 2025 |