Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Multiple API keys #5

Open
dronesflier opened this issue Dec 27, 2023 · 5 comments
Open

Multiple API keys #5

dronesflier opened this issue Dec 27, 2023 · 5 comments

Comments

@dronesflier
Copy link

Hi! This is a really cool project, but for us to get even close to the 250b token mark, we'd need a LOT of participants. I'm sure there are many willing to contribute idle cycles for these few API calls, but I'm quite doubtful this free Gemini spree will last long. So rather than adding many people, I'd suggest quickly implementing API key rotation into the script. @TanvirOnGH wrote a refactor that I would built off of.
Are there any potential issues/workarounds here (such as the difficulty of registering multiple accounts to a single phone number on google) that I should be aware of?

@dronesflier
Copy link
Author

It seems I'm having networking issues. ETA on making a pr is tomorrow.

@thooton
Copy link
Owner

thooton commented Dec 28, 2023

This is an awesome suggestion, thanks @dronesflier! Let me know what you think of #7.

Interestingly enough, it seems that the 60 requests/min limitation is applied per API key, not per Google account. Thus, you can perform as many requests per second as you have API keys. I'm at 5it/s with no issues currently.

@TanvirOnGH
Copy link
Contributor

TanvirOnGH commented Dec 28, 2023

I ran into issues using multiple api keys. Got temporarily suspended. Can't regen and use again. I was on 3it/s. #6 (comment)

@dronesflier
Copy link
Author

This is an awesome suggestion, thanks @dronesflier! Let me know what you think of #7.

Interestingly enough, it seems that the 60 requests/min limitation is applied per API key, not per Google account. Thus, you can perform as many requests per second as you have API keys. I'm at 5it/s with no issues currently.

This looks great! Thanks for implementing!

@thooton
Copy link
Owner

thooton commented Dec 28, 2023

Dang, you're right @TanvirOnGH - I'm running into the same issue.

I've worked around it at least temporarily by rotating my IP every 3 minutes, but it would be good to have a more permanent solution.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants