Docs · Routing reference · Last checked 20 November 2026

How does plugsky-fusion model routing work?

Set model to plugsky-fusion and Plugsky routes each request to a model based on token count, tool use, prompt heuristics and your workspace strategy. Strategies are cost_saver, balanced (the default), max_quality and custom. Rules are evaluated in order, and every request log records the chosen model, strategy and rule that fired.

Short answer. plugsky-fusion is a router model, not a fixed model. Send model: "plugsky-fusion" and the gateway picks a model from your tier for each request, using token count, tool presence, prompt heuristics and the strategy configured for the workspace. Send a concrete model name instead when you need deterministic behaviour. model: "auto" is not accepted by /v1/chat/completions.

5 tables · 4 code samples · Last checked 20 November 2026

Who this guide is for

This page is for a developer or platform owner who already has a working Plugsky integration and wants to stop pinning one model to every request. It is most useful when traffic is mixed: short classification calls, long document prompts, tool-using agents and a small number of hard reasoning requests on the same account.

It is not a generic survey of routing research. It documents the live plugsky-fusion surface, the four strategy names, the inputs the reference says the router inspects, and the audit trail. Where the public reference does not publish a field name, this page says so instead of inventing one.

Key facts

The documented plugsky-fusion surface at a glance
ItemDocumented value
Router modelSet model: "plugsky-fusion"
Strategiescost_saver, balanced, max_quality, custom
InputsToken count, tool calls, prompt heuristics, workspace setting
ScopePer workspace, per API key or per request
OverridesSend a specific model name to bypass routing
AuditLogs record the chosen model, the strategy and the matching rule
Classifier routingPOST /v1/plugsky/route with model=auto is labelled coming soon in the routing reference
Product statusLive (plugsky-fusion)

plugsky-fusion is a routing selector, not one of the 39 public model IDs in the live catalogue. It does not appear in GET /v1/models; the catalogue lists the models that can answer. The router chooses among models available to your tier.

How routing decides

When a request arrives with model: "plugsky-fusion", the router inspects the request before inference. The documented inputs are the input token count and expected output size, whether tools are present and how complex they are, prompt heuristics such as domain, language and length, and the strategy configured for the workspace. It then selects a model from your tier.

The router runs inside the API gateway, so there is no extra network hop in your client. That does not mean latency is identical: a stronger model can take longer to produce the first token, and a cheap model can be faster or slower depending on load. Measure end-to-end latency on your own prompts rather than assuming a routing decision is free.

The reference does not publish the classifier, the scoring weights, the candidate list for each strategy or a per-request explanation beyond the chosen model, the strategy and the matching rule. Treat those omissions as design details to test, not as fields to guess.

The four strategies

Documented routing strategies and what each one optimises for
StrategyDocumented behaviourBest fit
cost_saverPicks the cheapest model that can handle the call and falls back to a stronger model on failure.High-volume extraction, classification and batch work where a cheap miss is recoverable.
balancedThe default: mid-tier for most calls, cheap for trivial prompts, strong for hard ones.Mixed production traffic with no single dominant workload.
max_qualityAlways the strongest model available in your tier.Low-volume, high-consequence work where quality outranks cost.
customEvaluates your dashboard rules in order, first match wins.Workloads with clear markers, such as refactor prompts or long documents.

Strategy can be set per workspace, per API key or per request, which makes it practical to run cost-sensitive batch jobs and quality-sensitive interactive traffic on the same account. The workspace setting is the default. The public reference does not publish the field or header that carries a per-request strategy; do not invent a strategy body field or a custom header and assume it is honoured. Use the dashboard for workspace and key settings, and verify the result in the logs.

The minimal working change

Change one value. The request shape, the SDK and the authentication stay the same.

from openai import OpenAI

client = OpenAI(
    base_url="https://api.plugsky.com/v1",
    api_key="YOUR_PLUGSKY_KEY",
)

resp = client.chat.completions.create(
    model="plugsky-fusion",
    messages=[{"role": "user", "content": "Summarise this contract in five bullets."}],
)
print(resp.model)  # the model that actually answered

The live docs example prints resp.model after a fusion call and shows a concrete model such as plugsky-micro. That value is the cheapest way to confirm routing in application code before you inspect the dashboard logs.

For a deterministic request, send a concrete ID instead. The router is bypassed entirely, which is the right choice for a latency-critical endpoint, a regulated workload or a regression test that must not move.

curl -s https://api.plugsky.com/v1/chat/completions \
  -H "Authorization: Bearer $PLUGSKY_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"model":"plugsky-fusion","messages":[{"role":"user","content":"hello"}]}'

Full before/after diff

The diff below keeps the same messages and changes only the model selector. If the application logs resp.model, the log becomes a routing audit trail without any new instrumentation.

  resp = client.chat.completions.create(
-     model="plugsky-pro",
+     model="plugsky-fusion",
      messages=messages,
  )
