Flowise custom endpoint won't connect: the fixes

A Flowise OpenAI Custom Model node that fails against the gateway is the Base Path, the stored credential or the Model Name. Read the code to know which.

Checked 2026-11-22

·All fixes·Models

When a Flowise OpenAI Custom Model node saves but its runs fail, the cause is nearly always one of three settings: a Base Path with the wrong path on it, a credential the node never received, or a Model Name that matches no catalog entry. This page is the troubleshooting companion to the Flowise setup guide, which has the working flow; here the job is reading the failure and tracing it to the setting at fault. The base is https://api.uplinkswitch.com/v1.

Start from the Base Path

The most frequent fault is a Base Path that already carries the route. The node wants the gateway root ending at /v1, because the OpenAI client underneath Flowise appends /chat/completions on its own. Paste the full route into the field and every call goes to a doubled path; the gateway answers that with a 404 whose code is route_not_found, which reads like a missing model at a glance but is really a malformed URL. Trim the field back so it stops at /v1. A trailing slash after /v1 is harmless; a stray space copied in with the value is not, so clear it before you look anywhere else.

A 401 is the credential, not the endpoint

A 401 with the code invalid_api_key means the request reached the gateway and the key did not pass. The message in the body tells the two common cases apart: No API key was sent. means the node went out with no key at all, and The API key is not valid. means a value arrived but is mistyped, revoked or from another vendor. Flowise keeps keys in its own credential store rather than inside the node, so a node imported from an exported flow, or rebuilt on a second instance, can reference a credential that was never filled in there. Open the credential the node points to, paste a current sk-uplink-live-... key, and save.

A key whose allowlist leaves out the model still authenticates; that case comes back as a 403 scope_denied, never as a 401.

A 404 with model_not_found is the Model Name

Once the path and the key are right, a 404 whose code is model_not_found points at the Model Name field. The value must be a catalog id spelled exactly, with nothing in front of it, so openai/gpt-6.1-sol misses where gpt-6.1-sol lands. Read the ids from the keyless catalog:

bash
curl https://api.uplinkswitch.com/v1/catalog

If an id that ran last week begins failing, look at its availability in that response before you touch the flow. On the 2026-11-23 catalog gpt-6.1-sol read ok and claude-sonnet-5-5 read ok; an id flagged degraded is a reason to switch the Model Name to a sibling, not to rebuild the wiring.

Prove the key outside Flowise

When you cannot tell whether the node or the key is at fault, send one request that uses only the base and the key:

bash
curl https://api.uplinkswitch.com/v1/chat/completions \
  -H "Authorization: Bearer sk-uplink-live-..." \
  -H "Content-Type: application/json" \
  -d '{"model": "gpt-6.1-sol", "messages": [{"role": "user", "content": "ping"}]}'

This is a real model call and is billed like one, so keep the prompt tiny. A 200 clears the key and the id, which leaves the node's Base Path or its attached credential as the suspect. A 401 or 404 here reproduces the fault with the flow out of the way.

Status and codeSetting at fault
404 route_not_foundBase Path carries a route after /v1
401 invalid_api_keyThe Flowise credential is empty or wrong
403 scope_deniedThe key's allowlist leaves out this model
404 model_not_foundModel Name is not a catalog id
402The balance or the key's budget is spent

Questions and answers

The Base Path. A value ending in /chat/completions instead of /v1 is the usual reason a saved node still fails, because the client adds the route a second time and the gateway replies 404 route_not_found.

No. A 401 means the gateway was reached and refused the credential. Flowise stores keys apart from nodes, so open the credential this node references and paste a current key; the message says whether no key arrived or a bad one did.

Copy it from GET /v1/catalog, which needs no key, and pick one whose availability is ok. Type it without a provider prefix; a prefixed or misspelled id is what turns a correct path and key into a 404 model_not_found.
Join on Telegram
Help