Models and aliases
How DurinDoor parses provider/model strings, aliases, combos, and /v1/models.
Choose a model ID from your running instance, then use that exact string in the client's model field. A saved alias or combo can give clients a stable name while you change the upstream.
Discover a model
curl http://localhost:20128/v1/models \
-H "Authorization: Bearer YOUR_DURINDOOR_API_KEY"The default response is an OpenAI list with model IDs in data. Provider models use prefix/model-id; combos use their saved name. Listing models confirms discovery, not successful inference. Send a first request before configuring a tool.
Provider detail shows catalog or configured models separately from connection operational status. Neither verifies authentication or inference. Manual model test results last only for the current page session; skipped tests are not successful inference. Tests can use provider quota or incur charges. Catalog source and degradation appear only when returned by the provider discovery response.
Registry-backed Claude validation probes and OpenAI-compatible fallback probes report server errors as provider unavailability. Add and edit dialogs show Unavailable for these responses. Retry when the provider is available; these errors do not establish that the credential is invalid.
The provider validation API returns valid: false and unavailable: true for server errors from registry-backed probes. An unavailable result does not identify an invalid credential.
Testing a saved registry connection returns the unavailable marker for server errors and network failures explicitly marked unavailable by the probe, and leaves its stored status unchanged. HTTP 401 and 403 still persist a credential failure. A null status alone does not indicate an outage. Malformed session cookies and blocked outbound URLs remain validation errors. Batch tests count unavailable connections separately from invalid credentials. Retry when the provider is available.
Saved OAuth tests using the generic endpoint probe, including GitHub, also preserve credential-check metadata on HTTP 429, server errors, timeouts and cancellation. These results are unavailable, not successful authentication. Real HTTP 401/403 rejections still persist failure. This guarantee concerns saved test metadata, not dispatch eligibility, quota policy or provider-specific refresh and probe flows.
| Model string | Routes to |
|---|---|
openai/gpt-4.1 | An OpenAI connection with upstream model gpt-4.1 |
my-node/local-model | The compatible node whose prefix is my-node |
coding-default | Your saved combo or alias with that name |
The first slash separates the provider ID, registry alias, or node prefix from the upstream model. Additional slashes belong to the upstream model. Prefer this explicit form. Unmapped bare names use provider inference, which may select a different provider from the one you connected.
Create an alias or combo
A model alias maps a short name to one provider/model target. The management API accepts PUT /api/models/alias with { "model": "provider/model", "alias": "short-name" }.
A combo contains fallback members. Create it on Combos, then send its name as the model. See Combos for selection strategies and capability requirements.
Custom aliases add their target IDs to the catalog; the short alias does not get a separate top-level row. A custom node exposes only saved model rows. Import and save models on its provider page before relying on discovery.
Discover other model kinds
Append a kind to /v1/models:
| Kind | Service |
|---|---|
image | Image generation |
tts | Text to speech |
stt | Speech to text |
embedding | Embeddings |
image-to-text | Image understanding |
web | Search and fetch |
rerank | Reranking |
systemone | System One decisions |
video | Video generation |
music | Music generation |
moderation | Moderation |
audio | Audio models |
realtime | Realtime models |
realtime-translation | Realtime translation |
realtime-transcription | Realtime transcription |
live | Live models |
document-parsing | Document parsing |
An unknown one-segment kind returns 404. /v1/models/{prefix}/{model} looks up an exact chat model ID and returns model_not_found on a miss. /v1/models/info?id=prefix/model returns metadata; missing id returns 400. See Model limits before assuming a context window.
An anthropic-version header selects Anthropic's list envelope. A Codex user agent selects { "models": [...] }. The Anthropic header takes precedence when both are present. HEAD /v1/models returns an empty 200 response for HTTP probes; use GET and a real request to check model availability.
Control exposure and access
Disabled models disappear from discovery and return 403 when requested directly or through an alias. Media default routes also skip them. Hide paid models removes paid rows and combos with no visible members.
Under Settings → Model catalog, optional allow and deny lists match exact IDs or * and ? globs. Deny takes precedence. With a non-empty allow list, only matches remain visible. The same lists filter auto/* candidate models.
Catalog exposure is not an access restriction. Direct requests for a hidden ID still route, and named combos are exempt from exposure filtering. To restrict clients, configure API key model access.
If an expected model is missing, check the active provider connection, saved model selection, disabled-model settings, exposure lists, and key access rules. Compatible-node discovery imports are separate from the public catalog.