Skip to main content

RouteProposal

decision_idstring

Identifies this decision. Report its usage to POST /v1/route/{decision_id}/usage.

Example: dec-2b7e1f0c-9a4d-4c3e-8f5a-6d1b2c3e4f5a
request_idstring | nullnullable

The request_id you sent, if any

Example: my-req-001
reasonstring

Why the first candidate leads. One of:

  • cheapest_confident: the cheapest model confident enough to take the request
  • warm_cheapest: the default, cheapest once its warm prompt cache is counted
  • escalated: the default wasn't confident and every confident model costs more, so the cheapest of those
  • no_confident: no model was confident enough, so the default
  • context_exceeds_config: the request is longer than every model's context window, so the default
  • unrecognized_payload: nothing to score in body, so the default
  • fallback:router_issue: scoring failed, so the default
  • fallback:label_mismatch: the router model can't score some of the router's models, so the default
Example: cheapest_confident
candidates object[]

The router's models, most recommended first. The first is its choice; move down the list if calling it fails.

  • Array [
  • modelstring

    The model's name on the router. Send it as model when you report usage.

    Example: deepseek-v4-flash-0731
    model_idstring

    The id to call the model by, as set on the router

    Example: deepseek/deepseek-v4-flash-0731
    confidencenumber | nullnullable

    The router model's score for this model on the request, from 0 to 1

    Example: 0.96
    effortstring | nullnullable

    The reasoning effort the router picked for the model, to set on the request. Null leaves the request's own effort.

    Example: low
  • ]
  • warnings object[]

    What you can act on about this request or its result. Usually empty.

  • Array [
  • codestring

    A stable code to branch on:

    • unreadable_request: no task or conversation could be read from body, so the default is proposed
    • router_unavailable: the router model didn't answer, so the default is proposed
    • label_mismatch: the router model can't score some of the router's models, so the default is proposed
    • context_exceeds_models: the request is longer than every model's context window; the default is proposed, but its provider will likely refuse it
    • no_session: the request continues a conversation but no session id was found, so routing can't tell which model's cache is warm

    Possible values: [unreadable_request, router_unavailable, label_mismatch, context_exceeds_models, no_session]

    Example: no_session
    messagestring
    Example: This request continues a conversation, but no session id was found in `session_id` or `headers`, so routing can't see which model's cache is warm.
  • ]
  • RouteProposal
    {
    "decision_id": "dec-2b7e1f0c-9a4d-4c3e-8f5a-6d1b2c3e4f5a",
    "request_id": "my-req-001",
    "reason": "cheapest_confident",
    "candidates": [
    {
    "model": "deepseek-v4-flash-0731",
    "model_id": "deepseek/deepseek-v4-flash-0731",
    "confidence": 0.96,
    "effort": "low"
    }
    ],
    "warnings": [
    {
    "code": "no_session",
    "message": "This request continues a conversation, but no session id was found in `session_id` or `headers`, so routing can't see which model's cache is warm."
    }
    ]
    }