Skip to main content

Use Auto Routing

Auto Routing lets an application send model="auto" so the platform picks the best-suited model for each chat request. Your platform administrator chooses the models in rotation, the strategy, and the thinking level. You can see them in Account → Settings (in your deployed Console), but you can't change them.

Settings — read-only Auto Routing card with its status, the models in rotation, and how billing works

Before You Start​

  • Open Account → Settings (in your deployed Console) and check that Auto Routing shows On.
  • Use an API key whose Allowed Models includes Auto Routing, or a key without a model restriction.
  • Auto Routing works with /v1/chat/completions only.

Send a Request​

Use the current environment values and a protected API key:

curl "$SMART_STUDIO_BASE_URL/v1/chat/completions" \
-H "Authorization: Bearer $SMART_STUDIO_API_KEY" \
-H "Content-Type: application/json" \
-d '{"model":"auto","messages":[{"role":"user","content":"Hello"}]}'

The response identifies the model that handled the request.

What Settings Shows​

ItemMeaning
StatusOn: requests with model="auto" are routed. Paused: Auto Routing is temporarily unavailable and comes back on its own. Off: it isn't turned on for this platform; ask your administrator.
Strategy and thinkingFor example, Quality first · Thinking: Strongest, as set by your administrator.
Models in rotationThe models Auto Routing can pick from right now.
Task-check modelThe lightweight model that reads each request first.

How Billing Works​

Each auto request starts with a quick task check by a lightweight model. It's billed at that model's rate and listed as "Auto · Classifier" in your usage. The answer itself is billed at the rate of the model that handled it. Repeated identical requests may skip the check.

To pick a model, the task-check model reads your latest message. If your request sets its own reasoning options, they are sent as they are.

Verify the Result​

  1. Send a controlled request with model="auto".
  2. Check the model field in the response.
  3. Open History and inspect the selected model and provider.
  4. Review Usage for the request and its "Auto · Classifier" task check.

Troubleshooting​

  • Your API key rejects auto: add Auto Routing to the key's Allowed Models, or use a key without a model restriction that is approved for the test.
  • A specific provider is unexpected: Auto Routing picks the model first; Provider Selection then decides which of its providers is tried first.

When Auto Routing can't take a request, the error response tells you why:

HTTPerror.codeWhat it means
400auto_routing_unsupported_endpointauto works with /v1/chat/completions only. Send a specific model to other endpoints.
400auto_routing_not_deployedThis platform doesn't include Auto Routing.
400auto_routing_disabledAuto Routing isn't turned on for this platform. Ask your administrator.
503auto_routing_suspendedAuto Routing is paused and will come back on its own shortly. Retry later or send a specific model.
503auto_routing_no_candidates, auto_routing_unavailableNo model is available for auto right now. Retry later or send a specific model.
400auto_routing_infeasibleNone of the models in rotation can handle this request. The error message says why.

Next Step​

Configure Provider Selection when a model has multiple providers, or Default Fallback for recovery from failed direct-model requests.