Investigation of API instability with ⁠gemini-3.8-flash⁠ — Intermittent HTTP 503 errors and transport timeouts

Hello Google Cloud / Google AI Studio support team,

I would like to request an investigation regarding the availability and behavior of the ⁠gemini-3.8-flash⁠ model under my Free Tier project, specifically concerning intermittent failures registered during my requests.

Integration Context

Environment: Cloudflare Workers (server-side runtime).

Integration Method: Direct REST API calls via native ⁠fetch⁠ (no SDKs or third-party wrappers).

Authentication: ⁠x-goog-api-key⁠ HTTP header (API key securely managed in server environment variables).

Request Telemetry (October 27, 2026)

I executed isolated, minimal diagnostic tests directly from my production runtime—without request concurrency or complex payloads—to analyze connection behavior:

1. HTTP 503 (Service Unavailable / Overloaded):

Timestamp: 2026-10-27 09:02:13 UTC

Result: The model responded with HTTP 503 in 6,148 ms.

Network Baseline: Within the exact same execution cycle and Worker instance, a control check to ⁠[https:/example.com/\](https//example.com/)⁠ returned HTTP 200 in 6 ms, ruling out outbound network issues on my infrastructure.

2. Timeout Without Response Headers:

Timestamp: 2026-10-27 09:13:42 UTC

Result: The request hit my 45,000 ms threshold and threw ⁠TimeoutError: The operation was aborted due to timeout⁠.

Note: The connection stalled at the transport layer before any response headers were initiated or received from Google’s endpoint.

Minimal Reproduction Code

Below is the exact function used in Cloudflare Workers to isolate the issue and capture telemetry:

import { env } from “cloudflare:workers”;

export async function testarGemini() {
const apiKey = env.GEMINI_API_KEY;
if (!apiKey) {
throw new Error(“GEMINI_API_KEY is not configured.”);
}

const inicio = Date.now();
const response = await fetch(
“https://generativelanguage.googleapis.com/v1beta/models/gemini-3.8-flash:generateContent”,
{
method: “POST”,
headers: {
“Content-Type”: “application/json”,
“x-goog-api-key”: apiKey
},
body: JSON.stringify({
contents: [
{
parts: [
{ text: “Respond only with OK.” }
]
}
]
}),
redirect: “manual”,
signal: AbortSignal.timeout(45000)
}
);

const tempoAteCabecalhos = Date.now() - inicio;
const corpo = await response.text();

// Sanitize sensitive credentials from log outputs
const corpoSanitizado = corpo
.split(apiKey).join(“[REDACTED]”)
.replace(/AIza[\w-]+/g, “[REDACTED]”);

return {
status: response.status,
tempoAteCabecalhos,
tempoTotal: Date.now() - inicio,
corpo: corpoSanitizado.slice(0, 4000)
};
}

Questions for Support:

1. Is there any active capacity throttling or eligibility restriction affecting the ⁠gemini-3.8-flash⁠ model for Free Tier projects?

2. Could you inspect the request logs around the timestamps above to determine what caused the transport-level connection retention (timeout) and the 503 capacity errors?

I can provide my GCP / AI Studio Project ID through secure private channels upon request.

Thank you,

Hello @Hueliton_Fernandes ,

503 errors are due to our services being temporarily overloaded. Please see this pinned post for suggestions on how to handle this.