Skip to content

404 NOT_FOUND #20

@BazaiHassan

Description

@BazaiHassan

Description of the bug:

When calling the Gemini API (models/gemini-2.0-flash-exp-image-generation) from a server environment, a 404 NOT_FOUND error is returned. However, the same API call works successfully when executed from a local environment, generating the expected content without errors.

{
"isSuccess": false,
"error": "404 NOT_FOUND. {'error': {'code': 404, 'message': 'models/gemini-2.0-flash-exp-image-generation 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.', 'status': 'NOT_FOUND'}}"
}

Actual vs expected behavior:

No response

Any other information you'd like to share?

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions