You are correct, free Gemini is storing the data to train models, paid does not. Store data is not connected to your Google account, so unless it contains identifying info it is anonymous. If you’re regularly submitting PII to Gemini, check out the OptiLLM proxy. You run it locally and it can anonymize PII on the way out and deanonimize on the way back. Answer from GimmePanties on reddit.com
🌐
Reddit
reddit.com › r/chatgptcoding › a simple guide to setting up gemini 2.5 pro, free, without running into 3rd party rate limits
r/ChatGPTCoding on Reddit: A simple guide to setting up Gemini 2.5 Pro, free, without running into 3rd party rate limits
April 4, 2025 -

EDIT May 12: Google added new rate limits to AI studio this morning, 25 RPD, so this is effectively no longer working. We had a good run!
EDIT: The Open Router integration and google ai studio key method seems like the easiest way that works for everyone, especially if you already have an openrouter account. Pasting that method here for visibility:

  1. Get a Google AI Studio API key from https://aistudio.google.com/apikey

  2. Plug that API key into the Google AI Studio integration on https://openrouter.ai/settings/integrations, select enabled but not "Use as fallback"

  3. You can now use your Openrouter key anywhere and as long as you select Gemini 2.5 Pro Experimental as your model, it will use your key. (4. If you also add a GCP key and have Vertex AI enabled for the project, obtained as per the instructions below, you can add that to your integrations as well, and you will have two sources of 2.5 Pro backing your Openrouter calls.)

Hey all,
After dealing with Openrouter and Requesty giving me constant rate limits for Gemini 2.5 Pro, I got frustrated and decided to get things set up directly through Google's APIs. I have now sent over 60 million tokens in a single day without hitting any rate limits, all for $0—an equivalent usage with Claude would have cost $180. I also had a few other engineers confirm these steps. Here's how to do it and then integrate with Roo Code--but this should work for other tools like Cline, too:

Setting Up Google Cloud

  1. Create or log into your Google Cloud account.

  2. Open the Google Cloud Console.

  3. Create a new Google Cloud project (I named mine "Roo Code").

  4. Enable billing for your newly created Google Cloud project.

  5. Enable the Vertex AI API.

  6. Enable the Gemini API from the API overview page.

  7. In your project dashboard, navigate to APIs & Services → Credentials.

  8. Click "Create Credentials" → "API Key".

  9. Copy the generated API key and save it securely.

Integrating with Your IDE (Example: Roo Code)

  1. In VSCode or Cursor, navigate to the extensions marketplace (Shift + Cmd + X on Mac), search for and install "Roo Code" (or your preferred tool like Cline).

  2. Open Roo Code (Cmd + Shift + P, then type "View: Show Roo Code").

  3. Click to configure a new API provider, selecting "Google Gemini".

  4. Paste the API key you saved earlier into the API key field.

  5. Select "google/gemini-2.5-pro-exp-03-25:free" as the model.

  6. Click Save.

There you go! Happy coding. Let me know if you run into any issues.

Edit: looks like some are having issues. A few ideas/alternatives:

  1. Use a Vertex api key, but gemini api as provider in Roo Code. There is only one key, ignore this alternative.

  2. Use vertex api as the provider in Roo Code--its just a little more complicated, you'll have to create a service account in the credentials page of the project, and paste the json in Roo Code when configuring the provider

  3. If you have an OpenRouter account, you can go to the integrations page https://openrouter.ai/settings/integrations and add your vertex api key to the google vertex integration. You can also add a google ai studio api key to the Google AI Studio integration. In each setting window where you add the key, make sure it is enabled. Then, in Roo Code, you use your openrouter account, but whenever it uses Gemini 2.5 pro free, it will default to your API key, not one of theirs which is being rotated among many users.

🌐
Reddit
reddit.com › r/localllama › since gemini top llms api is free, is privacy not respected at all?
r/LocalLLaMA on Reddit: Since Gemini top LLMs API is free, is privacy not respected at all?
December 23, 2024 -

I've been using Gemini 2.0 Flash and 2.0 Flash Thinking through third-party software AI providers like ChatLLM, which accesses these models via API. While these providers promise privacy, I'm still concerned about Google's role. If the underlying API is free, does that mean Google is extensively using our data for training and other purposes, regardless of what the third-party provider claims? What are your thoughts on this? Are there any ways to mitigate the risks, especially when using these APIs through intermediaries?

