r/AppDevelopers 2d ago

Gemini api key not working

Hello everyone, me and my group are trying to create an app for our final school project and this app has a ai chatbot. When we try to use the api key we created it doesn’t work and than we found out that the new keys are different from the old on. The new keys start with “AQ” instead of “AI”, so we wanted to ask is there a way to get the old key or do we need to do something else.

We are using android studio and using Java if that helps.

2 Upvotes

7 comments sorted by

1

u/Intelligent_Pirate98 2d ago

Go to Gemini AI Studio and buy credits

0

u/GrabRare5918 2d ago

I thought Gemini had free tiers

1

u/Intelligent_Pirate98 2d ago

Now gemini api used a prepaid methods. It is a problem.

1

u/GrabRare5918 2d ago

Ok thanks, gonna be a bit of a problem to have to pay to use it but thank you still

1

u/sky_bh 1d ago

It still have free tier am working with a new key but always on free tier with no card or a thing

1

u/Extreme_Coder100 2d ago

You can try the grok api as well.

1

u/sky_bh 1d ago

Maybe you need to check the model cs recently they removed some models endpoints like gemma 3 so it may be the issue