mirror of
https://github.com/langgenius/dify-official-plugins.git
synced 2026-07-21 17:45:23 -04:00
When filling Gemini API Key, an error prompts #533
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @WSDzju on GitHub (Aug 8, 2025).
Self Checks
Dify version
1.71
Cloud or Self Hosted
Cloud
Steps to reproduce
the error:
404 models/gemini-pro is not found for API version v1beta, or is not supported for generateContent. Call ListModels to see the list of available models and their supported methods.
✔️ Expected Behavior
the updated models like gemini-2.5-pro and flash should be listed
❌ Actual Behavior
No response
@dosubot[bot] commented on GitHub (Aug 8, 2025):
The 404 error happens because Dify Cloud is still trying to validate your Gemini API key using the deprecated
gemini-promodel, which is no longer supported by Google's API in v1beta. This is a known issue and has been reported by other users as well.As a workaround, you can try specifying a newer Gemini model such as
gemini-1.5-pro-latest,gemini-2.0-flash, orgemini-1.5-flashinstead ofgemini-pro—users have reported this resolves the error in some cases. If you're using the Gemini plugin, reinstalling it from the Dify marketplace has also helped some users successfully set up their API key.Support for Gemini 2.5 models (like
gemini-2.5-proandflash) is still incomplete in Dify Cloud, and attempts to use these may result in similar 404 errors until the model list is updated in the platform. A permanent fix has been merged in the dify-official-plugins repo, but may not be deployed to all Dify Cloud environments yet. For now, you can use thelist_models()function from the Google Generative AI Python library to see which models your API key supports:More details and user reports:
If you need the very latest Gemini models, you may need to wait for a future Dify Cloud update.
To reply, just mention @dosu.
How did I do? Good | Irrelevant | Incorrect | Verbose | Hallucination | Report 🐛 | Other
