orq.aiAdvent of RoutingDocs

Door 6 · still sealed

Hands off the wax, elf. This door opens on Dec 6.

-days--hours--min--sec

Rudolph is still polishing this one. Back to the calendar

Door 6 · Dec 6 Auto models (orq/auto)

“Just pick for me”

Put orq/auto in the model field and each request goes to a cheap, mid-priced or strong model that fits it, picked fresh every time.

St Nicholas morning. Santa has scrolled the model catalog through two mugs of cocoa and still has not picked one.

  1. Santa

    Tinsel, this catalog is longer than the letter pile! Which model answers the children? Just pick for me.

  2. Tinsel

    Some letters say "a bike, please". Others are three pages about a dragon that also does homework.

  3. Santa

    Then give every letter to the cleverest model. All of them, before lunch! How much could that cost?

  4. Tinsel

    That bills a crayon wish list at dragon prices. Use orq/auto: it seats a cheap, a middle and a strong model and sends each letter to one.

  5. Rudolph

    Short hop next door: light crew. Atlantic crossing: full team. Same sleigh.

clientYour appmodel: orq/autoorq.aiorq/autoroute by complexityeasy bandEasy seatcheapest of the threehard bandHard seatstrongest of the threeresponseAnswermodel: the real onesimplecomplex
  1. clientYour appmodel: orq/auto
  2. orq.aiorq/autoroute by complexity
  3. easy bandEasy seatcheapest of the three
    hard bandHard seatstrongest of the three
  4. responseAnswermodel: the real one
orq/auto sends the crayon wish list to its cheapest seat and the dragon essay to its strongest, with a middle seat in between, and the answer names the model that wrote it.

How it works

Santa’s “just pick for me” is one model id. Orq.ai builds the pool for orq/auto fresh on every request, from the models your workspace can call at that moment:

  1. Callable models. With an allowlist, only enabled models count. Otherwise, any active catalog model counts if your workspace has a provider key for it or may use Orq.ai’s keys, plus your private models.
  2. Quality floor. Models below an Intelligence Index of 15 drop out, as do models without Artificial Analysis metadata. Free endpoints and -contributor endpoints, whose prompts may be used for training, are never seated.
  3. Pareto frontier. Any model beaten by a cheaper model that is equally or more intelligent drops out. What is left is the frontier of Intelligence Index against price.
  4. Three seats. orq/auto seats three frontier models, one per band: Easy, Medium and Hard. It aims for at least a 2.75x price gap between neighbouring bands. Each request goes to one band, by complexity.

Each request is billed at the price of the model it resolves to.

Try it with curl

Enable orq/auto in the Model Garden first.

curl -X POST https://my.orq.ai/v3/router/responses \
  -H "Authorization: Bearer $ORQ_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "model": "orq/auto",
    "input": "Reply to this letter to Santa"
  }'

Or from the OpenAI SDK

from openai import OpenAI
import os

client = OpenAI(
    api_key=os.environ["ORQ_API_KEY"],
    base_url="https://my.orq.ai/v3/router",
)

response = client.responses.create(
    model="orq/auto",
    input="Reply to this letter to Santa",
)
print(response.model)  # the concrete model it resolved to
print(response.output_text)

Spans in your traces also carry orq.auto_router.preset, which names the auto model that made the choice.

Which auto model to pick

Every workspace gets seven, under the orq provider. auto* routes by complexity across three seats. frontier* always resolves to one model.

Model Picks
orq/auto One of three price-tiered frontier models, by complexity
orq/auto-open Same, open-weight models only
orq/auto-eu Same, EU-hosted endpoints only
orq/frontier The strongest model your workspace can call
orq/frontier-open Same, open-weight models only
orq/frontier-eu Same, EU-hosted endpoints only
orq/frontier-cheapest The cheapest model in the top third of the catalog by Intelligence Index

Choose a Smart Router instead when you need a fixed pool, or Cost or Quality mode. Names auto, frontier and anything starting with auto- or frontier- are reserved for Orq, and creating a Smart Router with one returns HTTP 409.

To look at a price/quality frontier yourself, run uvx --from evaluatorq eq models pareto (add --dominated to list the models that get beaten). It uses its own score floor, so its list need not match the models orq/auto seats.

Where it works

Auto models work on the /v3 router endpoints (chat completions, responses and messages), on Deployment invokes over the API, and on Agents run through the responses endpoint (set the Agent’s model to orq/auto and call it with "model": "agent/<agent_key>"). The Playground, the Studio run button, the /v2 proxy endpoints, Workflows and the /v2 Agents runtime do not support them yet.

When the frontier is small

With two frontier models, auto* uses two bands. With one, that model serves every request. With no callable model, the request fails with HTTP 400, and on /v3 the error type is invalid_request_error.

Nice list

  • Read model in the response to see who answered. The response, traces and billing name the concrete model, never orq/auto.
  • Use orq/auto-eu when requests must stay on EU-hosted endpoints, and orq/auto-open when only open-weight models may answer.
  • Add fallbacks to orq/frontier requests. A frontier* model resolves to one model, so a provider outage on it fails the request.

Naughty list

  • Hard-coding yesterday's response.model into your config. The pool is rebuilt on every request, so the seats can change when the catalog or your keys do.
  • Setting a tiny output-token limit with a reasoning model. It can spend the whole budget thinking and return an empty reply. Allow 256 or more.
  • Testing orq/auto in the Playground or through a /v2 proxy endpoint. Neither supports auto models yet, so call it on the /v3 router.
  • Sending a higher reasoning effort and hoping for a stronger seat. Models are ranked at their default effort, so the effort you send does not change the ranking.

Elf's challenge

Send orq/auto two letters: What is 2+2?, then a three-step puzzle about packing a sleigh. Which response field names the model that answered each, and did they match?

Stuck? Ask Tinsel for a hint

Read model in each response: it names the concrete model, never orq/auto. Each auto* request is routed by complexity, so the two can land on different seats.

Christmas crackerWhy did the pricey reindeer never get a seat on orq/auto's sleigh?Pull it for the punchline

A cheaper reindeer flew just as high. Dominated.