[Bug] `veo-3.1-generate-preview` and `gemini-3.1-flash-image-preview` were retired and now fail
MaxKB Version
Not environment-specific: found by reading the code at commit 86ddbb40b557d7fc0828121257c130d62e1d1086 on main.
Problem Description
The Gemini provider's image and video models are both retired, and each is the only model offered for its type.
-
Google retired
veo-3.1-generate-previewon October 22, 2026 (https://ai.google.dev/gemini-api/docs/deprecations). It is the only Gemini text-to-video and image-to-video model:- https://github.com/1Panel-dev/MaxKB/blob/86ddbb40b557d7fc0828121257c130d62e1d1086/apps/models_provider/impl/gemini_model_provider/gemini_model_provider.py#L114
- https://github.com/1Panel-dev/MaxKB/blob/86ddbb40b557d7fc0828121257c130d62e1d1086/apps/models_provider/impl/gemini_model_provider/gemini_model_provider.py#L118
Google's replacement is
gemini-omni-1.2-flash. -
Google retired
gemini-3.1-flash-image-previewon June 25, 2026 (same page). It is the only Gemini text-to-image model:- https://github.com/1Panel-dev/MaxKB/blob/86ddbb40b557d7fc0828121257c130d62e1d1086/apps/models_provider/impl/gemini_model_provider/gemini_model_provider.py#L110
Google's replacement is
gemini-nano-banana-2.1.
So a user who adds Gemini image or video generation gets a model the Gemini API no longer serves.
Steps to Reproduce
- Add a Gemini model of type text-to-video, image-to-video or text-to-image, using the built-in model choice.
- Use it in an application or workflow.
- The request names a retired model (
veo-3.1-generate-preview, retired October 22, 2026, orgemini-3.1-flash-image-preview, retired June 25, 2026), so it fails.
The expected correct result
The Gemini image and video model lists offer models the Gemini API still serves.
Found by Since, which watches code for model, API and runtime retirements and opens the fix before the date. It's free for open source, and I work on it. Full scan of this repo: https://since.dev/scan/1Panel-dev/MaxKB
Happy to open a PR if that helps.
这两个只是预设模型,只是为了方便选择模型,既然退役了,直接在基础模型中输入现役模型使用即可。
Thanks for the reply, that makes sense.