Gemini 2.5 Flash: models.get returns 200, but generateContent returns 404 NOT_FOUND

Hello. Using the same API key, gemini-2.5-flash, and v1beta:

GET /v1beta/models/gemini-2.5-flash returns HTTP 200 and lists generateContent as supported.

POST /v1beta/models/gemini-2.5-flash:generateContent returns HTTP 404 NOT_FOUND. This was reproduced with a minimal text-only REST request from Cloud Shell, without images, Flutter, or the SDK.

AI Studio shows paid Tier 1. The key is restricted to generativelanguage.googleapis.com, with no application or method restrictions. Its bound service account is active.

The original error message was not retained. Further generation requests have been stopped.

Could model generation eligibility or provisioning explain this GET 200 / POST 404 combination? What should I check next, and where can I privately provide project details?

No API keys, tokens, or private images are included.
Thank you.

Hello @ilhaesso_dev,

  • Access to the 2.5 models is limited to users who have actively used them in the past (Gemini 2.5 Flash, September 18, 2026 changelog). This is why models.get still lists gemini-2.5-flash while generation requests fail; the model is not deprecated (Deprecations).
  • For new projects, use the latest models, gemini-3.5-flash-lite or gemini-3.8-flash, listed on the Models page.