One evening I was adding a summary feature to one of my apps and nearly pasted the key I had made in AI Studio straight into the production config. What stopped my hand was that the feature sent user review text as-is. I couldn't have told anyone what happens to text sent through a free key.
What I'd like to say first is that the Free/Paid difference is decided less by money than by three things: how your data is used, how limits are applied, and which models you can call. The prices keep moving; these three lenses don't, so they make a steadier base for deciding when to switch.
Scope: the official "Gemini Developer API pricing", "Rate limits", "Billing", and "Context caching" pages as of November 30, 2026. Prices are USD per 1M tokens.
Free vs Paid on one page
| Aspect | Free | Paid |
|---|---|---|
| Input/output price | Free (eligible models only) | Per-model pay-as-you-go |
| How your content is used | Used to improve Google's products ("Used to improve our products: Yes") | Not used ("No") |
| Models | Limited. Gemini 4 Carbon, Argon, and Neon are not on the free tier | Up to the most advanced models |
| Rate limits | Free tier limits | Tier 1–3, raised automatically with spend history |
| Grounding with Google Search / Maps | Not available | 5,000 free requests/month shared across Gemini 3 and newer, then $14 per 1,000 |
| Batch API | — | Half the standard price |
The heaviest row is the second. An earlier version of this article said switching to Paid "opts you out". More precisely, the pricing table ties it to the tier itself: Free says your content is used to improve products, Paid says it isn't. If your app sends users' words or images, that alone is a reason to go Paid, however small the user count.
Anything that sends my users' words runs on a paid-project key, even in a prototype. I now draw that line by who owns the data, not by scale.
Limits apply to the project, not the key
Rate limits are measured as requests per minute (RPM), input tokens per minute (TPM), and requests per day (RPD); exceeding any one returns a 429. The docs make two points I wish I'd known earlier:
- Limits are applied per project, not per API key.
- RPD resets at midnight Pacific time.
A common misreading: more keys mean more free quota
Two keys in the same project share one limit. If you want separate dev and production budgets, separate the projects, not the keys. The environment-variable key switch from my earlier version still works — but only when each key comes from a different project.
The actual RPM/RPD numbers shift automatically with your tier and account status, and the docs now point you to AI Studio for them, which is why I don't list numbers here. Check yours on the AI Studio rate limit page.
What switching to Paid changes — tiers and spend caps
| Tier | Qualification | Billing tier cap | Spend limit per 10 min |
|---|---|---|---|
| Free | Active project or free trial | — | — |
| Tier 1 | Set up and link a billing account | $250 | $10 |
| Tier 2 | $100 paid + 3 days since first payment | $2,000 | $200 |
| Tier 3 | $1,000 paid + 30 days since first payment | $20,000–$100,000+ | $200 |
The easy one to miss is the right-hand column. On Tier 1, if your spend over a rolling 10 minutes passes $10, you get 429 RESOURCE_EXHAUSTED even with RPM to spare. Parallel long-context jobs on Tier 1 are the classic way to hit it.
New billing setups are also directed to Prepay with a $5 minimum in credits. When the prepaid balance runs out, requests stop — which can look like a quota problem when it is really an empty balance.
Sorting out a 429
| Symptom | Likely cause | How to check | Fix |
|---|---|---|---|
| 429 every day after a few hours of use | RPD cap | RPD usage on the AI Studio rate limit page | Spread work around the Pacific-midnight reset, or go Paid |
| 429 only right after a burst | RPM/TPM cap | Per-minute graphs on the same page | Exponential backoff and lower concurrency |
| Paid, but 429 only on heavy jobs | 10-minute spend limit | Spend in the last 10 minutes and your tier | Shorter inputs or spread over time; request an increase if it's constant |
| Dev and prod keys choke together | Same project, shared limit | Which project issued each key | Split projects |
| One model can't be called at all | Not offered on the free tier | "Not available" in the pricing table's Free column | Go Paid, or pick a model with a free tier |
Model prices, framed for decisions
My earlier version listed 2.5-series prices, but the 2.5 models have an announced automatic reroute to successors from December 1. For decisions today, these three are a reasonable frame (Paid, standard, November 2026):
| Model | Input | Output (incl. thinking) | Free tier | Fits |
|---|---|---|---|---|
| gemini-3.5-flash-lite | $0.30 | $2.50 | Yes | High-volume classification, extraction, short replies |
| gemini-3.8-flash | $0.75 ($1.50 from Jan 1, 2027) | $3.75 ($7.50 from Jan 1, 2027) | Yes | Agents, long tasks, tool calling |
| gemini-4-hydrogen | $1.50 | $7.50 | Yes | Everyday coding and agents where accuracy matters more |
In one sentence: many short items → Flash-Lite; long procedures → 3.8 Flash; when a redo is expensive → Hydrogen. Note that 3.8 Flash's introductory price ends December 31 and both input and output double on January 1. A December estimate reused in January will be wrong, so I write estimates in two columns — covered in Writing a cost estimate that spans a price change.
The pricing notes also say every processed token is billed, including thinking tokens and the internal tool instructions and function declarations used for grounding. Since output costs several times input, trimming thinking pays off most in high-volume jobs.
Using the free tier well during development
The free tier often isn't right for production, but it is excellent for development. Two habits I keep:
First, separate a free project from a paid project. Switching keys only means something on top of that. With the current SDK (@google/genai):
// Dev uses the free project's key, production uses the paid project's key
import { GoogleGenAI } from "@google/genai";
const apiKey =
process.env.NODE_ENV === "production"
? process.env.GEMINI_API_KEY_PAID_PROJECT
: process.env.GEMINI_API_KEY_FREE_PROJECT;
export const ai = new GoogleGenAI({ apiKey });Second, when you test the same input repeatedly, store and reuse responses locally. It protects your RPD and makes tests steadier.
import { createHash } from "node:crypto";
import { ai } from "./client";
const devCache = new Map<string, string>(); // use SQLite or similar in practice
export async function generateDev(model: string, prompt: string) {
const key = createHash("sha256").update(`${model}:${prompt}`).digest("hex");
if (process.env.NODE_ENV !== "production" && devCache.has(key)) {
return devCache.get(key)!;
}
const res = await ai.models.generateContent({ model, contents: prompt });
const text = res.text ?? "";
devCache.set(key, text);
return text;
}Caching and batch — two ways to pay less
Implicit caching works without setup
On Gemini 2.5 and newer, implicit caching is on by default: when requests share a prefix and hit the cache, the discount is applied automatically. The minimum input size is 4,096 tokens on the Gemini 4 family and 3.8 Flash, and 2,048 on 2.5.
A common misreading: caching only works if you create a cache
My earlier version showed code that created an explicit cache. As of November 2026, the Interactions API and Gemini 4 models support implicit caching only; explicit caching isn't available there. If you need explicit caches, you use generateContent with supported 3.x or 2.5 models. The quicker win is usually to pin long system instructions and reference material at the start of the prompt so implicit caching can hit. How to check hits is in Gemini API caching strategy notes.
Send non-urgent work to batch
On Paid, the Batch API runs at half the standard price. Overnight classification or summarization can move there with no other change.
Three checks before production
First, log usage yourself. The response's usageMetadata carries input, output, thinking, and cached token counts.
const res = await ai.models.generateContent({ model: "gemini-3.8-flash", contents: prompt });
const u = res.usageMetadata;
console.log(JSON.stringify({
feature: "review-summary",
model: "gemini-3.8-flash",
input: u?.promptTokenCount,
output: u?.candidatesTokenCount,
thoughts: u?.thoughtsTokenCount,
cached: u?.cachedContentTokenCount,
at: new Date().toISOString(),
}));If cached stays at zero, suspect a prompt prefix that changes on every call.
Second, set your own budget ceiling. Tier caps and the 10-minute spend limit already exist, but a budget of your own keeps a late-night bug from draining the balance.
Third, estimate across December 31. If you use 3.8 Flash, plan January's bill at the doubled rate.
The next snag: designing 429 retries
After switching, the next wall is usually a 429. Separating retryable 429s from ones that waiting won't fix is covered in Gemini API rate limits and 429 handling notes. If you want to move from managing cost to designing revenue, see A Gemini API monetization roadmap for indie developers.
Where I draw the line
Looking back, my first stumble wasn't about price at all. I hadn't checked where text sent through a free key would go, and I was letting build speed win over that one question.
That feature shipped only after I set up a paid project. I think a few dollars of prepaid credit bought me something I could explain to my users.
Start by opening the AI Studio rate limit page and checking which tier your project is on right now.