Case study: one extra Base URL segment made every model return 404
A real incident showed why a complete endpoint cannot be pasted into a channel Base URL when the client appends its own path.
The symptom: every model returned 404
During an incident, several models on the same upstream channel returned a bare 404 Not Found. It looked like a model retirement or an unsupported model family, but every model failed in the same way.
When many models fail with the same 404 on one channel, suspect URL composition before model capability. The model ID usually changes a request-body field; a shared bad path affects all models at once.
OpenRouter's official documentation lists /api/v1/chat/completions for Chat Completions and /api/v1/responses for Responses1. If the channel client appends /v1/chat/completions, the Base URL must not already be a complete endpoint.
Investigation: inspect the final URL
1. Record the actual request path
Use a short request and record the URL, method, status, response body and request ID. The configured base_url is an input, not necessarily the URL sent over the network.
If the client behaves like this:
final URL = base_url + "/v1/chat/completions"
and the configuration is:
https://openrouter.ai/api/v1/responses
then the result may be:
https://openrouter.ai/api/v1/responses/v1/chat/completions
That is a path error, not a model error.
2. Identify the protocol before choosing the base
An OpenAI-style Chat Completions client should land on the Chat Completions path. A client that implements Responses should land on the Responses path. Their request bodies differ too: the former commonly uses messages, while the latter uses fields such as input.
Do not paste a complete Responses URL into a channel that appends Chat Completions. The fact that both interfaces return text does not make them interchangeable.
3. Reproduce with one variable at a time
Prepare one Base URL at the level expected by the client, one known-good model and the smallest request body. Change only one variable per test. If every model recovers after correcting the Base URL, the path is the likely cause. If the corrected path returns 403, investigate region, permission or policy instead of changing the URL again.
Root cause: “Base URL” has several meanings
Many dashboards use one label for three different values:
- Origin: protocol and host, such as
https://example.com.
- API root: a provider prefix, such as
https://openrouter.ai/api.
- Complete endpoint: a URL already ending in
/v1/chat/completionsor/v1/responses.
If gateway code appends the endpoint, it usually expects the first or second form. Only a client that posts the supplied URL unchanged can safely accept the third. Read the channel's request builder or inspect outbound logs; do not infer semantics from the field label.
The incident's shared 404 was useful evidence: the failure happened before model selection, and the model name was simply carried to a bad address.
Fix: correct the path level, then validate the protocol
- Export the channel configuration for rollback.
- Confirm which endpoint the client appends.
- Set the Base URL to a level that will not be duplicated.
- Send a minimal request with one ordinary model.
- Check final URL, body, status, response and usage.
- Validate the other models one by one.
- If 404 becomes 403, investigate region, permission and policy; stop changing the URL.
A correct Base URL only fixes path composition. It does not solve regional restrictions, unsupported protocols, batch incompatibility or insufficient balance. Keep the original response for each class of error.
Self-checklist
- [ ] Did you paste a complete
/v1/chat/completionspath into Base URL? - [ ] Does the client append
/v1/chat/completionsautomatically? - [ ] Is the request using Chat Completions or Responses?
- [ ] Did you record the final URL, not only the dashboard value?
- [ ] Did you test a minimal request?
- [ ] Did you separate 404, 403, 429 and 5xx after the fix?
- [ ] Did you avoid switching models or retrying before confirming the protocol?
- [ ] Did you preserve a rollback configuration?
A Base URL is not just a URL that opens in a browser. It must match the client's path composition and protocol.
1: OpenRouter, API Reference Overview. The official page lists /api/v1/chat/completions for Chat Completions and /api/v1/responses for Responses: https://openrouter.ai/docs/api-reference/overview
Sources & attribution
This article references the public materials listed below. Analysis and wording are SalpX's own; quoted material remains the property of its original authors and publishers.
- API Reference Overview — OpenRouter Docs · accessed 2026-11-20Note:OpenRouter's official overview confirms /api/v1/chat/completions for Chat Completions and /api/v1/responses for Responses, which grounds the Base URL and path analysis.
One key for Claude, GPT and 50+ models
The SalpX gateway is OpenAI-SDK compatible. Point base_url at https://www.salpx.com/v1 and you are done.