Can't use any gemini model (don't have access)
What happened?
✕ [API Error: [{ "error": { "code": 400, "message": "You don't have access to this model or the model name is invalid", "errors": [ { "message": "You don't have access to this model or the model name is invalid", "domain": "global", "reason": "badRequest" } ], "status": "INVALID_ARGUMENT" } } ]]
What did you expect to happen?
That it works
Client information
- CLI Version: 0.19.1
- Git Commit: 6169ef04b
- Session ID: 7d319bd2-f532-4370-a527-9488d0158bb9
- Operating System: darwin v25.2.1
- Sandbox Environment: no sandbox
- Model Version: auto
- Memory Usage: 249.8 MB
Login information
No response
Anything else we need to know?
I'm a pro workspace user and i can't use gemini on any model on gemini-cli
Found possible duplicate issues:
- #13630
- #13371
If you believe this is not a duplicate, please remove the status/possible-duplicate label.
Hi @solimanbali-omedo, do you have an individual or enterprise subscription ? also which model are you trying to access gemini 3 ?
Same issue. Just started today on my Linux (Ubuntu 24.04) box. Still works in Windows with same account. I've tried removing, deleting installation, removing .gemini/ then reinstalling. same problem. I ran auth and switched to my work account and it works but my personal account only seems to work in Windows now.
Hi, I have an enterprise subscription i think, it's my enterprise account and i'm trying to get access to every model, i've tested with or without the preview access to gemini 3 but at first it was off and it was the same. Not a duplicate from what i can see
I have the same problem. I can't access any models 2.5 or 3. I've installed the latest version (0.19.4). I re-authenticated using "Login with Google" with my personal email with a google account.
Same. gemini-cli 0.19.3 + Google Workspace Business Standard.
Model auto, presumably one of Gemini 2.5 Pro or Flash. I tried selecting both and they both error out.
Same here on Ubuntu 24.04. Google workspace account doesn't work but my personal account works.
Same here on macOS
just install gemini cli today, logged in with my company email which have access to Gemini Pro. Tried to use Gemini Cli and got the error:
✕ [API Error: [{
"error": {
"code": 400,
"message": "You don't have access to this model or the model name is invalid",
"errors": [
{
"message": "You don't have access to this model or the model name is invalid",
"domain": "global",
"reason": "badRequest"
}
],
"status": "INVALID_ARGUMENT"
}
}
]]
Default option of /model is Auto, which does not work. I changed to other model manually, not working as well.
Here is the working solution for me (Google Business Standart - paid user)
Follow the steps below then restart gemini cli and try.
Configuring a Google Cloud Project for Gemini CLI
When signing in with your Google account, Gemini CLI may require you to configure a Google Cloud project. This applies if any of the following conditions are true:
- You are using a Company, School, or Google Workspace account.
- You are using a Gemini Code Assist license from the Google Developer Program.
- You are using a license from a Gemini Code Assist subscription.
Steps to Configure Gemini CLI for Google Cloud
1. Find Your Google Cloud Project ID
Locate the project ID of the Google Cloud project you want Gemini CLI to use.
2. Enable the Gemini for Cloud API
Enable the API in your Google Cloud Console so that Gemini CLI can access it.
3. Configure IAM Access Permissions
Ensure your account has the required IAM roles or permissions for Gemini CLI operations.
- To grant the IAM roles that are required to use Gemini, go to the IAM & Admin page.
- Go to IAM & Admin
- Click Grant access, and then enter the principal name for which you want to give access to Gemini.
- In the Grant access pane, click add Add another role.
- In Assign roles, select Gemini for Google Cloud User.
- Click Add roles and select Service Usage Consumer.
- Click Save.
4. Set Environment Variables
Configure your environment variables with the project ID. You may find it on header, using the button next to the "Google Cloud" logo or press CTRL + o keys. You will see the project ID on the project picker modal window.
Gemini CLI looks for variables in this order:
-
GOOGLE_CLOUD_PROJECT -
GOOGLE_CLOUD_PROJECT_ID
Set one of these environment variables to your project ID.
Example: Setting GOOGLE_CLOUD_PROJECT
# Replace YOUR_PROJECT_ID with your actual Google Cloud project ID
export GOOGLE_CLOUD_PROJECT="YOUR_PROJECT_ID"