xAI API error
xAI API 404 Not Found: what it means and how to fix it
404 Not FoundRetry? Not statedLast verified 1 documented fix1 source
What it means
Returned on all endpoints when the model named in a POST body was not found or the endpoint URL is invalid.
Causes
- A model specified in a POST request body was not found
- The endpoint URL is invalid (misspelled URL)
How to fix it
- Fix 1.
Check your request body and endpoint URL against the API Reference.
More xAI API errors
All 18 xAI 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? NoGemini API404 model_not_foundRetry? NoGemini API404 NOT_FOUNDRetry? NoGemini API404 Not FoundRetry? Not statedGroq API404 Not foundRetry? Not statedMistral API404 NotFoundErrorRetry? Not statedOpenAI API404 image_not_foundRetry? Not statedOpenRouter
FAQ
What does the xAI API error "404 Not Found" mean?
Returned on all endpoints when the model named in a POST body was not found or the endpoint URL is invalid.
How do I fix xAI API "404 Not Found"?
Check your request body and endpoint URL against the API Reference.
Should I retry xAI API "404 Not Found"?
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), OpenAI API (404 NotFoundError), OpenRouter (404 image_not_found; 404 not_found), Vertex AI (404 NOT_FOUND).
Sources
Last verified against 1 source: xAI API's official docs and official SDK repositories.
Newsletter
Know when the APIs change
One email per week. New model releases, API changes, what broke, and how developers are working around it.