Skip to content

Gemini Validation failed #638

@jlorber

Description

@jlorber

Checklist

  • I'm running the newest version of LLM Vision https://github.com/valentinfrlch/ha-llmvision/releases/latest
  • I have enabled debug logging for the integration.
  • I have filled out the issue template to the best of my ability.
  • This issue only contains 1 issue (if you have multiple issues, open one issue for each issue).
  • This is a bug and not a feature request.
  • I have searched open issues for my problem.

Describe the issue

When trying to enter an API key for Google Gemini, I receive this error message:

Image Image

It works if I change the default model from "gemini-2.0-flash" to "gemini-2.5-flash"

Reproduction steps

  1. Add Integration
  2. Add LMM Vision
  3. Add Google as provider
  4. Submit
  5. Enter API key
  6. Change Default model from "gemini-2.0-flash"

Debug logs

This error originated from a custom integration.

Logger: custom_components.llmvision.config_flow
Source: custom_components/llmvision/config_flow.py:902
integration: LLM Vision (documentation, issues)
First occurred: April 21, 2026 at 19:20:24 (12 occurrences)
Last logged: 08:50:48

Validation failed: This model models/gemini-2.0-flash is no longer available to new users. Please update your code to use a newer model for the latest features and improvements.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions