From the document: Gemini models | Gemini API | Google AI for Developers
it looks like gemini-2.5-flash-image-preview is support batch api
But when I try it , then get the below error.
google.genai.errors.ClientError: 404 NOT_FOUND. {‘error’: {‘code’: 404, ‘message’: ‘models/gemini-2.5-flash-image-preview is not found for API version v1beta, or is not supported for batchGenerateContent. Call ListModels to see the list of available models and their supported methods.’, ‘status’: ‘NOT_FOUND’}}
And then try to get model info, supported_actions=[‘generateContent’, ‘countTokens’]
model_info = client.models.get(model="gemini-2.5-flash-image-preview")
logger.info("res : {}", model_info)
result:name='models/gemini-2.5-flash-image-preview' display_name='Nano Banana' description='Gemini 2.5 Flash Preview Image' version='2.0' endpoints=None labels=None tuned_model_info=TunedModelInfo() input_token_limit=32768 output_token_limit=8192 supported_actions=[**'generateContent', 'countTokens'**] default_checkpoint_id=None checkpoints=None
so do gemini-2.5-flash-image-preview support batch api?