Gemini 1.5 APIs are not free. So, I would respect Google to respect user privacy for the 1.5 LLMs.

There are not paid versions of Gemini 2.0 Flash and 2.0 Flash Thinking at the moment. I can't pay even if I want to.

🌐
Reddit
reddit.com › r/artificialinteligence › google gemini api key for free
r/ArtificialInteligence on Reddit: Google Gemini API key for free
May 2, 2024 -

Checkout this short tutorial on how to generate you r Google Gemini model API key for free and codes to use it with any language : https://youtu.be/J8ksL3oqqUE?si=cEFBUzfE4ZPmUtE-

Top answer
1 of 4
1
Welcome to the r/ArtificialIntelligence gateway Educational Resources Posting Guidelines Please use the following guidelines in current and future posts: Post must be greater than 100 characters - the more detail, the better. If asking for educational resources, please be as descriptive as you can. If providing educational resources, please give simplified description, if possible. Provide links to video, juypter, collab notebooks, repositories, etc in the post body. Thanks - please let mods know if you have any questions / comments / etc I am a bot, and this action was performed automatically. Please contact the moderators of this subreddit if you have any questions or concerns.
2 of 4
1
Gemini is the most advanced and largest AI model developed by Google to date. It has been designed to be highly flexible so that it can operate efficiently on a wide range of systems, from data centers to mobile devices. This means that it has the potential to revolutionize the way in which businesses and developers can build and scale AI applications. Here are three versions of the Gemini model designed for different use cases: Gemini Ultra: Largest and most advanced AI capable of performing complex tasks. Gemini Pro: A balanced model that has good performance and scalability. Gemini Nano: Most efficient for mobile devices. API keys can be created by visiting the API settings page and clicking “Create a new API Key”. You will then be prompted with your new keys, as well as a menu to assign the role for the key.
🌐
Reddit
reddit.com › r/n8n › does google gemini provide a free api? if so, what are the requirements?
r/n8n on Reddit: Does Google Gemini provide a free API? If so, what are the requirements?
March 26, 2025 - It does provide one and you can use it as the ai agent, but when you use tools you need to set up oauth in google dev console ... I have completed the process. Also, add the API to the Gemini Chat credentials, as this is the primary issue when ...
🌐
Reddit
reddit.com › r/githubcopilot › free gemini 2.5 pro is back in the api! 100req/day of gemini pro 2.5 inside copilot chat extension. thanks google!
r/GithubCopilot on Reddit: Free Gemini 2.5 pro is back in the API! 100req/day of Gemini Pro 2.5 inside Copilot chat extension. Thanks Google!
June 26, 2025 -

As everyone know, Copilot limit the premium models to 300 request/month. Google on the other hand is looking to expend their business and are now offering 100 request per day for free of Gemini 2.5 Pro on their API. It's back on the free tier!

  • 100 RPD (Request Per Day) for Gemini 2.5 Pro

  • 250 RPD for Gemini 2.5 Flash. (It was 500 until now, so they lowered that, but that model is mostly 4.1 intelligence level, maybe slightly above or below depending on the language. And 250 per day is already more than enough.)

https://ai.google.dev/gemini-api/docs/rate-limits

Update: Now they updated the model in the list, just go to the Manage Models... in the model selector and click Gemini, enter your API key from Google AI Studio, select both Pro and Flash and you are good to go.

Make sure you use Gemini 2.5 Pro at the bottom of the list, if not, it count toward your 300 requests.

The model is much smarter than the free 4.1. So that's ~3000 request per month + your 300 premium that you can keep for Sonnet 4. I hope it helps someone. I will surely use that most of the time now instead of the 4.1.

Find elsewhere
🌐
Reddit
reddit.com › r/bard › best free gemini api model – any recommendations?
r/Bard on Reddit: Best Free Gemini API Model – Any Recommendations?
February 8, 2025 -

Hey folks,

I’m looking for the best free way to access the Gemini API. I know Google offers a free tier via AI Studio, but are there any better options?

🌐
Reddit
reddit.com › r/homeassistant › gemini ai no longer free - what's everyones plan?
r/homeassistant on Reddit: Gemini AI No Longer Free - What's Everyones Plan?
2 weeks ago -

