OpenAI API error
OpenAI API 404 NotFoundError: what it means and how to fix it
404 NotFoundErrorRetry? Not statedLast verified 1 documented fix2 sources
What it means
Python library error for 404 responses: the requested resource does not exist.
Causes
- Incorrect resource identifier
How to fix it
- Fix 1.
Ensure you are using the correct resource identifier.
More OpenAI API errors
All 23 OpenAI API errors400 invalid_request_error (Invalid service_tier argument)Retry? Not stated401 Invalid AuthenticationRetry? Not stated401 Incorrect API key providedRetry? Not stated401 You must be a member of an organization to use the APIRetry? Not stated401 IP not authorizedRetry? Not stated403 Country, region, or territory not supportedRetry? Not stated429 credit_balance_exhaustedRetry? No429 Rate limit reached for requestsRetry? Yes
HTTP 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? NoGemini API404 model_not_foundRetry? NoGemini API404 NOT_FOUNDRetry? NoGemini API404 Not FoundRetry? Not statedGroq API404 Not foundRetry? Not statedMistral API404 image_not_foundRetry? Not statedOpenRouter404 not_foundRetry? Not statedOpenRouter
FAQ
What does the OpenAI API error "404 NotFoundError" mean?
Python library error for 404 responses: the requested resource does not exist.
How do I fix OpenAI API "404 NotFoundError"?
Ensure you are using the correct resource identifier.
Should I retry OpenAI API "404 NotFoundError"?
Not stated. The official docs do not say whether this error is retryable.
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), Gemini API (404 not_found; 404 model_not_found; 404 NOT_FOUND), Groq API (404 Not Found), Mistral API (404 Not found), OpenRouter (404 image_not_found; 404 not_found), Vertex AI (404 NOT_FOUND), xAI API (404 Not Found).
Sources
Last verified against 2 sources: OpenAI API's official docs and official SDK repositories.
- developers.openai.comhttps://developers.openai.com/api/docs/guides/error-codes
- github.comhttps://github.com/openai/openai-python/blob/main/README.md
Newsletter
Know when the APIs change
One email per week. New model releases, API changes, what broke, and how developers are working around it.