¿Alguno tuvo problemas al generar la clave, porque estoy en un bucle.
429 RESOURCE_EXHAUSTED con el plan free_tier y limit: 0. Esto confirma al 100% que el servidor de Google está ignorando cualquier intento de uso gratuito desde tu ubicación actual debido a las restricciones regionales de la plataforma.
'GenerateRequestsPerDayPerProjectPerModel-FreeTier', 'quotaDimensions': {'location': 'global', 'model': 'gemini-2.0-flash'}}, {'quotaMetric': 'generativelanguage.googleapis.com/generate_content_free_tier_requests', 'quotaId': 'GenerateRequestsPerMinutePerProjectPerModel-FreeTier', 'quotaDimensions': {'location': 'global', 'model': 'gemini-2.0-flash'}}, {'quotaMetric': 'generativelanguage.googleapis.com/generate_content_free_tier_input_token_count', 'quotaId': 'GenerateContentInputTokensPerModelPerMinute-FreeTier', 'quotaDimensions': {'location': 'global', 'model': 'gemini-2.0-flash'}}]}, {'@type': 'type.googleapis.com/google.rpc.RetryInfo', 'retryDelay': '43s'}]}}
Hay que tener en cuenta que no se pueden usar api key en mi zona geografica (Argentina). Lo pude revertir, fue un poco dificil, modificar el codigo para que solo lea IPv4, usar un VPN, usar en my_models.py = "gemini-2.5-flash-lite" y obteve:
content='The image is a line graph showing the percentage of the population with smartphones from 2010 to 2020. The x-axis represents the year, and the y-axis represents the percentage. The line starts at about 15% in 2010 and steadily increases to about 90% in 2020. The title of the graph is "PORCENTAJE DE LA POBLACIÓN CON TELÉFONOS INTELIGENTES (2010 - 2020)".' additional_kwargs={} response_metadata={'finish_reason': 'STOP', 'model_name': 'gemini-2.5-flash-lite', 'safety_ratings': [], 'model_provider': 'google_genai'} id='lc_run--019eae20-7ac2-7f80-9cb1-41b010305e19-0' tool_calls=[] invalid_tool_calls=[] usage_metadata={'input_tokens': 266, 'output_tokens': 111, 'total_tokens': 377, 'input_token_details': {'cache_read': 0}}