Gemini Free Tier is now down to 20 requests per day, which is essentially unusable for most of us. You might see the same thing in your logs (see below):

I can't see waht the paid tied gives us in terms of increasing requests, so if anyone has a link to that page, please add it in the comments.

Either way, what are our options? Can we do this locally? Is there another more cost effective option than a paid Google AI tier? Anyone tried the paid tier - how many requests does it give and how much is it?

If you do AI locally - please point me in the right direction on how to do this (currently using Rpi for HA)

UPDATE: So far Gemini paid tier is costing around 1p per day.

"error": { "code": 429, "message": "You exceeded your current quota, please check your plan and billing details. For more information on this error, head to: https://ai.google.dev/gemini-api/docs/rate-limits. To monitor your current usage, head to: https://ai.dev/usage?tab=rate-limit. \n* Quota exceeded for metric: generativelanguage.googleapis.com/generate_content_free_tier_requests, limit: 20, model: gemini-2.5-flash..
🌐
Reddit
reddit.com › r/googlegeminiai › gemini api billing - does enabling paid tier eliminate free usage?
r/GoogleGeminiAI on Reddit: Gemini API billing - does enabling paid tier eliminate free usage?
May 29, 2025 -

I'm considering enabling billing for the Gemini API because free tier won't be able to use pro models anymore.

My main questions: Does the paid tier still include any free usage allowance (eg. free for anything within the free tier rate limit, only pay for things above the free tier rate limit), or does everything become billable once you enable billing?

🌐
Reddit
reddit.com › r/geminiai › need help: gemini api and their stupid pricing
r/GeminiAI on Reddit: Need help: Gemini API and their stupid pricing
October 15, 2024 -

I really tried as hard as I can, but I can not find a way how to calculate price of single response I receive from Gemini API.

This page: Gemini API Pricing | Google AI for Developers

What does "context caching" stands for? For reading cached tokens? Also, how cache creation is billed? Do you pay for whole time-to-live when you create cache or you are billed as time passes? Do you pay for cache writing operation also or only for storage?

If you are Google employee reading this, tell your bosses that working with Gemini API is most painful among all API providers. Especially this stupid billing account relation, I have never experienced such bullshit billing system. Also, explanation on how to calculate price of one API response is lowest level bullshit. Thank you.

Top answer
1 of 1
3
It's the same as with every LLM API. You could've asked Gemini to explain like a 5 year old: The Google Gemini API has a pricing structure that can seem a bit complex at first, but it essentially boils down to paying for what you use. Here's a breakdown: Two Tiers: Free Tier: This is like a trial version. You can use Gemini for free, but there are limits on how much you can use it. It's great for testing and trying out the API. Paid Tier: This gives you full access to Gemini's power with higher usage limits. You pay for what you use, similar to how you pay for electricity or mobile data. What you pay for: Input Tokens: Every word, number, or symbol you send to Gemini is an input token. Output Tokens: Every word, number, or symbol Gemini sends back in response is an output token. Context Caching: This is like Gemini's memory. If you want it to remember past conversations, you pay a small fee to store that information. How much does it cost? The exact cost depends on which Gemini model you use and how many tokens you need. Input tokens can range from $0.075 to $3.50 per 1 million tokens. Output tokens are typically more expensive, ranging from $0.30 to $10.50 per 1 million tokens. Context caching also varies in price. Think of it like this: Imagine you're sending a letter. You pay for the paper (input tokens), the stamp (output tokens), and maybe a special envelope if you want to send something fragile (context caching). The bigger and heavier the letter, the more it costs to send. Where to find the details: Google provides detailed pricing information on their website. You can find the latest pricing for each Gemini model and feature there. Key takeaway: Google Gemini API pricing is based on usage. You have the flexibility to use the free tier for testing or choose the paid tier for more demanding applications. Just remember that the more you use, the more it costs. Gemini API Pricing  |  Google AI for Developers Or you could do simple google search to find this: Context caching  |  Gemini API  |  Google AI for Developers
🌐
Reddit
reddit.com › r/googlecloud › does gemini for google cloud api have a free tier?
r/googlecloud on Reddit: Does Gemini for Google Cloud API have a free tier?
October 10, 2024 -

Since a lot of AI-related features on GCP ask for this API, I just wanna double check if it has a free tier quota for testing before enabling it.

I checked this page https://cloud.google.com/free/docs/free-cloud-features , but Gemini for Google Cloud is not in it.

🌐
Reddit
reddit.com › r/googlegeminiai › [help] using gemini api for free
r/GoogleGeminiAI on Reddit: [Help] Using gemini API for free
January 7, 2025 -

hey guys, very simple questions but I'm kinda lost, can I call a prompt in python through the gemini API, all free? that is no subscription, billing, etc. and if so what are the limits? my use case would be very low number of requests, like 10 per day max, and the tokes for the prompt and response wouldn't be much more than 100

thanks in advance!

🌐
Reddit
reddit.com › r/localllama › gemini pro api is available for free
r/LocalLLaMA on Reddit: Gemini pro api is available for free
December 13, 2023 -

Max requests are 60 per minute: https://blog.google/technology/ai/gemini-api-developers-cloud/

Costs early next year:

Limited to these countries: https://support.google.com/bard/answer/14294096?hl=en ?

Function calling supported: https://twitter.com/sundarpichai/status/1734952757722001626

🌐
Reddit
reddit.com › r/googlegeminiai › can you use gemini 1.5 pro with pay-as-you-go ?
r/GoogleGeminiAI on Reddit: Can you use Gemini 1.5 Pro with pay-as-you-go ?
May 21, 2024 -

I have set up my ai studio account to use gemini 1.5 pro over the api, after a long time of trying to figure out and not go crazy due to the google's ecosystem, I managed to set it up and it seems to be free but limited. I want to switch to pay as you go as it says on the gemini website but for the love of God I have no idea how, the whole google services ecosystem is so ridiculously complicated that I almost want to throw it all away. Make an account here, give some weird permissions there, add credit card in another place, set up some kind of billing account in a completely different place... I ended up having like 10 tabs open just to get an api key working... Some info on the Gemini Website says you can use pay-as-you-go, in another place says it's coming in the future and in Google Cloud everything is set up but you can’t understand anything, when will it be billed, how it will be billed... I am lost...

I would love if they just made it clear and added everything regarding my billing and usage and everything in the AI Studio the way OpenAI and Anthropic does. I know they have a big ecosystem and all kinds of guardrails and security measures, but some effort on their part is needed... this is insane

Top answer
1 of 8
3
I feel you haha. They need to massively simplify things if they want more people to stick with it. Working with the openai api so much easier it’s not even close, which is a shame because Gemini seems like a good product. I was the google ai studio right for the google hackathon and I have no clue or why the API key is still working. I think they keep delaying billing but there is no way I am putting my credit card into it. The usage interface is terrible and is buried with pages of google workspace stuff. They need to split it off it’s it’s own thing similar to openai and anthropic. Doesnt help that they have google vertex ai and the google ai studio though either…
2 of 8
2
There are 2 sets of APIs for Gemini - AI Studio and Vertex AI (it's trivializing it a bit - but this point is important). Both are powered by the same Google Cloud Platform (GCP) backend - things like projects, billing accounts, billing profiles, cloud tenants, etc... AI Studio intended for developers to experiment with, it has a different ToS and is slightly cheaper. Vertex AI is for cloud customers - more expensive as Vertex AI is part of GCP offerings that include variety of other services that can be used with Gemini or other generative AI models from the Model Garden (part of Vertex AI) to build and run appllications and services. When setting up AI Studio APIs, the API key and the billing system are provided by GCP - which is indeed a sprawling ecosystem. Once you suffer through some of the unfamiliar steps to get the project (it's automatically created for you when you create API keys) and walk through the GCP wizard to "Add Billing Account" is the final unfamiliar step - you will be back in the AI Studio interface which is fairly straightforward (save for the time when your credit card expires and you have to go back into GCP and update it).
🌐
Reddit
reddit.com › r/googlegeminiai › gemini 2.5 pro api - why is it not charging money?
r/GoogleGeminiAI on Reddit: Gemini 2.5 Pro API - why is it not charging money?
March 31, 2025 -

I created an API in Google AI Studio and created a Google Cloud Account with it. So i made my first tests in RooCode with around 400k Tokens. Issue: why is the billing amount not moving? Still sitting at 0$. Iam confused about the pricing of 2.5 Pro in general.

Or is the API currently free? I dont get it