Hi!
According to the blog Gemini could understand videos longer than hour if mediaResolution parameter is set to ‘low’.
When I try to do that, it returns “{‘error’: {‘code’: 400, ‘message’: ‘Please use fewer than 3600 images in your request to models/gemini-2.5-pro-preview-03-25’, ‘status’: ‘INVALID_ARGUMENT’}}”.
What is the problem?
response = client.models.generate_content(
model=model_name,
contents=content_input, # Pass the list of Parts directly
config=types.GenerateContentConfig(
mediaResolution='MEDIA_RESOLUTION_LOW'
)
)