Hello, I am using a Paid API key with a $10 credit balance. I am trying to access gemini-1.5-flash using the @google/generative-ai SDK (v1beta) in a React Native/Expo project.
The Error: [GoogleGenerativeAI Error]: Error fetching from https://generativelanguage.googleapis.com/v1beta/models/gemini-1.5-flash:generateContent: [404] models/gemini-1.5-flash is not found for API version v1beta
Status:
-
API Key is active.
-
Billing is enabled with sufficient credit.
-
The model is visible and working in my Google AI Studio.
Why am I getting a 404 error through the SDK? Any help would be appreciated.