Hi all — I'm running OpenClaw 2026.3.2 on a Mac Mini and trying to use Google Gemini as my primary model. My API key is from Google AI Studio and I've confirmed it has access to gemini-2.0-flash-lite and gemini-2.0-flash (verified via curl against the models endpoint — both appear in the response).
However, every request OpenClaw makes to Google fails with:
error: LLM error: { code: 404, message: "This model models/gemini-2.0-flash-lite is no longer available to new users. Please update your code to use a newer model", status: NOT_FOUND }
My openclaw.json config:
"model": {
"primary": "google/gemini-2.0-flash-lite",
"fallbacks": ["openai/gpt-4o-mini"]
}
I've also tried google/gemini-2.0-flash — same error.
GPT-4o-mini fallback works fine, so auth is configured correctly for OpenAI. Google auth is set up in auth-profiles.json with google:default profile.
Questions:
- Is there a specific model string format OpenClaw expects for Google/Gemini models?
- Does OpenClaw use the native Google API endpoint or an OpenAI-compatible wrapper for Google models?
- Any known issues with AI Studio keys vs Google Cloud keys?
Thanks!