Skip to main content

Models + Endpoints page

The Models + Endpoints page is where you add model deployments to the proxy and manage everything attached to them, such as reusable provider credentials, auto routers, pass-through endpoints, health checks, retry policies, aliases, access group budgets and pricing data. It lives at /ui/models-and-endpoints and sits in the AI Gateway group of the left nav as Models + Endpoints.

The nav item shows for the Admin, Admin Viewer and Internal User roles. Internal Viewer and Org Admin sessions do not see it in the nav. When an admin has set the list of pages internal users may see, an internal user sees the item only if that list includes it. The page has no guard of its own, so anyone signed in who opens the URL gets the tabs their role allows, and the backend checks every read and write. The page itself needs no license, but a few actions do, and they are called out where they appear.

What this page is for​

Everything the gateway can call starts here. You add a deployment, which is one provider model behind a public name with its credential and limits, and from then on keys, teams, budgets, routing and logging work for it like for every other model. The same page holds the reusable provider credentials that many deployments share, the personal connections some providers need from each user, and the health, retry, alias and budget settings that sit on top of the deployments. Nothing on it needs a restart.

Scenario​

A platform admin needs a new fast model available to the general access group by the end of the standup, with a request limit so one job cannot starve the rest. She stores the provider key once as a credential, adds the deployment from the form, tests it with a real request, and checks that it appears in the model list. A week later the provider has an incident and she pauses the deployment from the same table.

Steps​

  1. Store the provider key as a credential. On the LLM Credentials tab click Add Credential, enter the Credential Name anthropic-prod, pick Anthropic as the Provider, paste the key and click Add Credential. From the command line:

    curl -X POST http://localhost:4000/credentials \
    -H "Authorization: Bearer $SPANWAY_API_KEY" -H "Content-Type: application/json" \
    -d '{
    "credential_name": "anthropic-prod",
    "display_name": "Anthropic production",
    "credential_values": {"api_key": "sk-ant-api03-your-anthropic-key"},
    "credential_info": {"custom_llm_provider": "anthropic"}
    }'
  2. Add the deployment. On the Add Model tab pick Anthropic as the Provider, choose claude-haiku-5-5 under Spanway Model Name(s), keep the Public Model Name in Model Mappings, select anthropic-prod under Existing Credentials, pick general under Model Access Group, open Advanced Settings and put {"rpm": 500} in Spanway Params. Click Test Connect to send one real request, then Add Model. From the command line:

    curl -X POST http://localhost:4000/model/new \
    -H "Authorization: Bearer $SPANWAY_API_KEY" -H "Content-Type: application/json" \
    -d '{
    "model_name": "claude-haiku-5-5",
    "spanway_params": {
    "model": "anthropic/claude-haiku-5-5",
    "api_key": "os.environ/ANTHROPIC_API_KEY",
    "rpm": 500
    },
    "model_info": {"description": "Fast model for classification", "access_groups": ["general"]}
    }'
  3. Check it is deployed. On the Deployed Models tab search for the name. The row shows the Model ID, provider, prices and the pause switch. From the command line:

    curl "http://localhost:4000/model_group/info?model_group=claude-haiku-5-5" -H "Authorization: Bearer $SPANWAY_API_KEY"
  4. Pause it during an incident. Turn off the pause switch in the row's Actions column, which shows "Model paused", and turn it on again later. From the command line, POST /model/block and POST /model/unblock with {"model_id": "<the Model ID>"} do the same.

Expected result​

Step 1 shows "Credential created successfully" and the credential appears in the LLM Credentials table with DB as its source. Step 2 shows "Model claude-haiku-5-5 created successfully", the list refreshes, and the API returns the stored deployment with its model_id. Step 3 returns one entry whose providers is ["anthropic"], with the input and output price per token and rpm: 500. Within the config reload interval, GET /v1/models on any key in the general access group lists claude-haiku-5-5. While paused the row's switch is off and the router stops sending requests to the deployment.

Page header and tabs​

The header reads Model Management. Under it, admins see "Add and manage models for the proxy" and everyone else sees "View your models and manage routers for teams that allow it."

Unless the session is view-only, a dismissible banner titled Decision models are now supported sits above the tabs. It links to how to call decision models, to Supported providers, and to Try decision models, which opens the Decisions tab of the Playground. The dismiss button hides the banner in this browser only.

The tab row shows only the tabs your role allows (the full list is under Differences by role and license below). On the right of the tab row, the refresh button (Refresh models) reloads the model list, and Last Refreshed: shows the time of the last manual refresh.

Clicking a model ID or a team ID anywhere on the page replaces the tabs with a detail view. Those views are described under Model detail view and Team detail view below.

Deployed Models tab​

This tab is labeled Deployed Models for admins and Your Models for everyone else. It lists model deployments, 50 per page by default. Auto routers are left out of this table, because the Auto-Routers tab manages them. The search box, team, view, filters, sorting and page are kept in the URL, so a filtered view can be bookmarked or shared.

Toolbar​

ControlTypeWhat it does
SearchText boxPlaceholder "Search model names…". Filters by model name on the server as you type.
TeamDropdownPicks whose models to list. Personal (the default) lists models that are not scoped to a team, and each team in the list shows the models scoped to that team.
ViewDropdownCurrent Team Models (the default) or All Proxy Models. With Current Team Models, a note under the table explains how to call these models, which is to create a virtual key with no team (for Personal) or with the selected team, on the Virtual Keys page. All Proxy Models hides that note. The list itself is the same in both views.
Model SettingsGear buttonOpens the Model Settings dialog described below.
RefreshButtonReloads the current page of results.
ColumnsMenuShows or hides table columns. The Source column is hidden by default.
FiltersButtonOpens the Filters drawer.
Filter chipsChipsEach active filter shows as a chip with a remove button. Clear all removes every filter.

Filters drawer​

The drawer is titled Filters ("Narrow down models + endpoints").

FieldOptionsWhat it does
Public Model NameAll Proxy Models, Wildcard Models (*), or one public model nameNarrows the list to one model group, or to wildcard deployments only. Placeholder "Filter by Public Model Name".
Model Access GroupAll Model Access Groups or one access groupNarrows the list to deployments in that access group. Placeholder "Filter by Model Access Group".

Reset Filters clears the search, the filters, the team, the view, the sort and the page.

Table columns​

ColumnMeaning
Model IDThe deployment ID. Click it to open the model detail view.
Model InformationThe provider logo, the public model name and, under it, the Spanway model name (the model string sent to the provider). Hover for a card with both names and a copy button for the Spanway model name. Sortable.
CredentialsManual when the provider credentials were typed in when the model was added or come from the config file. Otherwise the name or label of the reusable credential the deployment uses. The info icon in the header explains the two types.
Created ByThe user who added the deployment and the date, or "Defined in config" for a deployment from the config file. Sortable.
Updated AtWhen the deployment was last changed. Sortable.
CostsInput (IN) and output (OUT) price per 1M tokens, and a per second output price when one is set. Hover for the unit. Sortable.
Team IDThe team the deployment is scoped to. Click it to open the team detail view.
Model Access GroupThe first access group as a badge, and +N more with a tooltip for the rest.
SourceDB Model for a deployment stored in the database, Config Model for one from the config file. Hidden by default. Sortable.
ActionsThe pause switch and the delete button, described below.

Sorting, paging and filtering run on the server. Page size can be 10, 25 or 50.

Row actions​

ControlWhat it does
Pause switchOn means the deployment is serving. Turning it off pauses the deployment ("Model paused"), so the router stops sending requests to it until you turn it back on ("Model resumed"). Only a proxy admin who is not view-only can use it, and it is disabled for config file deployments, with a tooltip that gives the reason.
DeleteOpens the Delete Model dialog. Disabled for config file deployments ("Config model cannot be deleted on the dashboard. Please delete it from the config file.") and for view-only sessions. Otherwise it is enabled for a proxy admin and for the user who created the deployment. The backend allows a delete only by a proxy admin or by an admin of the team the deployment is scoped to, so a creator who is neither gets an error.

The Delete Model dialog warns "This action cannot be undone." and shows the Model Name, Spanway Model Name, Provider and Created By. Confirming removes the deployment from the proxy and the database ("Model deleted successfully"). There is no undo, and requests to that public model name fail unless another deployment serves it.

Model Settings dialog​

The gear button opens Model Settings, which holds one switch.

ControlTypeWhat it does
Store Model in DBSwitchWhen on, models and config are stored in and loaded from the database. The hint text comes from the proxy's own description of the setting. The switch shows the value currently saved on the proxy.

Save Settings writes the value to the proxy's general settings ("Model storage settings updated successfully"). Cancel discards the change. The gear shows for every role, but the backend accepts the change only from a proxy admin, so anyone else gets "Failed to save model storage settings" with the reason.

Add Model tab​