- print(resp.model)  # always plugsky-pro
+ print(resp.model)  # the model the router chose for this request

A second, safer pattern is to route only one workload at a time. Keep the fixed model for the critical path and move a batch job or an internal tool to plugsky-fusion first. Compare quality, latency and the chosen-model distribution before expanding.

# config.py
- DEFAULT_MODEL = "plugsky-pro"
+ DEFAULT_MODEL = "plugsky-fusion"
+ ROUTING_ENABLED_FOR = {"summarise", "classify", "extract"}
+
+# caller
+ model = DEFAULT_MODEL if task in ROUTING_ENABLED_FOR else "plugsky-pro"

Custom rules

Custom rules map a condition to a model. The reference gives four typical examples: prompts containing a keyword such as refactor go to a coding model; prompts above 4,000 input tokens go to a long-context or frontier model; traffic from free-plan users goes to a free model; business-hours traffic goes to a stronger default.

Rules evaluate in order and the first match wins. Put the most specific conditions first and leave a sensible default for everything else. A broad rule at the top of the list will hide every rule below it, which is the most common custom-routing bug.

The rule schema is not published. The reference documents conditions and outcomes, not a JSON shape, operator list or dashboard field name. Do not copy a rule object from another router and assume Plugsky accepts it. Build rules in the dashboard and confirm the matching rule in the request log.

Model IDs and tier boundaries

The router selects from your tier. It does not promise a specific model, and it does not promise that the same prompt produces the same model twice. Pin an explicit ID when either of those matters.

Router selector versus explicit model IDs, with the catalogue facts that constrain the choice
SelectorWhat it doesWhen to use it
plugsky-fusionRoutes per request using the documented inputs and strategyMixed traffic, batch work, cost-sensitive internal tools
plugsky-micro, plugsky-liteFree-tier modelsEvaluation and light chat; confirm the free-plan caps
plugsky-plus, plugsky-pro, plugsky-maxPaid general-purpose tiersDeterministic chat, RAG and reasoning paths
plugsky-frontierFrontier-quality tier, 262,144 context, 8,192 outputHard work that needs the strongest tier and a bounded output
plugsky-coder, plugsky-coder-ultraCoding specialistsRefactors, code review and agent loops where code quality dominates
plugsky-longctx, plugsky-nano262,144-context optionsDocument analysis and codebase Q&A
plugsky-qwen-vl, plugsky-vision-fast131,072-context vision modelsImage and document workloads; the router does not make a text model see images
plugsky-embedEmbeddings, 2,048 dimensionsRetrieval and clustering; routing does not apply to embeddings

Check the live catalogue before pinning anything. The 39 public IDs, their context windows and their feature flags are the factual boundary; a family name is not. Use the model catalogue for the readable view and GET /v1/models for the machine-readable one.

Streaming, tools and embeddings

Streaming. A fusion request can stream. The routing decision happens before inference, then the chosen model streams normally. A client that reads choices[0].delta.content does not need a different parser. Measure time to first token separately from total latency; the chosen model affects both.

Tools. Tool presence and complexity are documented inputs, so a request that needs tools can be routed to a model that supports them. That is a routing input, not a guarantee that every candidate supports every schema. Validate the argument JSON and test the tool path with the same prompts you use in production.

JSON mode. response_format is a model capability on the Chat Completions surface. The routing reference does not list response_format as a routing input, so do not assume the router protects you from a model that handles your schema poorly. Test the schema and, if it matters, pin a model that passes it.

Embeddings. Routing applies to chat completions. Embedding requests use POST /v1/embeddings with an explicit embedding model such as plugsky-embed. Do not send plugsky-fusion to the embeddings endpoint.

Verification and audit

  1. Read resp.model. One request should return a concrete model ID, not plugsky-fusion.
  2. Send a trivial prompt and a hard prompt. The chosen models should differ under balanced; if they do not, check the strategy and tier.
  3. Force a tool call. Confirm the chosen model supports tools and the argument JSON validates.
  4. Send a long prompt. Confirm the chosen model has enough context and the request does not fail with a context error.
  5. Read the request log. Confirm the chosen model, the strategy and, for custom rules, the rule that matched. This is the documented audit trail.
  6. Compare a sample. Replay 20–50 real prompts against a fixed model and against fusion. Compare quality, latency and the model distribution, not a single request.
  7. Check cost. Flat plans do not bill per token, but plan caps and concurrency still bind. Confirm the chosen models fit the plan's input and output ceilings.

