Hello Google Gemini API team,
We are investigating a Gemini Developer API generation failure. We have not assumed the model is shut down, and we have not automatically retried the failed request.
ACTUAL OBSERVATIONS
- Model: gemini-2.5-flash.
- API: Gemini Developer API (not Vertex AI).
- Failed request: POST https://generativelanguage.googleapis.com/v1beta/models/gemini-2.5-flash:generateContent
- Authentication: an AI Studio API key was supplied in the x-goog-api-key header. The key is not included here.
- Request started: 2026-11-02T06:59:52.373Z (12:29:52.373 IST).
- Rejection recorded: 2026-11-02T06:59:52.848Z.
- Response: HTTP 404. The earlier application error handler discarded the provider’s detailed response body. We therefore cannot supply Google’s original error explanation, request ID, or JSON status code. Our application’s generic error is not a verbatim Google response.
- Generation requests submitted: one; automatic retries: zero. No successful output or usage metadata was returned.
- Authenticated model listing returned HTTP 200 and listed the exact model with generateContent support.
- Exact-model metadata requests under both v1beta and v1 returned HTTP 200 and listed generateContent. No generation was attempted under v1.
- We are using a project without an active paid billing configuration. Please clarify model eligibility and applicable free-tier restrictions.
- The runtime uses direct Node.js REST fetch, not a legacy Google SDK. Redirects are rejected; there is no automatic model, host, or API-version fallback.
RELEVANT POLICY
Google’s Gemini API deprecations page (https://ai.google.dev/gemini-api/docs/deprecations), reviewed on 2 November 2026, describes restrictions on Gemini 2.5 access based on prior active usage. This may be relevant, but we cannot establish whether it caused this project’s 404 because the original provider error explanation was not retained.
SANITIZED REQUEST SHAPE
The original request was a text-only Hindi writer qualification case, not image or audio generation. The following is a sanitized representation, not a byte-identical original request or a new minimal reproduction:
{
“contents”: [
{“role”: “user”, “parts”: [{“text”: “[Private qualification prompt withheld]”}]}
],
“generationConfig”: {
“responseMimeType”: “application/json”,
“responseJsonSchema”: {
“type”: “object”,
“additionalProperties”: false,
“properties”: {
“narration”: {“type”: “string”},
“title”: {“type”: “string”},
“uncertainties”: {“type”: “array”, “items”: {“type”: “string”}}
},
“required”: [“narration”, “title”, “uncertainties”]
},
“temperature”: 0,
“maxOutputTokens”: 4096,
“candidateCount”: 1,
“thinkingConfig”: {“thinkingBudget”: 0}
}
}
READ-ONLY DIAGNOSTICS
These metadata paths were checked with the same saved credential:
GET https://generativelanguage.googleapis.com/v1beta/models?pageSize=100
GET https://generativelanguage.googleapis.com/v1beta/models/gemini-2.5-flash
GET https://generativelanguage.googleapis.com/v1/models/gemini-2.5-flash
Our application now retains allowlisted error status/reason codes, HTTP status, finite diagnostic signals, and a response hash without exposing raw provider text, credentials, or private inputs. No further generateContent request was made to recover the missing error explanation. We can provide project identifiers only through a secure private channel explicitly offered by Google.
QUESTIONS
- Can a project list gemini-2.5-flash and its generateContent method while being ineligible to invoke generation under the prior-usage policy? How can we verify eligibility securely?
- Can Google investigate the failed request around the UTC timestamp above and clarify whether HTTP 404 reflected eligibility, routing, API-version/method compatibility, or another condition?
- Are the documented v1beta endpoint and the shown JSON-schema/thinking configuration supported by this exact model?
- Which currently offered text model is suitable for a free-tier project without legacy eligibility? Please distinguish published availability from project-specific access and quota.
- Could a rejected HTTP 404 generation request have been metered or charged? What reliable usage/billing evidence can confirm this? Our application’s internal budget reservation does not imply that Google charged us.
Thank you.
POSTING INSTRUCTIONS (DO NOT INCLUDE THIS SECTION IN THE PUBLIC POST)
Post the Subject and message above at Gemini API - Google AI Developers Forum after reviewing them. Do not attach raw request files, API keys, local ledgers, account details, or the entire project. Do not post private project identifiers or request IDs publicly. If Google requests them, use only a verified secure private support channel. Do not execute a new generation request solely to reproduce the error.