The Add Model tab is a form that adds one or more deployments under a public model name. It shows for a proxy admin who is not view-only, and for a team admin. An admin can turn on the disable_model_add_for_internal_users UI setting to hide the tab from internal users.

Team selection for team admins​

When you are a team admin and not a proxy admin, the form starts with Select Team (required, "Please select a team to continue"). Until you pick a team, an info box says Team Selection Required, and the rest of the form stays hidden. The deployment you add is scoped to that team, so only keys for that team can call it.

Model fields​

FieldTypeWhat it does
ProviderSearch select, requiredThe provider, for example OpenAI, Azure OpenAI, Anthropic, AWS Bedrock, IONOS AI Model Hub or STACKIT AI Model Serving. Changing it clears the model selection. If the provider list fails to load, the error shows in place of the options.
Spanway Model Name(s)Multi-select or text, requiredThe model name Spanway sends to the provider. For most providers this is a multi-select of the provider's known models plus Custom Model Name (Enter below) and All <provider> Models (Wildcard). Picking several models creates one deployment per model. For Azure, OpenAI-compatible endpoints and Ollama it is a text box. For Azure you type the deployment name, which also becomes the public model name, and Spanway calls azure/<deployment-name>. Leaving it empty shows "Please enter at least one model." or "Please enter a deployment name."
Custom model nameText, required when shownAppears when Custom Model Name is picked. Placeholder "Enter custom model name" (or "Enter Azure deployment name").
Model MappingsTable, requiredOne row per selected model, with an editable Public Model Name (the name clients send) and the fixed Spanway Model Name. Every row needs a public name ("All model mappings must have valid public names"). Hidden for a wildcard selection, which uses <provider>/* as both names. For Anthropic, typing a public name that ends in -1m while Spanway Params is empty strips the suffix and fills Spanway Params with the extra header that turns on the 1M token context window.
ModeDropdownOptional. The endpoint Spanway uses when it health checks this model, and the mode used by Test Connect. The options are Chat - /chat/completions, Completion - /completions, Embedding - /embeddings, Audio Speech - /audio/speech, Audio Transcription - /audio/transcriptions, Image Generation - /images/generations, Image Edit - /images/edits, Video Generation - /videos, Rerank - /rerank, Realtime - /realtime, Batch - /batch, Anthropic Messages - /v1/messages, OCR - /ocr and Evaluation - /v1/decisions. The value is saved in the deployment's model info.

Which providers and models the form lists​

The Provider list holds every provider in the gateway's model catalogue, the built-in list of models, prices and limits the gateway ships with. You never have to wait for a dashboard update before you can pick a provider the catalogue knows. A short note under the picker says so: "Every provider in this gateway's model catalogue is listed." The one exception is web search providers, covered below.

Most providers have their own setup form with the exact fields they need, such as an AWS region for AWS Bedrock or a service account file for Vertex AI. A provider that has no form of its own still appears, named from its catalogue id (for example black_forest_labs shows as Black Forest Labs), and asks only for an API Key and an optional API Base. Leave the key empty when the gateway reads it from an environment variable, and fill in the API base only when the provider's address differs from the default.

After you pick a provider, Spanway Model Name(s) lists exactly the catalogue models for that provider. For a few providers the list also includes the provider's own variants, for example AWS Bedrock also lists its Converse models and Vertex AI lists the partner models it hosts. The catalogue also lists web search providers such as Tavily, but they are left out of this form, because the gateway cannot call them as models and a deployment saved for one would fail on every request. Their catalogue entries only price search calls. Set them up on the Search Tools page instead, under Tools > Search Tools.

When a model is not in the catalogue yet, for example one the provider released this week, you can still add it.

  1. Pick the provider under Provider.
  2. In Spanway Model Name(s) choose Custom Model Name (Enter below), or type the name straight into the box when the provider shows a text box.
  3. Type the model name the provider uses, with the provider prefix, for example aihubmix/gpt-5-mini.
  4. Fill in the credential fields and click Add Model.

From the command line, the same deployment is one call:

curl -X POST http://localhost:4000/model/new \
-H "Authorization: Bearer $SPANWAY_API_KEY" -H "Content-Type: application/json" \
-d '{
"model_name": "gpt-5-mini",
"spanway_params": {
"model": "aihubmix/gpt-5-mini",
"api_key": "os.environ/AIHUBMIX_API_KEY"
}
}'

The gateway answers with the new deployment, and the model shows on the Deployed Models tab. A model that is not in the catalogue has no built-in price, so set its prices under Advanced Settings > Custom Pricing when you want its spend tracked. To see which providers the catalogue holds, the list is public:

curl -s "http://localhost:4000/public/spanway_model_cost_map?catalog_only=true" \
| jq 'del(.sample_spec) | [.[] | .spanway_provider? // empty] | unique'

When the chosen model is a decision model, an info box titled Decision model explains that decision requests go to /v1/decisions or /v1/systemone, with links to the docs and to the Decisions playground.

Credentials​

The form asks you to "Either select existing credentials OR enter new provider credentials below".

FieldTypeWhat it does
Existing CredentialsSearch selectA reusable credential from the LLM Credentials tab. Placeholder "Select or search for existing credentials". Picking one hides the provider fields.
Provider fieldsVaries by providerShown when no existing credential is picked. The fields come from the proxy's provider metadata, such as API key, API base, API version or region. Required fields show "Required" when empty. A file field, such as the Vertex service account JSON, has a Click to Upload button. If the fields fail to load, the form shows "Failed to load provider credential fields".
Auth Type:DropdownOnly for providers with more than one sign-in method. GitHub Copilot offers Shared device login and Per-user GitHub OAuth. Microsoft 365 Copilot offers OAuth token exchange (on-behalf-of) and Static delegated access token.
Create credentialButtonShown for an auth type that can only be saved as a reusable credential, such as Per-user GitHub OAuth. It opens the add credential dialog with the provider fixed, then selects the new credential in Existing Credentials. Only a proxy admin sees these auth types and the button. Adding the model without a credential shows "Create or select a credential for this auth type".
Use workload identity federationButtonShown to a proxy admin when the provider supports federation (Anthropic and OpenAI). Opens the add credential dialog with federation selected, because federation is always saved as a reusable credential and then attached to the model.

The add credential dialog is the same one the LLM Credentials tab uses, described in that section. A credential created here is saved right away, even if you then leave without adding the model.

Additional Model Info Settings​

FieldTypeWhat it does
Team-BYOK ModelSwitchRestricts this model and credential pair to one team, for teams that bring their own provider keys. Team admins do not see it, because their deployment is already scoped to the team they picked. It is disabled without a Spanway Enterprise license, with a tooltip saying so. The backend requires the license for any team-scoped deployment, including the ones team admins add.
Select TeamTeam dropdownAppears when Team-BYOK Model is on. Placeholder "Search or select a team". Only keys for this team can call the model.
Model Access GroupTag pickerAdmins only. Adds the deployment to one or more model access groups. Pick existing groups or type a new name. Placeholder "Select existing groups or type to create new ones".
Data policySeveral dropdownsAdmins only. How this provider retains and uses request data. Zero data retention and no-training policies route only to deployments that declare qualifying terms. The fields are the same as in the model detail view below. Only a proxy admin can change them, and the backend refuses data terms from anyone else.
Service tiersCheckboxesAdmins only. Priority and Flex, the provider service tiers this deployment offers. The same field is described in the model detail view below.

Advanced Settings​

Advanced Settings is a collapsed section.

FieldTypeWhat it does
Custom PricingSwitchShows the pricing fields below, to override the model's built-in prices.
Pricing ModelDropdownShown with custom pricing. Per Million Tokens (the default) or Per Second.
Input Cost (per 1M tokens) and Output Cost (per 1M tokens)NumberPrices in USD per 1M tokens. Spanway stores them per token. Each must be a positive number ("Please enter a valid positive number").
Cache Read Cost (per 1M tokens)NumberPlaceholder "Defaults to Input Cost if blank". When left blank, the input price is used.
Cache Write Cost (per 1M tokens)NumberPlaceholder "Defaults to Input Cost if blank". When left blank, nothing is stored and the backend falls back to the input price.
Cost Per SecondNumberShown with Per Second pricing.
PTU Count, Calculated Cost per PTU / Hour (USD), PTU Effective From (UTC), PTU Effective To (UTC)Number and date fieldsShown only when the proxy turns on PTU cost attribution with SPANWAY_ENABLE_PTU_COST_ATTRIBUTION. A flat cost of PTU count times the hourly rate times active hours is charged to the deployment's team. The count must be a whole number from 1 to 1,000,000, and the rate must be between 0 and 1,000,000. Both must be set together. The start is required when a count is set, and the end is optional but must be after the start. With a PTU count set, any token price must be 0 or blank.
Attached Knowledge Bases (RAG)Vector store pickerVector stores searched on every request to this model. Placeholder "Select knowledge bases (optional)".
GuardrailsMulti-selectExisting guardrails to run on every request to this model. You can also type a name.
TagsMulti-selectTags used for tag based routing. You can pick existing tags or type new ones.
Use in pass through routesSwitchLets pass-through routes use these credentials.
Cache Control Injection PointsSwitch, then rowsTells Spanway where to add prompt cache checkpoints for providers that need them, such as Anthropic and AWS Bedrock. Each row has Type (only Message), Role (User, System or Assistant) and an optional Index. Add Injection Point adds a row, and the remove button deletes one when there is more than one.
Spanway ParamsJSON text areaExtra parameters for every call to this deployment, such as rpm, timeout and stream_timeout. Must be valid JSON. If it names a credential while Existing Credentials is also set, the picked credential wins.
Model InfoJSON text areaExtra model info returned by /model/info, such as mode. Must be valid JSON.

Buttons​

ButtonWhat it does
Need Help?Opens the Spanway support page.
Test ConnectSends a real request to the provider with the values in the form, without saving anything, and opens Connection Test Results. Only the first model mapping is tested. The dialog shows "Testing connection to <model>...", then either "Connection to <model> successful!" or "Connection to <model> failed" with the error. Show Details reveals the raw error and the request as a curl command built from the request the proxy reports, with Copy to Clipboard. View Documentation opens the provider docs. Close closes the dialog. The call can cost money.
Add ModelChecks the visible fields, then creates one deployment per model mapping. Each success shows "Model <name> created successfully", the form resets, and the model list refreshes. A failure shows "Failed to add model" with the reason.

Auto-Routers tab​

The Auto-Routers tab carries a Beta badge. It lists the auto routers on the proxy. An auto router sits above your deployments and picks a model for each request, and clients call it by its name like any other model. Auto routers are left out of the Deployed Models table on purpose, so this tab is the one place to list, create and delete them.

The tab shows to proxy admins (including Admin Viewer sessions, which see the list without write controls), to team admins, and to team members whose team grants the /auto_router/manage member permission. When the disable_model_add_for_internal_users UI setting is on, internal users who are only team members lose the create button.

Auto routers list​

The header reads Auto routers with a short description. The Add Auto Router button opens the create dialog. It shows only when you may create an auto router, meaning you are a proxy admin who is not view-only, a team admin, or a member of a team that grants /auto_router/manage and is not blocked.

The table sorts by Created (newest first) and then Name, and pages client side with 10, 25 or 50 rows per page.

ColumnMeaning
NameThe model name clients call. Click it to open the same model detail view the Deployed Models table uses, which is where you edit the router.
TypeThe routing strategy. A complexity router shows its classifier, one of Heuristic, LLM Classifier, OSS Classifier, Capability, Fuse v2, Heuristic first, Hybrid or Custom classifier. Other strategies show Semantic, Adaptive or Quality.
Routes toThe models the router can send traffic to, as pills. For a complexity router these are the models in its tiers, for a semantic router the route names, and for adaptive and quality routers the configured model pool. Pills that do not fit collapse into a +N counter, and hovering the counter lists every target.
Default modelThe model used when routing finds no suitable model, or - when none is set.
CreatedThe creation date.
ActionsA menu with Delete auto router. The column only exists when you may create routers, and the menu only appears on rows you may delete (see below).

Delete auto router opens the Delete Auto Router dialog. It shows the router's Name, Type and ID and warns that any client still calling this model name will start failing. Confirming deletes the deployment, and this cannot be undone from the UI. The menu appears only on rows stored in the database (a router defined in config.yaml cannot be deleted here) and only when you are a proxy admin or an admin of the team that owns the router. A team member who created a router with the member permission does not get the delete action.

Add Auto Router dialog​

The Add Auto Router dialog builds a complexity router (stored as auto_router/complexity_router). The dashboard has no create form for semantic, adaptive or quality routers.

Name, access and team​

ControlTypeWhat it does
Auto Router NameText, requiredThe model name clients call. Placeholder e.g., smart_router, auto_router_1. Submitting without it shows "Please enter an Auto Router Name".
Model Access GroupTag pickerShown to admin roles only. Puts the router in one or more model access groups to control who can call it. It is not saved for a router created through the team member permission.
Select TeamTeam dropdown, required when shownShown when you are not a proxy admin, because a non-admin must scope the router to a team. The list only offers teams you admin or teams that grant you /auto_router/manage. Only keys for that team can call the router. Leaving it empty shows "Please select a team to continue".

A proxy admin does not see Select Team, so routers a proxy admin creates here are not scoped to a team.

Choose your classifier​

Pick one of three families. The View limits link opens Routing and customization limits, which lists the shared allowances for Heuristic v2 routers, Capability routers, Fuse v2 routers, Custom tiers or prompts and Rule-based tuning, each with its remaining count or Unlimited. Rule-based, Complexity and decision model routing with built-in settings are always unlimited. When an allowance is used up, its option is disabled and a Talk to our team link appears.

FamilyWhat it doesFurther controls
HeuristicsClassifies locally with no API call. Disabled when the router uses an edited tier set.Heuristic picks Rule-based (scoring rules) or Heuristic v2 (calibrated probabilities, counts against an allowance).
LLMA judge model chooses the tier.Judge model (required, "A judge model is required" when missing) and Routing approach, which is Complexity, Capability or Fuse v2. Capability and Fuse v2 count against allowances and are disabled with an edited tier set.
Decisions ModelA deployed decision model chooses the tier.Decision model lists deployed models whose mode marks them as decision models. Submitting without one shows "Please select a decision model". An Advanced classifier settings section adds Classifier Timeout (ms), the classifier circuit breaker and Classifier Instructions (blank uses the built-in instructions, and custom text counts against the custom tier allowance).

The allowance counts come from /auto_router/availability, which the form calls again whenever the configuration changes. While that check runs, saving is blocked with "Checking availability". If it fails the form shows "Could not check availability." with Retry, and saving stays blocked.

How often to classify​

OptionEffect
Every requestChoose a model again for every request. This is the default.
Every new user messageReclassify only when the user sends a new message.
Once per sessionKeep the same tier for the session. Requires a client session ID. Disabled with an edited tier set.

Define your tiers​

The Use a template dropdown prefills the form from a preset. Each preset shows its description and the note "Replaces classifier and model choices". A preset is disabled while models load ("Checking model availability..."), when the model list could not load ("Cannot verify these models are available"), or when a model it needs is missing ("Missing:" followed by the model names). A preset that only matches through your deployments says "Matches your deployments". Start from scratch clears tier models, switches to Heuristics and resets routing settings. If presets fail to load, only Start from scratch is offered with a Retry link. When no preset is picked, the form fills empty tiers from your available models once.

The built-in tiers are Simple, Medium, Complex and Reasoning, each with examples. For each tier you can set an optional display name (shown in the dashboard and spend logs) and choose one or more models. Every tier needs at least one model ("The ... tier is required"). With more than one model, the router picks among them at random per request, or samples within the pool when adaptive routing is on.

ControlWhat it does
Reasoning effort per modelSent as reasoning_effort on requests the tier routes to that model, overriding the caller's value. Default leaves the request untouched. Shown only for models with known effort options.
Fast mode per modelShown for models that support it. Fast mode has higher pricing and needs an eligible provider account.
Add a non-reasoning tierAdds a NON_REASONING tier below Simple for relay or reformatting traffic. Available only with the LLM or Decisions Model classifier.
Edit tiersSwitches to editing the tier set. Add tier adds a tier (up to 8), Remove removes one (at least 2 must remain), Done leaves edit mode and is disabled while the set has an error, and Restore defaults goes back to the built-in tiers. Each tier has a name (up to 64 characters, unique ignoring case) and a definition (up to 500 characters, required for a tier that is not built in). An edited set counts against the custom tier allowance and needs the LLM or decision model classifier.
Fallback TierShown for an edited tier set and required there. Where requests go when the classifier errors, times out or returns an unparseable reply.
Default ModelLeave empty to follow the tiers, or pick a model to pin it. Used when the tier a request lands in has no model, and when the classifier fails with the default model option selected.

Capability and Fuse v2 replace the tiers with Solver models, an Efficient solver and a Capable solver. The capable tier must be higher than the efficient one, and both need models. Invalid forecasts and classifier failures route to the capable solver. Their forecast settings include Solve probability threshold (0 to 1) for Capability and Maximum quality gap (0 to 1) for Fuse v2, plus Timeout (ms), Capability boundary step (0 to 0.5), Classifier output token limit, Forecast response format (Strict JSON schema or JSON object) and an optional Use fitted calibration block with a Calibration version and slope and intercept coefficients. Fuse v2 cannot be combined with adaptive routing or the non-reasoning tier and needs one distinct model group per solver.

Advanced settings​

Advanced settings is a collapsible area with grouped sections. Groups open on their own when you try to save with errors. For the LLM, Heuristic first and Hybrid classifiers it also starts with Local checks before the judge, which is Always use the judge, Heuristic first or Hybrid. Heuristic first adds Decide locally up to (the highest tier the scorer may decide alone) and Hybrid adds Boundary margin. Both add Heuristic before the judge (Heuristic v1 (rule-based) or Heuristic v2), and Heuristic v2 adds Success threshold. Heuristic first and Hybrid are disabled with an edited tier set.

GroupSectionControls and defaults
Heuristic tuningHeuristic tuningAdvanced scoring with Tier boundaries, Token thresholds and Dimension weights (changing one weight rebalances the others to total 1.00), each with a reset button, Reasoning override floor, up to 16 custom dimensions (Add custom dimension, with a name, weight, Binary or Match count scoring and keywords or regex patterns), Custom Technical Keywords and Heuristic Keyword Overrides (code, reasoning, technical and simple keyword lists that replace the built-in lists). Changing scoring rules counts against the Rule-based tuning allowance. A How Classification Works card explains the score ranges per tier.
LLM tuning or Classifier tuningClassification MethodReasoning Effort for the classifier call (Default leaves it unchanged), Timeout (ms) (default 3000), Classifier circuit breaker (on by default, with Circuit breaker cooldown (seconds), default 30), Use images for classification (off by default, with Maximum images per request, default 1), Classifier Prompt (see below), If the classifier fails (Score with the heuristic, the default, or route to the default model, which needs a default model), Context Window Size (prior user turns sent, default 3), Context Character Budget (default 8000) and Include Assistant Turns (off by default).
Request preprocessingIgnore Custom TagsTag pairs (Opening tag, Closing tag, Add tag pair) whose enclosed text is ignored when routing. Custom pairs replace the built-in reminder tags, so include any you still need.
Routing rules and recoveryModality RoutingRoute image requests to vision-capable models (off by default) and Override session pin for image requests.
Plan-Mode OverrideRoute plan-mode requests to a minimum tier with Plan-mode minimum tier, and Additional plan-mode sentinels (case-sensitive strings). Disabled until a tier has a model.
Housekeeping RoutingRoute housekeeping calls to the cheapest tier (on by default) and Additional housekeeping sentinels.
Context Window EscalationEscalate oversized prompts to a tier that fits (off by default) with Window fit buffer (above 0 up to 1, empty uses 0.95).
Stalled Task EscalationEscalate a stalled task to a stronger model with Repeats before escalating (at least 2, default 3) and Recent calls examined (default 6). Needs How often to classify set to every request and the built-in tiers.
Escalation KeywordsCase-sensitive phrases that bump a request one tier higher. Prefilled with SPANWAY ESCALATE. Leave empty to disable.
Keyword/Semantic MatchingKeyword Tier Overrides (Add keyword rule, each with keywords and Route to tier, at least one keyword required) and Semantic keyword matching with Embedding model (required when on) and Minimum match score (0 to 1, default 0.5).
Sessions and efficiencyAffinityPin one model deployment per tier (on by default) and How long a pin survives idle (seconds) (empty uses 3600).
Adaptive RoutingEnable adaptive bandit selection (off by default) with Quality vs. Cost (default 30% quality and 70% cost), Eligible Model Pool (All tiers (soft floor) or Classified tier only) and Tier Distance Penalty (default 0.5). Not available with an edited tier set.
Cache-aware routingConsider prompt-cache savings (off by default) with Expected output tokens (default 1024) and Prediction timeout (ms) (default 2000). It needs the built-in tiers, adaptive routing off, classification on every request, one model per tier and no per-model overrides, and the switch says which condition is missing.
CompressionRouting decision compression guardrail for the classifier call, and Model call set to Same as the routing decision or Use a different compression. Hidden for a router created through the team member permission.
CompatibilityResponse FormatReturn raw model name (off by default) returns the underlying model name instead of the router name. Cap max_tokens at the tier model's output ceiling is on by default.

Several sections are shown disabled with an explanation when an edited tier set makes them meaningless, for example escalation, stall escalation, adaptive routing and session pinning.

The Classifier Prompt area opens a Classifier prompt dialog through Customize prompt (or Edit custom prompt once changed). It has Base rubric (Legacy (uncalibrated), Agentic, Chat or Business), Classification instructions, Calibration examples, a read-only What this router sends preview of the assembled prompt and Save prompt. Reset to default removes your text. The router always appends the tier definitions and its injection guard below your text. Writing your own text counts against the custom tier allowance. Routers saved in the older whole-prompt mode instead show Change default prompt or Edit custom prompt, which replaces the entire system prompt after a "Proceed with caution" warning.

Buttons​

ButtonWhat it does
Need Help?Opens the support page.
Test RoutingOpens the Test Routing dialog. Paste a prompt and click Send Test Prompt to see which model the router would pick and why. The prompt is only classified, so nothing goes to the routed model, but an LLM or decision model classifier is still called. A warning shows when the proxy has no model group by the routed name. Disabled while the configuration has an error, with the reason in a tooltip.
Test ConnectionSends a minimal request to every tier model, the classifier, the default model and the embedding model, and shows Connection Test Results. It needs at least one tier model. These are real model calls.
Add Auto RouterValidates the form, runs the backend dry run (/auto_router/validate_complexity_router_config), then creates the router. Disabled with a tooltip while anything blocks saving, such as a missing tier model, a classifier error, an exhausted allowance or a pending availability check. On success it shows "Successfully created Auto Router:" with the name, closes the dialog and refreshes the list.

Editing an auto router​

Click a router's name to open its model detail view. For complexity and semantic routers that are stored in the database, the Model Settings card shows an Edit Auto Router button to users allowed to edit the router. Adaptive and quality routers, and any router defined in config.yaml, cannot be edited from the dashboard.

Edit Auto Router opens Edit Auto Router Configuration. For a complexity router it has the same classifier, tier and advanced controls as the create dialog, plus Judge model and How often to classify side by side. For a semantic router it shows Routes Configuration instead, where Add Route adds a route with Model, Description, Score Threshold (0 to 1, placeholder 0.5) and Example Utterances, plus a JSON Preview, a Default Model and an Embedding Model. Proxy admins also see Model Access Groups. Save Changes runs the same checks and dry run as creation and is disabled with a tooltip while something blocks saving. Cancel discards your changes.

The detail view also shows Test Connection for complexity routers, and Delete Auto-Router, which is enabled only for proxy admins and admins of the owning team. The credential buttons are hidden for every auto router.

Who can edit follows canEditAutoRouter. A proxy admin who is not view-only can edit any database router. A team admin can edit routers that belong to a team they admin. A team member can edit a complexity router they created themselves, as long as the team still grants /auto_router/manage and is not blocked. For that member the router name is read only and model access groups and compression are not sent.

Who can do what with auto routers​

RoleListCreateEditDelete
Proxy adminYesYes, unscopedAny database routerAny database router
Admin ViewerYesNoNoNo
Team adminYesYes, team requiredRouters of teams they adminRouters of teams they admin
Team member with /auto_router/manageYesYes, team requiredComplexity routers they createdNo
Other internal usersTab hiddenNoNoNo

The backend enforces the same rules. The dry run and availability routes accept a proxy admin without a team, and otherwise require a team_id and either team admin rights or the member permission. Creating a router as a team admin or a team member also requires a Spanway Enterprise license, and the backend rejects it with a 403 on an unlicensed proxy even though the dialog does not check this first. Without the auto_router license feature, each gated capability (Heuristic v2, Capability, Fuse v2, custom tiers or prompts, and Rule-based tuning) is limited to one router across the proxy, which is what View limits reports. With the feature these are unlimited.

LLM Credentials tab​

The LLM Credentials tab holds provider credentials that many models can reuse, and the personal connections that some credentials need from each user. The tab appears for admins and internal users who are not view-only. It has two parts. The credentials list shows only for admin roles. Internal users see only Your connections.

Credentials list​

The list opens with the text "Configured credentials for different AI providers. Add and manage your API credentials." The table is sorted by Credential Name by default and pages in the browser.

ColumnMeaning
Credential NameThe display name when one is set, with the credential name underneath. Without a display name, the credential name alone. Sortable.
ProviderThe provider logo and name. A Workload identity federation badge shows when the credential has federation values and no API key.
SourceDB for a credential saved from the UI or API. Config for one defined in config.yaml.
Actions (... menu)Shown only to a proxy admin who is not view-only.
ControlTypeWhat it does
Add CredentialButtonOpens the Add New Credential dialog. Shown only to a proxy admin.
EditMenu itemOpens the Edit Credential dialog. Disabled for a Config credential.
Copy credential nameMenu itemCopies the credential name to the clipboard.
DeleteMenu itemOpens the Delete Credential? dialog. Disabled for a Config credential.

For a Config credential, the menu shows "Defined in config.yaml. Edit the file to change or delete it." Change it in the config file instead.

Add New Credential and Edit Credential dialogs​

Both dialogs use the same form. The submit button reads Add Credential or Update Credential, and Cancel closes the dialog and clears the form. Need Help? opens the Spanway support page.

ControlTypeWhat it does
Credential Name:Text, requiredThe unique name models use to reference this credential. The placeholder reads "Unique name that models reference this credential by". An empty value shows "Credential name is required". It cannot be changed when editing.
Display Name:TextAn optional friendly label shown in the table, for example "Production OpenAI". Clearing it on edit removes the display name.
Provider:Searchable select, requiredThe provider. It decides which provider fields appear below. Changing the provider clears the provider fields and keeps the display name. The default for a new credential is OpenAI.
Authentication:SelectShown only for Anthropic and OpenAI. Choose API key or Workload identity federation. Federation exchanges an identity token for a short-lived access token from the provider, so no API key is stored. With federation, the API key field is hidden.
Provider fieldsVariesThe fields for the chosen provider and auth type, such as API key, API base and region.

When editing, stored secrets come back masked. Leave a masked value as it is to keep it. To change one, replace the whole value, otherwise the form shows "This stored value is hidden. Replace the whole value to change it". Fields you clear are removed from the stored credential when you save. A masked value is never saved back as the secret. Changing an address field such as the API base means typing the API key again in the same save, otherwise the gateway refuses the update with a 400, as changing where a stored secret is sent explains.

Workload identity federation for Anthropic​

These fields appear when the provider is Anthropic and Authentication: is Workload identity federation.

FieldWhat it does
Federation Rule IDThe fdrl_ id of the federation rule from Settings > Workload identity in the Claude Console. Leave empty when the proxy sets ANTHROPIC_FEDERATION_RULE_ID.
Organization IDThe Anthropic organization the rule belongs to. Leave empty when the proxy sets ANTHROPIC_ORGANIZATION_ID.
Service Account IDThe svac_ id the rule targets.
Workspace IDThe wrkspc_ id, or default, when the rule is enabled in more than one workspace.
Identity SourceWhere the proxy gets the identity token. The default is Identity token file. The other choices are Identity token secret reference, Token signed by Spanway (internal issuer), Keycloak client credentials and Proxy environment variables.

The fields that follow depend on Identity Source.

Identity sourceFields
Identity token fileIdentity Token File (required), an absolute path on the proxy host that must sit under an allowed credential directory.
Identity token secret referenceIdentity Token Reference (required). It must start with oidc/, such as oidc/env/VAR_NAME. Raw tokens and oidc/env_path/ references are rejected.
Token signed by Spanway (internal issuer)Issuer URL (required), Subject (required), Audience, Token Lifetime (seconds) (a whole number from 1 to 3600, empty uses the proxy default) and Signing Key Reference (required, a secret reference such as os.environ/VAR_NAME, never the key itself).
Keycloak client credentialsKeycloak Token URL (required), Keycloak Client ID (required), Client Secret Reference (required, a reference and never the secret itself), Client Authentication Method (Proxy default, client_secret_basic or client_secret_post) and Scope.
Proxy environment variablesNo extra fields. The proxy reads ANTHROPIC_IDENTITY_TOKEN_FILE or ANTHROPIC_IDENTITY_TOKEN from its own environment. With this source, at least one of the four ids above must be filled in, because the proxy rejects a credential with no values.

If the stored credential uses an identity source this form does not offer, the select shows it as "Stored" and saving keeps it as stored. Pick another source to replace it.

With the internal issuer source, a new credential shows a note to reopen it after saving. Once saved, the edit dialog shows a Public JWKS section with the public key set and a Copy JWKS button. Register that JWKS with the Issuer URL and Subject as a federation rule in the Claude Console, then fill in Federation Rule ID and Organization ID and update the credential. The JWKS comes from the saved signing key, so update the credential after changing the key and before copying. Only a proxy admin can read the JWKS, and the backend checks this.

Workload identity federation for OpenAI​

When the provider is OpenAI and federation is chosen, the form explains that the proxy exchanges the identity token for an OpenAI access token only when OPENAI_API_KEY is unset in its environment. The fields are Identity Provider ID, Service Account ID and Identity Token File. Each is optional and can come from OPENAI_IDENTITY_PROVIDER_ID, OPENAI_SERVICE_ACCOUNT_ID or OPENAI_IDENTITY_TOKEN_FILE in the proxy environment. The API base must be empty, https://api.openai.com/v1 or a regional *.api.openai.com HTTPS URL.

Delete Credential? dialog​

The dialog shows the credential name and provider, and warns "This action cannot be undone and may break existing integrations." Type the credential name to enable the delete button. Deleting removes the stored credential. It also removes every user's personal connection under that credential. Models that reference the credential stop resolving it. This cannot be undone.

Your connections​

This section lists credentials that use each user's own account. It reads "Credentials that use your own account. Connect once, and your requests to models on that credential use your own access." Every role that can open the tab sees it.

ColumnMeaning
CredentialThe credential name.
ProviderThe provider name.
StatusConnected as @login when connected, or Not connected.
ActionsConnect or Disconnect.

Disconnect removes your saved connection right away, with no confirmation. Connect again to restore it.

Connect GitHub Copilot dialog​

Connect opens Connect GitHub Copilot for the credential. The dialog requests a GitHub Copilot device code, then shows a verification link, the code and a Copy code button. Open the link, enter the code and approve the request in the browser. The dialog polls until you approve.

StateWhat you see
Connected"Connected as @login", with Disconnect and Done.
Code expired"The device code expired before it was approved. Start again to get a new code."
DeniedA message that the request was denied at the provider, with a suggestion to start again if this was a mistake.
No seatThe signed in account has no GitHub Copilot access, so nothing was saved.
Other errorThe error message from the proxy.

After a failure, Start again requests a new code. Close ends the flow without saving.

Pass-Through Endpoints tab​

The Pass-Through Endpoints tab lists and manages proxy paths that forward requests to an external API. It appears only for admins who are not view-only.

Pass-through endpoint list​

ColumnMeaning
IDThe endpoint id. Click it to open the endpoint detail view. Config endpoints show no id.
SourceDB for an endpoint saved from the UI. Config for one defined in the config file.
PathThe proxy path.
TargetThe URL requests are forwarded to.
MethodsThe HTTP methods the endpoint accepts, or ALL.
AuthenticationYes when a Spanway virtual key is required to call the endpoint, otherwise No.
HeadersMasked by default. The gateway masks credential-like header values before it sends them, so the eye button shows the header names with masked values, never the stored secret.
Actions (... menu)Edit opens the detail view. Delete opens the delete dialog. Both are disabled for a Config endpoint, which "is defined in the config file and cannot be edited or deleted on the dashboard".

Add Pass-Through Endpoint dialog​

+ Add Pass-Through Endpoint opens the dialog.

ControlTypeWhat it does
Path PrefixText, requiredThe path on the proxy. A leading / is added for you.
Target URLText, requiredThe upstream URL. It must be a valid URL, otherwise "Please enter a valid URL".
HTTP Methods (Optional)Multi-selectAny of GET, POST, PUT, DELETE and PATCH. Leave it empty to accept all methods. Useful when the same path needs different targets per method.
Include SubpathsSwitch, on by defaultForwards every subpath to the target, so /path/x goes to target/x.
Authentication HeadersHeader name and value rowsHeaders sent with every request to the target, such as Authorization or x-api-key. Values are password inputs that hide what you type. Add Header adds a row. At least one header with a name is required, otherwise "Please configure the headers".
Default Query Parameters (Optional)Name and value rowsQuery parameters added to every request. Client values override them. Add Query Parameter adds a row.
Require a Spanway virtual keySwitchOn by default. When on, callers need a valid Spanway virtual key, and the card reads "Callers must send a valid Spanway virtual key." See the note below.
Select GuardrailsMulti-selectGuardrails to run on this endpoint. Org, team and key level guardrails also run.
Request Fields (pre_call)Tags, per guardrailRequest fields the guardrail checks, such as query or messages[*].content. + query and + documents[*] add common values. Empty sends the whole request.
Response Fields (post_call)Tags, per guardrailResponse fields the guardrail checks. + results[*] adds a common value. Empty sends the whole response.
Request Timeout (seconds)Number, minimum 1How long to wait for the upstream. Empty uses general_settings.pass_through_request_timeout, which defaults to 600 seconds.
Cost Per Request (USD)Number, minimum 0Spend recorded for each request through the endpoint.
Add Pass-Through EndpointButtonCreates the endpoint.
CancelButtonCloses the dialog and clears the form.

Once both path and target are filled in, a Route Preview card shows the proxy URL and the target it forwards to. With Include Subpaths on, it also shows an example subpath.

Require a Spanway virtual key works on every gateway, with or without a license. When you turn it off, the card shows the warning "Anyone who can reach the gateway can call this endpoint, and every call is sent upstream with the headers configured above." Leave it on unless the target is safe to expose to anyone.

Endpoint detail view​

Clicking an id opens Pass Through Endpoint: followed by the path. Back returns to the list.

The Overview tab shows the path, target, an Include Subpath or Exact Path badge, an Auth Required or No Auth badge, the methods, the cost per request, the route preview, the headers (masked, with a show button that still shows credential values masked) and the configured guardrails. A guardrail with no fields shows "Uses entire payload".

The Settings tab shows the stored values. Edit Settings switches to a form with Target URL (required), Headers (JSON), HTTP Methods (Optional), Include Subpath, Cost per Request (rounded to 2 decimals), Request Timeout (seconds), the Security switch and the guardrail settings. Headers must be valid JSON, otherwise "Invalid JSON format for headers". A header value you leave in its masked form keeps the stored secret, so you only retype a header you want to change. The exception is Target URL, whose hint reads "If you change this address, enter the key or secret again in the same save. The gateway refuses to send a stored secret to a new address." A new target with masked or reused headers is refused with a 400. Save Changes saves and Cancel leaves edit mode. The path cannot be changed.

Delete Endpoint on the Settings tab deletes the endpoint at once with no confirmation and returns to the list. This cannot be undone.

Delete Pass-Through Endpoint dialog​

Delete in the row menu asks "Are you sure you want to delete this pass-through endpoint? This action cannot be undone." Delete removes the endpoint and its route. Cancel keeps it.

Health Status tab​

The Health Status tab is titled "Model Health Status" ("Run health checks on individual models to verify they are working correctly"). It lists deployments 50 per page and shows the latest stored health check for each from /health/latest. Each check calls /health?model_id=<id>, which sends a real request to the provider, so checks can cost money.

ControlWhat it does
Row checkboxesSelect deployments to check. Changing page clears the selection and the statuses shown.
Clear SelectionShown while rows are selected. Clears the selection.
Run All Checks or Run Selected ChecksRuns checks on the selected rows, or on every deployment on the current page when none are selected. The label reads Run Selected Checks when only part of the page is selected. Disabled while any check is running.
Row action (Run Health Check, Re-run Health Check, Checking...)Runs a check for that one deployment. Disabled while it runs.
Model IDOpens the model detail view.
View response detailsShown next to a healthy status when a response is available. Opens Health Check Response - <model> with "Health check passed successfully" and the response JSON.
View full error detailsShown when the full error is longer than the summary. Opens Health Check Error - <model> with the summary under Error: and the raw text under Full Error Details:.
ColumnMeaning
Model IDThe deployment ID. Click to open the detail view.
Model NameThe public model name.
Team AliasThe team alias, or the team ID when it has no alias, or "-".
Health StatusA badge, see below. "Checking..." while a check runs.
Error DetailsA short summary of the last error, such as AuthenticationError: 401, or "No errors".
Last CheckWhen the deployment was last checked, "None" if never, or "Check in progress...".
Last SuccessWhen the last check passed, or "None".
BadgeMeaning
healthyThe last check passed.
unhealthyThe last check failed.
checkingA check is running.
noneNever checked.
unknownA stored status the UI does not recognize.

Every column except Error Details can be sorted, and sorting applies to the current page.

Model Health tab​

The Model Health tab has two sections.

Deprecations lists configured models with a known deprecation date from /model/deprecations, in up to three tables, Past their deprecation date, Deprecating soon and Deprecating later, each with Model, Underlying model, Date and Days left. When none apply it shows "No configured model has a known deprecation date.".

Model group metrics shows latency and failures per deployment over the last 30 days (time to first token over the last 7), from spend and error logs. Pick a group in the Model group dropdown ("Choose a model group"). It then shows four tables, each sorted worst first and keyed by deployment API base.

TableColumns
Latency per output tokenDeployment, Average (seconds), Days
Time to first tokenDeployment, Average (seconds), Samples
Slow responsesDeployment, Slow, Requests, Share
FailuresDeployment, Failures, Breakdown (count per exception type)

A table with no data shows "No data in this window.". While loading the tab shows "Loading deprecations" or "Loading metrics", and a failed request shows "Could not load deprecations" or "Could not load metrics" with the error message.

Model Retry Settings tab​

The Model Retry Settings tab sets how many times the router retries a failed call, per error type. It appears only for admins who are not view-only.

ControlTypeWhat it does
Retry Policy Scope:SelectGlobal Default or one model group. Starts on Global Default.
Retry count per errorNumber, whole numbers 0 and upOne row each for BadRequestError (400), AuthenticationError (401), TimeoutError (408), RateLimitError (429), ContentPolicyViolationError (400), InternalServerError (500), ServiceUnavailableError (503), NotFoundError (404) and All other errors. Values that are not whole numbers of 0 or more are ignored.
ResetButtonShown on a model group row that has an override. Removes the override so the row falls back to the global value.
SaveButtonSaves the global retry policy and every model group override to the router settings.

Under Global Default, each row shows the global value. When no global value is set, it shows the router's num_retries, or 2 when that is unset too. Under a model group, each row shows the global value as "(Global: n)" and as the placeholder, and the field holds only the group's override. Changes are not saved until you click Save. A failed save shows "Failed to save retry settings".

Model Group Alias tab​

The Model Group Alias tab maps an alias name to a model group, so calls that use the alias reach that group. It appears only for admins who are not view-only. The Model Group Alias Settings card can be collapsed by clicking its header.

ControlTypeWhat it does
Alias NameTextThe name callers use, for example gpt-4o.
Target Model GroupTextThe model group the alias points to. It is not checked against existing groups.
Add AliasButtonSaves the new alias. Disabled until both fields are filled. A duplicate alias name shows "An alias with this name already exists".
Edit (pencil)ButtonTurns the row into inputs with Save and Cancel.
Delete (trash)ButtonRemoves the alias and saves at once, with no confirmation. Add it again to restore it.

The Manage Existing Aliases table lists Alias Name, Target Model Group and Actions. With no aliases, it reads "No aliases added yet. Add a new alias above." Every add, edit and delete saves the full alias list to router_settings.model_group_alias. The Configuration Example card shows how the current aliases look in config.yaml.

Model Access Group Budgets tab​

The Model Access Group Budgets tab (marked Beta) gives a model access group one budget that all its keys share. It appears only for admins who are not view-only. Every key granted the group by name draws from the budget. Keys that reach the group's models through a wildcard or all-proxy-models are not charged against it.

ColumnMeaning
Access GroupThe group name. Sorted by this column by default.
ModelsThe public model names in the group.
DeploymentsHow many deployments are in the group.
Shared SpendSpend drawn against the group, shown against the max budget when one is set, or as unlimited.
ResetsThe reset window (hourly, daily, weekly, monthly) or Not set.
Actions (... menu)Set budget or Edit budget, and Clear budget.

The actions are disabled for anyone who is not a proxy admin ("Only a proxy admin can change an access group budget"). They are also disabled for a group whose name contains a slash ("A budget cannot be set on a group whose name contains a slash"). Clear budget is disabled when the group has no budget.

Set budget dialog​

The title reads Set budget for or Edit budget for followed by the group name.

FieldTypeWhat it does
Max Budget (USD)NumberThe total the group may spend. Once shared spend reaches it, every key that draws from the group is refused.
Soft Budget (USD)NumberFires an alert when spend reaches it. Requests keep working.
Reset BudgetSelecthourly, daily, weekly or monthly. Leave it empty for a budget that never resets.

At least one field must be set, otherwise "Set at least one of max budget, soft budget or reset window". A field left blank keeps the value the budget already has, so the dialog cannot remove a single value. Use Clear budget to remove the whole budget. Save Budget saves and Cancel closes.

Clear Budget dialog​

The dialog shows the group name and max budget and asks "Are you sure you want to clear this access group's budget? The recorded shared spend is cleared with it, and the group's models stay available." Confirming deletes the budget and its recorded spend. This cannot be undone. Set a new budget to start counting again from zero.

With no groups, the table reads "No model access groups yet". Put a deployment in an access group from its model settings first.

Price Data Reload tab​

The Price Data Reload tab, titled Price Data Management, reloads the model pricing map and schedules automatic reloads. It appears only for admins who are not view-only, and the backend allows only a proxy admin to reload.

ControlTypeWhat it does
Reload Price DataButtonOpens Hard Refresh Price Data, which asks to fetch the latest pricing from the remote source now. Yes reloads and shows how many models were updated. No cancels.
Set Up Periodic ReloadButtonShown when no reload is scheduled. Opens a dialog with an hours field, default 6. The value must be a whole number from 1 to 168, otherwise "Hours must be a whole number between 1 and 168". Schedule saves it.
Cancel Periodic ReloadButtonShown when a reload is scheduled. Stops the schedule at once, with no confirmation. Set it up again to restore it.

The Pricing Data Source card shows a Remote or Local badge, Models loaded:, the URL it was Loaded from: (or the Attempted URL: for a local fallback), the Source revision:, ETag: and Loaded at: time. A note explains that these come from the worker that answered, and other workers pick up a reload on their next poll. When SPANWAY_LOCAL_MODEL_COST_MAP=True forces local mode, the card says so. When the proxy fell back to the local map, a red line shows "Fell back to local:" and the reason.

The schedule card shows Scheduled every n hours or "No periodic reload scheduled", the Last run: time (or Never), and when scheduled the Next run: time and a Status: badge. The badge reads Ready before the first scheduled run and Active after. Both cards refresh every 30 seconds.

Model detail view​

Clicking a Model ID in the Deployed Models (or Your Models) table, or in the Health Status table, opens the detail view for that deployment. The URL gains ?model=<id>, so the view can be bookmarked, and the browser back button returns to the table. Back to Models clears the parameter and returns to the tabs.

While the deployment loads the view shows "Loading...". If no deployment has that ID, or you cannot see it, the view shows "Model not found" with only Back to Models.

The header shows "Public Model Name" followed by the display name, and the model ID in monospace with a copy button (Copy model ID). The copy icon turns into a check mark for two seconds after a successful copy.

ControlShown whenWhat it does
Test ConnectionAlways, except for auto-routers that are not complexity routersSends a test request through /health/test_connection for this exact deployment (the model ID is sent so the right deployment is probed when several share a public name). Shows "Testing connection..." and then "Connection test successful!" or "Error testing connection" with up to 100 characters of the error. This makes a real call to the provider. For a complexity router it opens the Connection Test Results dialog instead, which tests each configured tier, and warns "No complexity tiers are configured yet, so there is nothing to test." when there are none.
Update API KeyNot an auto-routerOpens the Update API Key dialog. Disabled unless you may edit this deployment (see below).
Re-use CredentialsNot an auto-routerOpens the Reuse Credentials dialog, or the Using Existing Credential dialog when the deployment already uses a saved credential. Disabled unless your session role is Admin.
Block model or Unblock modelYou are a proxy admin who is not view-only, and the deployment is stored in the databaseBlock model asks for confirmation ("Block model <name>?", "This deployment stops serving requests until it is unblocked.") and then calls /model/block. Unblock model acts at once with no confirmation and calls /model/unblock.
Delete Model or Delete Auto-RouterAlwaysOpens the delete confirmation. Disabled unless you may edit this deployment.

You may edit a deployment when you are not view-only, the deployment is stored in the database (config file deployments can never be edited or deleted here), and you are either a proxy admin or an admin of the team named in the deployment's team ID. The server applies the same rule. Every model write from a view-only session is refused by the route checks, and /model/new, /model/update and /model/delete accept a team admin only for a deployment scoped to a team they administer.

Update API Key dialog​

The dialog explains that only the new key is sent and the rest of the deployment is left as it is. A warning notes that deployments that sign in with an Azure AD token, AWS credentials or a Vertex service account JSON are not supported here and must be changed through Spanway Params.

FieldTypeWhat it does
New API KeyPassword input, requiredPlaceholder "Enter the new API key". An empty value shows "Enter a new API key".

Update API Key sends spanway_params.api_key in a PATCH to /model/<id>/update and shows "API key updated". The old key is replaced and cannot be recovered from the UI. Cancel closes the dialog and clears the field.

Reuse Credentials dialog​

This dialog saves the deployment's current provider credentials as a reusable credential so other deployments can use it. It fetches the deployment's credential values from /credentials/by_model/<id>, which returns them masked (the first four characters and four asterisks), and shows each value as a disabled, read-only field named after its key.

FieldTypeWhat it does
Credential Name:Text, requiredPrefilled with a generated name. Placeholder "Enter a friendly name for these credentials". An empty value shows "Credential name is required".

Reuse Credentials creates the credential from the deployment's stored values (the server copies them, the masked values shown are not sent) and shows "Storing credential.." and then "Credential stored successfully". Need Help? links to the Spanway support page. Cancel closes the dialog.

When the deployment already uses a saved credential, the Using Existing Credential dialog shows that credential's name and label, with only Cancel.

Delete confirmation​

The dialog is titled Delete Model (or Delete Auto-Router), warns "This action cannot be undone.", and lists Model Name, Spanway Model Name, Provider and Created By. Confirming calls /model/delete, shows "Model deleted successfully" and returns to the table. The deployment is removed from the proxy and from the database, and there is no undo. Requests to the public model name fail unless another deployment serves it.

Overview tab​

The detail view has two tabs, Overview and Raw JSON.

The Overview tab starts with three cards.

CardMeaning
ProviderThe provider with its logo, or "Not Set".
Spanway ModelThe underlying provider model string, or "Not Set". Hover to see the full value.
PricingInput and output prices per 1M tokens and any per second output price. A note says "Follows the model cost map" or, when the deployment sets its own prices, lists what it overrides.

Below the cards a line shows Created At (date) and Created By, or "Not Set" for either.

When online scoring rules have scored responses for this model group in the last 7 days, an Online quality, last 7 days card lists each Rule, Scorer, Scored, Errors, Pass rate and Judge cost. The card is hidden when there is no data.

Model Settings card​

The Model Settings card shows every setting read-only. Buttons at the top right change it.

ControlShown whenWhat it does
Edit Auto RouterThe deployment is an auto-router with an editor, you may edit the router, and you are not already editingOpens the Edit Auto Router Configuration dialog.
Edit SettingsYou may edit this deploymentTurns the card into a form with Cancel and Save Changes.
Info iconYou may not edit this deploymentTooltip "Only DB models can be edited. You must be an admin or the creator of the model to edit it."

A member who is not a team admin may edit an auto-router only when it is a complexity router, they created it, and their team grants the /auto_router/manage member permission. The server checks the stored creator as well.

The fields, in order, are listed below. In read-only mode an unset value shows "Not Set".

FieldType in edit modeWhat it does
Model NameTextThe public model name clients send. Placeholder "Enter model name".
Spanway Model NameTextThe provider model string (spanway_params.model). Placeholder "Enter Spanway model name".
Input Cost (per 1M tokens)NumberPrice override in USD per 1M input tokens. Saved as a per token price. Clearing a value you touched removes the override.
Output Cost (per 1M tokens)NumberSame, for output tokens.
PTU CountNumber, whole, minimum 1Only when PTU cost attribution is turned on for the proxy (SPANWAY_ENABLE_PTU_COST_ATTRIBUTION). Placeholder "e.g. 15".
Cost per PTU / Hour (USD)Number, minimum 0Only with PTU cost attribution. Placeholder "e.g. 2.00".
PTU Effective From (UTC)Date and timeOnly with PTU cost attribution.
PTU Effective To (UTC)Date and timeOnly with PTU cost attribution.
Cache Read Cost (per 1M tokens)NumberPlaceholder "Defaults to Input Cost if blank". If you change Input Cost and leave this blank, it is set to the new input price. Clearing it after touching it removes the override.
Cache Write Cost (per 1M tokens)NumberPlaceholder "Defaults to Input Cost if blank". Clearing it removes the override, and the server then uses its own fallback.
API BaseTextThe provider endpoint URL. The hint reads "If you change this address, enter the key or secret again in the same save. The gateway refuses to send a stored secret to a new address." Saving a new API Base without the key returns a 400.
Custom LLM ProviderTextThe provider identifier.
OrganizationTextThe provider organization, where the provider uses one.
TPM (Tokens per Minute)NumberTokens per minute limit for this deployment.
RPM (Requests per Minute)NumberRequests per minute limit.
Max RetriesNumberRetries for a failed call to this deployment.
Timeout (seconds)NumberRequest timeout.
Stream Timeout (seconds)NumberTimeout for streaming requests.
Model Access GroupsTags inputPick existing access groups or type a new name and press Enter or comma. Read-only shows "No groups assigned" when empty.
Data policySeveral dropdowns, see belowHow the provider keeps and uses request data. Read-only shows a summary such as "retention none, no training".
Service tiersCheckboxes Priority and FlexWhich provider service tiers this deployment offers, so :nitro, :floor and requests that send service_tier can pick it. Leave both unticked to work the tiers out from the model's priority and flex prices. A tier pinned in spanway_params.service_tier wins over this list. Read-only shows "Not set, worked out from the model's pricing" when nothing is stored.
GuardrailsTags inputGuardrails applied to every request to this deployment. Read-only shows "No guardrails assigned" when empty.
Attached Knowledge Bases (RAG)Vector store pickerVector stores searched on every request to this deployment. Placeholder "Select knowledge bases (optional)". Clearing all of them removes them on save.
TagsTags inputRouting tags. Read-only shows "No tags assigned" when empty.
Existing CredentialsSearch selectChoose a saved credential for this deployment. Placeholder "Select or search for existing credentials". The credential is only sent when you change it.
Health Check ModelDropdownOnly for wildcard deployments (a Spanway model name containing *). Picks a concrete model from the same provider to use for health checks, or None.
Cache Control Injection PointsSwitch, then rowsWhen on, each row has Type (only Message), Role (User, System, Assistant or None) and an optional Index, plus a remove button. Add Injection Point adds a row. Spanway then marks those messages as cacheable for providers such as Anthropic and AWS Bedrock. Turning the switch off removes stored injection points on save. Read-only shows "Enabled" with each point, or "Disabled".
Model InfoJSON text areaThe raw model_info object. Edits here replace it on save, after the access groups, health check model, team, PTU, data policy and service tier fields above are applied on top. Invalid JSON stops the save with "Invalid JSON in Model Info".
Spanway ParamsJSON text areaExtra spanway_params sent on every call. Masked secrets and the credential name are left out of the editable text. Invalid JSON shows "Please enter valid JSON".
TeamDropdownMoves the deployment to another team. Proxy admins can pick any team, others only teams they administer. Placeholder "Select a team". Read-only shows "<alias> (<team id>)".

The Data policy fields are these.

FieldOptions
Data retentionNot declared, None (zero data retention), Limited (short abuse-monitoring window), Standard (provider default)
Training on request dataNot declared, Never trains on request data, May train on request data
HostingNot declared, Self-hosted, runs on infrastructure we control, Third-party hosted
Data regionFree text, placeholder "eu, us, eu-west-1"
Azure deployment typeNot declared, Regional (Standard or Provisioned), Data zone (Data Zone Standard or Provisioned), Global (Global Standard, Provisioned or Batch). Only Azure deployments use it. An Azure deployment with neither a type nor a data region never serves keys, teams or end users held to a region.
Data policy noteText, up to 2000 characters

Keys, teams and organizations that require zero data retention or forbid training route only to deployments that declare qualifying terms, so declare only what your provider agreement covers. Only a proxy admin can change these fields. For anyone else they are disabled with "Only a proxy admin can change them.", and the server refuses data terms from anyone but a proxy admin.

PTU validation applies only when PTU cost attribution is on. PTU Count must be a whole number between 1 and the maximum shown in the message, Cost per PTU / Hour must be between 0 and its maximum, both must be set together, PTU Effective From is required when a count is set, and PTU Effective To must be after PTU Effective From. When a PTU count is set, any token price you change must be 0 or blank ("A PTU deployment bills by reserved capacity, so this cost must be 0 or blank").

Save Changes sends a PATCH to /model/<id>/update, shows "Model settings updated successfully" and returns the card to read-only. Masked secrets are never sent back, so saving cannot overwrite a stored key with its masked form. A failure shows "Failed to update model settings". Cancel discards your edits.

Edit Auto Router Configuration dialog​

The dialog edits an auto-router in place. It has Auto Router Name (placeholder "e.g., auto_router_1, smart_routing") and then either the complexity router settings (the same classifier and tier editor used on the Auto-Routers tab) or, for other auto-routers, the routing rules builder with Default Model and Embedding Model (each a model picker that also offers "Enter custom model name"). Model Access Groups ("Control who can access this auto router") appears only when your session role is Admin and you are not editing as a team member.

When you edit as a team member under the /auto_router/manage grant, the name is read-only, compression settings cannot be changed, and only the complexity router config and its default model are sent. Save Changes is disabled with a tooltip giving the reason when the configuration is incomplete or a model it needs is unavailable. A successful save shows "Auto router configuration updated successfully". Cancel closes without saving.

Raw JSON tab​

The Raw JSON tab shows the deployment as JSON, including spanway_params and model_info. When the deployment belongs to a team with an alias, a team_alias field is shown next to team_id. Secrets appear in the masked form the server returns.

Team detail view​

Clicking a Team ID in the models table opens that team's detail view in place, with ?team=<id> in the URL. It is the same view as on the Teams page, with the team's models listed from the proxy. Editing is available only when your session role is Admin and you are not view-only, so a team admin who is not a proxy admin sees the team read-only here. Closing the view returns to the tabs.

Empty, error and disabled states​

WhereWhat you seeWhat to do
Deployed Models with no matches"No models found" and "No models match your search or filters. Try resetting them."Clear the search or use Reset Filters. If the proxy has no deployments yet, add one on the Add Model tab. Check the Team dropdown too, because Personal lists only models that are not scoped to a team.
Deployed Models while loading"Loading models…"Wait for the list.
Pause switch disabledA tooltip gives the reason, either a config file deployment or a role that is not proxy admin.Pause config file deployments in the config file. Ask a proxy admin to pause others.
Delete disabledA tooltip for config file deployments, or no action for view-only sessions.Remove config file deployments from the config file.
Model detail view for an unknown ID"Model not found" with Back to Models.Check the ID, or ask an admin whether the deployment still exists and whether you can see it.
Add Model for a team adminThe form stays hidden behind Team Selection Required until a team is picked.Pick your team in Select Team.
Team-BYOK Model disabledThe tooltip says this is an enterprise-only feature.Add a Spanway Enterprise license to scope deployments to a team.
Provider list or provider fields fail to loadThe error text shows in the Provider list or above the fields.Reload the page. If it keeps failing, check the proxy logs.
A save or delete failsA toast with the error the backend returned.Read the error. A 403 usually means your role cannot make that change, or that the change needs a license.
Model Health with no data"No configured model has a known deprecation date." or "No data in this window."Nothing is wrong. Metrics appear once the model group has traffic in the window.
Model Access Group Budgets with no groups"No model access groups yet"Put a deployment in an access group from its model settings first.

Differences by role and license​

The tabs shown depend on the session role. Admin Viewer sessions carry the Admin Viewer role and a view-only flag, so they see the read views an admin sees and none of the write tabs.

TabAdminAdmin ViewerInternal UserInternal Viewer
Deployed Models or Your ModelsYes, as Deployed ModelsYes, as Deployed ModelsYes, as Your ModelsYes, as Your Models
Add ModelYesNoOnly a team admin, and not when disable_model_add_for_internal_users is onNo
Auto-RoutersYesYes, read onlyOnly a team admin or a member of a team that grants /auto_router/manageNo
LLM CredentialsYesNoYes, Your connections onlyNo
Pass-Through EndpointsYesNoNoNo
Health StatusYesYesNoNo
Model HealthYesYesNoNo
Model Retry Settings, Model Group Alias, Model Access Group Budgets, Price Data ReloadYesNoNoNo

A user whose session role is Org Admin does not see this page in the nav. Opening the URL directly shows the Your Models tab, plus Add Model and Auto-Routers if that user is also a team admin.

Inside the tabs, the rules for each write follow what the backend enforces. Any model write from a view-only session is refused. A proxy admin can add, edit, pause and delete any database deployment. A team admin can add deployments scoped to a team they administer and edit or delete those, and the backend refuses unscoped writes from anyone but a proxy admin. Deployments from the config file cannot be edited, paused or deleted here by anyone.

License checks on this page come from the backend. Any deployment scoped to a team, whether it comes from Team-BYOK Model or from a team admin, needs a Spanway Enterprise license, and the backend answers 403 without one. Only Team-BYOK Model checks this in the UI, so a team admin on an unlicensed proxy can fill in Add Model or Add Auto Router and only then see the refusal. Without the auto_router license feature, each gated auto router capability is limited to one router across the proxy, as View limits shows.

Errors​

The table above covers what the page itself shows. These are the errors the gateway returns behind the buttons, which the page surfaces in a toast.

What you seeWhyFix
No DB Connected. or Set 'STORE_MODEL_IN_DB='True' in your env to enable this feature.Runtime model management is off.Set DATABASE_URL and STORE_MODEL_IN_DB=True, then restart.
Model creation is disabled for internal users by disable_model_add_for_internal_users.The UI setting forbids internal users from adding models.Ask a proxy admin, or turn the setting off on the UI Settings tab.
Credential 'anthropic-prod' already exists.A credential with that name is stored.Edit it from the ... menu, or pick another name.
Credential values are required.The credential form was submitted without a key and without a model to copy from.Fill in the provider fields.
Only proxy admins can change a model's blocked flag.A team admin or internal user used the pause switch through the API.Ask a proxy admin.
400 when editing a credential's API baseA stored secret would be sent to a new address without being typed again.Enter the key again in the same save.
Test Connect reports "Connection to <model> failed"The provider refused the credential or the model name.Click Show Details, fix the field it names and test again.

Logs​

Changes made on this page show in the gateway log at ERROR only when they fail: spanway.proxy.proxy_server.update_model(): Exception occured - <reason> for an edit, Error in patch_model: <reason> for a pause or a partial edit, and Error in model <id>: <reason> for block and unblock. A failed price reload logs Failed to reload model cost map: <reason>. The model management logs explain each line, and every successful change is in the audit log.