Skip to content

Error 404 when using gemini-1.5-flash with generateContent #43

Description

@Trsistan

Hello,

I encountered an issue while using the Gemini API. When I try to call the generateContent endpoint with the model gemini-1.5-flash, I get the following error:

[GoogleGenerativeAI Error]: Error fetching from https://generativelanguage.googleapis.com/v1beta/models/gemini-1.5-flash:generateContent:
[404] models/gemini-1.5-flash 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.

It seems that gemini-1.5-flash is no longer available for this endpoint in the v1beta API version. I have verified that the base URL and other API calls are working correctly.

Could you please confirm if this model has been retired? If so, it would be very helpful to update the documentation to indicate which models are currently supported, for example gemini-2.5-flash-lite.

Thank you very much for your help and for maintaining this API!

Best regards,

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions