Google Gemini API error
Gemini API 404 model_not_found: what it means and how to fix it
404 model_not_foundRetry? NoLast verified 1 documented fix2 sources
What it means
The specified model was not found.
Causes
- Misspelled or unsupported model name
How to fix it
- Fix 1.
Verify the model name against the supported models page, or fall back to a different model.
More Gemini API errors
All 30 Gemini API errorsHTTP 404 at other providers
Compare 404 across providers404 ResourceNotFoundExceptionRetry? NoAmazon Bedrock404 FTUFormNotFilledRetry? Not statedAmazon Bedrock404 not_found_errorRetry? Not statedAnthropic API404 Not FoundRetry? Not statedAzure OpenAI404 Not FoundRetry? Not statedCohere API404 Not FoundRetry? Not statedGroq API404 Not foundRetry? Not statedMistral API404 NotFoundErrorRetry? Not statedOpenAI API404 image_not_foundRetry? Not statedOpenRouter404 not_foundRetry? Not statedOpenRouter404 NOT_FOUNDRetry? NoVertex AI404 Not FoundRetry? Not statedxAI API
FAQ
What does the Gemini API error "404 model_not_found" mean?
The specified model was not found.
How do I fix Gemini API "404 model_not_found"?
Verify the model name against the supported models page, or fall back to a different model.
Should I retry Gemini API "404 model_not_found"?
No. The official docs treat this error as not retryable: fix the cause before sending the request again.
Which other AI APIs return HTTP 404?
Per their official error docs: Amazon Bedrock (404 ResourceNotFoundException; 404 FTUFormNotFilled), Anthropic API (404 not_found_error), Azure OpenAI (404 Not Found), Cohere API (404 Not Found), Groq API (404 Not Found), Mistral API (404 Not found), OpenAI API (404 NotFoundError), OpenRouter (404 image_not_found; 404 not_found), Vertex AI (404 NOT_FOUND), xAI API (404 Not Found).
Sources
Last verified against 2 sources: Gemini API's official docs and official SDK repositories.
- ai.google.devhttps://ai.google.dev/gemini-api/docs/api-errors
- ai.google.devhttps://ai.google.dev/gemini-api/docs/troubleshooting
Newsletter
Know when the APIs change
One email per week. New model releases, API changes, what broke, and how developers are working around it.