Fix Gemini API Billing Not Enabled 403 Error
Updated 11/2/2026
When developing with the Gemini API, encountering a 403 error with the message Billing is not enabled for this project or API_KEY_SERVICE_BLOCKED means your API requests have been halted. This error occurs when you exceed the limits of the Gemini free tier, or when you attempt to use features, high-rate limits, or models that require a paid plan.
To restore your API access, you must link an active Google Cloud Platform (GCP) billing account to the specific project hosting your API credentials. Follow these steps to resolve the issue.
1. Upgrade Your Google AI Studio Account If you generated your API key through Google AI Studio, your project defaults to the Free Tier. To resolve billing errors, you must manually opt into the Pay-As-You-Go plan.
- Open [Google AI Studio](https://aistudio.google.com/) and sign in with the Google account associated with your API key.
- Click on the Settings (gear icon) in the bottom-left corner of the sidebar, or click Get API Key at the top.
- Locate the project associated with your active API key.
- Click Upgrade to pay-as-you-go next to the project name.
- You will be redirected to the Google Cloud Console. Select an existing billing account or click Create Billing Account to add a valid credit card.
- Once billing is linked, return to AI Studio to confirm your plan status has updated from "Free Tier" to "Pay-as-you-go".
Agent Builder turns a task you repeat into a reusable assistant with setup text for each app.
Tickd is independent and not affiliated with any AI company.
2. Link a Billing Account in Google Cloud Console If you are using Vertex AI or managed GCP service accounts, you must verify that the specific Google Cloud project has an active billing account linked.
- Navigate to the [Google Cloud Console Billing Page](https://console.cloud.google.com/billing).
- Use the project selector dropdown at the top of the screen to select the exact project where your Gemini API credentials reside.
- If billing is disabled, you will see a prompt stating "This project has no billing account." Click Link a billing account.
- Select your active billing profile and confirm the action.
- If you do not have a billing profile, click Manage billing accounts > Add billing account, fill out your payment details, and then link it to your project.
3. Verify the Generative Language API is Enabled Sometimes billing is active, but the underlying API service is disabled or blocked.
- Go to the [Google Cloud API Library](https://console.cloud.google.com/apis/library).
- Ensure your correct project is selected in the top navigation bar.
- Search for Generative Language API (if using AI Studio keys) or Vertex AI API (if integration is built directly on Vertex AI).
- Click on the API from the search results.
- If the status button says Enable, click it. If it says Manage, the API is already enabled.
4. Check for Suspended Billing Accounts If you have previously linked a billing account, the API may throw a billing error if your payment method has expired, failed, or been flagged.
- Go to the GCP Console and open Billing > My Billing Accounts.
- Look for any red warning banners or statuses indicating "Suspended" or "Closed".
- Click on the billing account and navigate to Payment Method.
- Update any expired credit cards, resolve outstanding balances, or add a backup payment option.
- Once payment is successfully processed, Google will automatically re-enable your API quota, though propagation can take up to 20 minutes.
5. Handle SDK and Environment Caching After enabling billing in the console, your local development environment or SDK might still throw cached 403 errors for a short period.
- Restart local servers: Clear any local cache by restarting your Node.js, Python, or terminal environment.
- Generate a new key: If the error persists after 15 minutes, go back to Google AI Studio, delete your old API key, and generate a new one under the newly upgraded billing project. Use this new key in your environment variables.
When to escalate If you have linked a valid, active credit card, verified that the Generative Language API is enabled, and waited at least 1 hour but still receive the billing error, escalate to Google support. Open the [Google Cloud Console Support Center](https://console.cloud.google.com/support) or visit the Google AI Developer Forums to check for active service outages affecting billing sync services.
Once it's working again, two free Tickd tools can help: AI Setup Profile writes setup text for Gemini so you repeat yourself less, and Agent Builder turns a repeat task into a reusable assistant.