Google Gemini API Errors — Complete Fix Directory
Every Gemini error, decoded and fixed. Gemini 2.5 Pro, 2.5 Flash, thinking mode, context caching, safety filters, Vertex AI vs AI Studio. Tested against the live API, November 2026.
15
Error pages live
7
Categories covered
2
Deployment paths
Nov 2026
Last tested
gemini-2.5-pro
gemini-2.5-flash
gemini-2.5-flash-lite
gemini-2.0-flash
gemini-embedding-001
text-embedding-004
Two deployment paths, same models
Google AI Studio (generativelanguage.googleapis.com): API-key based, fast prototyping, free tier available. Simpler auth, works from anywhere.
Vertex AI (aiplatform.googleapis.com): Google Cloud IAM, enterprise controls, regional endpoints, VPC-SC support. Requires GCP project + service account.
Many errors are path-specific — check which you're using before searching for a fix.
Q
Quota & Authentication
Rate limits, model availability, API key issues
429 RESOURCE_EXHAUSTED
Quota Exceeded (429)
RPM, TPM, RPD limits. Free vs paid tier quotas, backoff strategies, quota project mapping.
404 NOT_FOUND
Model Not Available in Region
Vertex AI regional availability. Model rollout gaps, endpoint routing.
403 PERMISSION_DENIED
API Key Invalid or Restricted
Referrer/IP restrictions, expired keys, API not enabled, AI Studio vs Vertex confusion.
F
Function Calling & Controlled Generation
Tool schemas, response_schema, JSON mode
S
Safety Filters
Content policy, harm categories, threshold tuning
T
Thinking Mode (Gemini 2.5)
thinking_budget, reasoning tokens, model support
C
Context & Caching
Long context, cached content, token counting
M
Multimodal Inputs
Video, image, audio processing
V
Vertex AI vs AI Studio
Auth, endpoints, feature parity gaps
Ship Gemini Integrations That Don't Break
Weekly deep dives on Gemini 2.5, Vertex AI, thinking mode, and production reliability. 12,000+ developers subscribe.
Subscribe Free →