Here are the most common API key issues:
- Model Access: Your key might not have access to Gemini Vision models. Make sure to enable the correct models in Google AI Studio.
- API Key Format: Make sure there are no extra spaces or invisible characters in your key. It should start with "AIza" and be about 39 characters long.
- API Quotas: You might have reached the free usage limits. Consider upgrading to a paid tier if you're using it heavily.
- Region Restrictions: Some regions have restrictions on AI services. Try using a VPN if you suspect this is the case.