GrepBoard/Manuals
605 manuals ·

Fix Gemini 2.5 404 "no longer available to new users"

·updated ·Tested on Gemini API official docs · 2026-12·Test scope ↓·5 steps

Gemini 2.5 404 "no longer available to new users" is an access limit. 2.5 Pro and Flash are also deprecated and reroute from Dec 1, so use a newer model.

text
This model models/gemini-2.5-pro is no longer available to new users. Please update your code to use a newer model for the latest features and improvements.

You get this 404 (NOT_FOUND) when you call a 2.5 model without a history of using 2.5 (reports mostly come from newly created projects). The error appears because access to 2.5 is limited to users who have used it before, so without that history the only fix is to change the model name to a 3.x model. Separately, Google announced the deprecation of gemini-2.5-pro and gemini-2.5-flash on 2026-11-02. According to the notice, API requests to both models are automatically routed to other models from 2026-12-01. Whether users without past access still get this 404 after the switch was not checked.

The full response, as posted on the official forum (2026-07, gemini-2.5-pro from a newly created GCP project):

text
{  "error": {    "code": 404,    "message": "This model models/gemini-2.5-pro is no longer available to new users. Please update your code to use a newer model for the latest features and improvements.",    "status": "NOT_FOUND"  }}

[1] Read the official notice. The Gemini API changelog entry for 2026-09-18 says:

"Not deprecated" in that notice reflects September. The 2026-11-02 changelog entry announced the deprecation of Pro and Flash, and the deprecations page now lists the following (checked 2026-12-01). Gemini API deprecations

ModelShutdown dateFrom 2026-12-01
gemini-2.5-proDecember 1, 2026Routed to gemini-3.8-flash and billed at its rates
gemini-2.5-flashDecember 1, 2026Routed to gemini-3.5-flash-lite and billed at its rates
gemini-2.5-flash-liteNo shutdown date announcedNot deprecated; available through the API until further notice

No shutdown date for gemini-2.5-flash-lite does not mean a new project can use it. Access to 2.5 is still limited to users who have used it before. A staff reply on the forum (2026-07-30) said the same about the access limit, so the limit was in effect before the September notice. That reply recommended 3.1 Flash-Lite or 3.5 Flash, which differs from today's notice; gemini-3.5-flash is now deprecated and routed to gemini-3.6-flash, so follow the current notice.

[2] Use the message to tell causes apart. A 404 with different wording is a different problem.

MessageCauseWhat to do
is no longer available to new users2.5 access limit (this page)Change the model name
is not found for API version v1betaTypo, retired model, or API versionFix Gemini API 404 "models/... is not found for v1beta"
Every gemini-2.5-* suddenly 404s on a key that worked yesterdayPossibly a service-side problemStep 4

[3] Change the model name. The notice points to 3.5 Flash-Lite and 3.8 Flash.

console
$ curl -sS "https://generativelanguage.googleapis.com/v1beta/models/gemini-3.8-flash:generateContent" \    -H "x-goog-api-key: $GEMINI_API_KEY" -H "Content-Type: application/json" \    -d '{"contents":[{"parts":[{"text":"ping"}]}]}'

For light workloads use gemini-3.5-flash-lite. Swapping the name may not be the whole job: 3.x models differ from 2.5 in parameters and pricing, so read the model guide too. In particular, the changelog entry for 2026-07-21 marks the sampling parameters temperature, top_p and top_k as deprecated (see the Gemini 3.6 Flash guide), so check that guide before carrying them over from a 2.5 request. List the names your key can actually use with GET https://generativelanguage.googleapis.com/v1beta/models.

[4] If a project that used 2.5 suddenly gets 404, suspect an outage first. On 2026-07-09 all gemini-2.5-* models returned 404 at once, and a Google staff member replied on the forum that it was a config issue, it had been rolled back, and the rollback takes about 45 minutes to reach all regions. If the forum fills with similar posts at the same time, waiting is all you can do. If it lasts more than a day, moving to a new model is faster.

[5] Do not count on widening "existing user". The forum asked what defines it (API key age, project usage history, something else) and got no official answer; the docs give no criterion. Another project on the same account might still work, but since the unit of the check is unconfirmed, do not treat borrowing that project's key as a fix. According to the notice, other models answer 2.5 Pro and Flash requests from 2026-12-01, so keeping the old name in an existing project does not preserve 2.5 behavior. Put the new model name in your code, then check the results and cost again. If you need gemini-2.5-flash-lite, about all that remains is to keep using it in the project that still has access (how long a gap loses access is not published).

Check it with the HTTP status codes tool ↗ — calculated in your browser.

#gemini-api#404#gemini-2.5#model-access