did you try to use the gemini api then? this what you describe is what I did, but then api returns error that I reached the limit (on the first prompt)
I dont know if the solution with connecting to payment account is valid: this is what gemini told me when I descried problem using aistudio.google.com
> Click "Create API Key" button.
> Select project
> Copy key
No billing setup necessary.