Home → Help
404 page not found{"error":{"message":"Invalid URL (GET /v1/chat/completions)"}}NotFoundError: Error code: 404This catches people out during debugging more than in production. You paste the URL into a browser, or into a tool that defaults to GET, see a 404, and conclude the endpoint is down. The endpoint is fine; it simply has no GET handler.
It is easy to verify: a path that genuinely does not exist and a path that exists but rejects your method both return 404, but only one of them changes behaviour when you switch to POST.
Send the same path twice, once each way, and compare:
# GET — expect 404 even on a healthy endpoint
curl -s -o /dev/null -w 'GET %{http_code}\n' \
'YOUR_BASE_URL/chat/completions'
# POST with a deliberately bad key — expect 401
curl -s -o /dev/null -w 'POST %{http_code}\n' -X POST \
'YOUR_BASE_URL/chat/completions' \
-H 'Authorization: Bearer invalid' \
-H 'Content-Type: application/json' -d '{}'
GET 404 followed by POST 401 means the endpoint is healthy and you were testing it the wrong way. Two 404s means the path really is wrong.
GET /v1/chat/completions returns 404 and POST returns a JSON error until you supply a valid key. Endpoints and examples are in the quickstart.Last checked 2026-08-24. Written from problems diagnosed on a live OpenAI-compatible gateway, not collected from other sites.