Gemini-2.5-flash-image-preview don't support battch api

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?

1 Like

I’m facing exactly the same issue…

Hi @Neal.Zhu @loongdi,

You are right.. As of today Gemini-2.5-flash-image-preview don’t support batch mode.

Here is the documentation for reference

@Krish_Varnakavi1 Is there any rough estimate of when it will support batch mode?

Hi @loongdi,

I don’t have a timeline but keep following our Release Notes page for latest updates and releases.

hi @Krish_Varnakavi1 with the GA release of this model, and using also the URL link you gave previously to check availability of batch mode (where it now says Supported), I’m still getting this error
google.genai.errors.ClientError: 404 NOT_FOUND. {‘error’: {‘code’: 404, ‘message’: ‘models/gemini-2.5-flash-image 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’}}

Any idea?