Rollback plan

  • Set the model back to a concrete ID such as plugsky-pro. That bypasses routing for every request and is the fastest rollback.
  • Change the workspace default strategy back to balanced if a custom or max_quality setting caused the change.
  • Keep the fixed-model configuration in the repository so the revert is a one-line diff, not a reconstruction.
  • Keep the routing logs for the rollback window; they are the evidence for which rule or strategy changed behaviour.
  • Do not delete custom rules during an incident. Disable them or change the default so the audit trail remains intact.

Honest comparison

plugsky-fusion compared with one fixed model and a self-built router
Capabilityplugsky-fusionOne fixed modelSelf-built router
Model choice per requestAutomaticNoneYou write classifiers
Cost controlcost_saver strategyManualCustom logic
Quality controlmax_quality strategyFixedCustom logic
RulesDashboard rules, first match winsNot applicableCode deployments
Audit trailModel, strategy and rule loggedModel onlyYou build logging
MaintenanceManagedNoneOngoing engineering

External routers such as LiteLLM and OpenRouter document their own routing and provider-selection behaviour; those are separate products with separate configuration. This page does not claim feature parity with them. The comparison is about operating models: a managed router, a fixed model or a router you build and maintain.

Troubleshooting

Common plugsky-fusion problems and the documented signal to check
SymptomLikely causeCheck
400 on model: "auto"auto is not accepted by /v1/chat/completionsUse plugsky-fusion or a concrete model ID.
404 on the routerSpelling or a client-side model allowlistThe documented selector is plugsky-fusion; check the hyphen and any allowlist.
Every request uses the same modelThe strategy is fixed, the tier is narrow, or the prompts are similarCheck the workspace strategy and the log's strategy field; try a trivial and a hard prompt.
A custom rule never firesAn earlier broad rule matches firstRules evaluate in order, first match wins; move the specific rule up.
A tool call failsThe chosen model lacks tool support or rejects the schemaCheck the model feature list and validate the argument JSON; pin a tool-capable model.
Cost is higher than expectedmax_quality or a broad custom rule sends most traffic to a strong modelReview the chosen-model distribution and the rule order.
No routing detail in logsThe log export or retention window does not include the fieldCheck the request log first; export is a separate configuration.

A status-code error still uses the OpenAI error schema: {"error":{"message","type","code","param"}}. Read the message before changing the strategy; a context error and a routing error look similar in a dashboard but need different fixes.

Frequently asked questions

Does routing add latency?

The router runs inside the API gateway rather than as a separate service, so it does not add a network hop; measure end-to-end latency on your own workload before and after.

Can I override routing per request?

Yes. Send a specific model name such as plugsky-pro and that request bypasses routing entirely.

Can I see routing decisions in logs?

Yes. Every request log includes the chosen model, the strategy and, for custom rules, the rule that matched.

Can I set the strategy per API key?

Yes. Strategy can be set per workspace, per API key or per request; the workspace setting is the default.

Is model=auto supported on chat completions?

No. The classifier-based route endpoint that accepts model=auto is listed as coming soon; chat completions accepts plugsky-fusion or a concrete model name.

What happens if the chosen model fails?

Under cost_saver the router falls back to a stronger model, and the platform's model ladder also cascades to backup profiles when an upstream degrades.

Does routing work with tools and long context?

Yes. Tool presence, complexity and token counts are inputs to the decision, so requests that need tools or large context can be routed to models that support them.

Which request field sets the strategy?

The public reference does not publish a request field or header name for the strategy. It states that the strategy can be set per workspace, per API key or per request, and that the workspace setting is the default. Use the dashboard for workspace and key settings, and treat any per-request field you see elsewhere as unverified until the docs publish it.

Status note on the classifier endpoint

The routing reference labels POST /v1/plugsky/route with model=auto as coming soon. The live API documentation now lists a smart-routing endpoint with model: "auto" and a route_hint value of cost, quality or latency. The two pages disagree on status. This page does not resolve that disagreement by guessing: use plugsky-fusion, which is documented as live, and confirm the classifier endpoint's status before you build on it.

Either way, /v1/chat/completions does not accept model: "auto". That restriction is stated on both the routing reference and the API documentation.

Next steps

If you are migrating an existing OpenAI integration, start with the OpenAI migration guide and add fusion after the base path is stable. For a field-by-field explanation of the chat request, read the Chat Completions reference. For the strategy trade-offs in a longer narrative, see Model Routing — Strategies and Trade-offs.

Test routing on your own traffic

Start free, send a trivial prompt and a hard prompt, then read resp.model and the request log before expanding.

Start free

Sources

The Plugsky routing facts below come from the live routing reference and API documentation. The external links are the official references for the standard request parameter and for the external routers named in the comparison; they were checked on 20 November 2026.

Last checked 20 November 2026. The API host used here is https://api.plugsky.com/v1; the public docs also use https://plugsky.com/v1 as an alias of the same service. Plan caps and prices live at /pricing.