Open
Description
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
Labels
No labels