Hi, I’m seeing a reproducible failure with gemini-3.7-flash on Vertex AI Standard PayGo. These are generateContent calls through aiplatform.googleapis.com in the global location, using the Google Gen AI Python SDK with agentic media processing enabled. Each request references one of three fixed GCS-hosted MP4 videos, each about 30 minutes long.
I compared requests using the same videos, project, model, endpoint, settings, and maximum concurrency of three:
- A short, 45-character prompt succeeded on 42/42 requests across two runs (HTTP 200).
- Our production prompt, approximately 9,084 characters, returned HTTP 500 on all 14 completed requests in the latest run. Each call ended after approximately 6–18 minutes with
500 INTERNAL: Internal error encountered.
SDK retries were disabled, and HTTP transport logging recorded one HTTP request per attempt. These were actual API responses, not client-side timeouts. We’ve also seen this prompt fail at different times of day, so it does not appear limited to a peak-traffic window. The short prompt succeeds with the same videos. Also, both prompts succeed reliably if the video part is media_processing="static", the error only occurs with media_processing="agentic"parts.
Has anyone encountered similar behavior? Are there known interactions between Gemini 3.7 Flash, agentic video, and particular prompts that could explain a delayed 500? The generic error gives me no visibility into what happened within the API call, and I would appreciate any help figuring this out. Thank you!