Sustained Outage (14h+): gemini-3.5-flash generateContent hangs indefinitely on structured-output + thinkingConfig (Returns 0 bytes)
Environment & Endpoint
- Model:
models/gemini-3.5-flash - Endpoint:
generativelanguage.googleapis.com/v1beta(API-key auth)
The Issue
Since approximately 2026-07-15 08:00 UTC, we have been experiencing a complete, sustained unavailability of the gemini-3.5-flash model, characterized by two distinct and highly reproducible failure modes[cite: 1].
The most critical behavior is that requests utilizing structured output with thinking enabled are held open indefinitely with zero response bytes returned (rather than failing fast)[cite: 1].
Detailed Timeline & Observed Behaviors (All times in UTC)
- 2026-07-15 00:25–01:42 (Healthy Baseline)[cite: 1]
- Multiple calls with our full configuration (
systemInstruction+safetySettings+responseMimeType: application/json+responseJsonSchema+thinkingConfig {includeThoughts: false, thinkingLevel: "low"}) succeeded normally (HTTP 200) with a response time of ~10.3s[cite: 1].
- Multiple calls with our full configuration (
- 2026-07-15 ~08:00 (Degradation Begins)[cite: 1]
- Calls started failing with 5xx errors[cite: 1].
- 2026-07-15 14:17, 21:25, 21:31 (The Indefinite Hang / 0-Byte bug)[cite: 1]
- Full-configuration POST requests (with structured output and thinking enabled) were successfully accepted at the TCP/TLS layer (connect ≈ 0.04s), but remained completely hung with 0 bytes returned until client-side timeout at 60s+[cite: 1].
- 2026-07-15 21:40 (Control Tests & Fast 503 Load Shedding)[cite: 1]
- Control Test A:
GET /→ Fast HTTP 404 in < 1s (routing is healthy)[cite: 1]. - Control Test B:
POST models/gemini-2.5-flash→ Fast HTTP 404 in 0.95s (“no longer available to new users”, authentication and error paths are healthy)[cite: 1]. - Control Test C:
POST models/gemini-3.5-flash(minimal text prompt, no configuration) → Fast HTTP 503 “This model is currently experiencing high demand…” in 0.82s[cite: 1].
- Control Test A:
Key Takeaways / Defects to Address
- Defect in Overload Handling: While a prompt 503 under heavy load (observed on minimal requests) is expected behavior, the indefinite hang (0-byte transfer) for structured-output requests with
thinkingConfigindicates a serious issue where connections are kept open instead of being correctly rejected or timed out by the load-balancer/API gateway[cite: 1]. - Dashboard Visibility: No incidents are currently visible on the public status dashboards for the Developer API[cite: 1].
Questions for DevRel / Google Engineers
- Is there an ongoing, unannounced capacity issue with
gemini-3.5-flash[cite: 1]? - Is the infinite-hang/0-byte behavior for structured outputs + thinkingConfig a known, tracked bug[cite: 1]?
- Is there an estimated time of stabilization (ETA), or a recommended alternative stable model for API-key users (given that 2.5-flash returns 404)[cite: 1]?
We have raw client logs and the exact (non-confidential) request JSON payload ready to provide if requested.