Skip to main content

Router

A router, as the API returns it. Provider keys are never returned.

idstring

The router's unique identifier. The API addresses routers by name.

Example: gwcfg-4mvkcxd2g8znkdt8emswb8
namestring

Unique within your account (or organization). Proposal Mode's router field and the gateway's model field name the router by it.

Possible values: <= 100 characters

Example: prod
modestring

How your app calls the router, fixed when it's created. proposal for POST /v1/route, gateway for the gateway.

Possible values: [proposal, gateway]

Example: proposal
router_modelstring

The router model that scores each request

Example: emissary-model-router-shared-v3
defaultstring

The name of the model the router falls back to when no other model is confident enough; the anchor of every decision. One of the enabled target_models.

Example: claude-haiku-4.5
confidencenumber

Minimum score a model needs before it can be picked instead of the default. Higher is more conservative.

Possible values: >= 0 and <= 1

Example: 0.65
is_zdrboolean

Zero data retention. When false, request and response payloads are kept for session replay on the dashboard.

Example: true
target_models object[]

The models the router can pick

  • Array [
  • namestring

    The model's catalog name, which is also the router model's label for it. Proposal Mode returns it as a candidate's model.

    Example: deepseek-v4-flash
    providerstring | nullnullable

    Where the gateway serves the model. Null on a Proposal Mode router.

    Possible values: [anthropic, openrouter, openai, litellm, baseten, null]

    Example: openrouter
    model_idstring

    The id the model is called by. On a gateway router, what Emissary sends the provider; on a Proposal Mode router, what POST /v1/route returns as a candidate's model_id, for your app to send.

    Example: deepseek/deepseek-v4-flash
    enabledboolean

    A disabled model stays on the router but is never picked

    Example: true
    input_per_mtoknumber

    USD per million input tokens

    Example: 0.14
    output_per_mtoknumber

    USD per million output tokens

    Example: 0.28
    cache_read_per_mtoknumber | nullnullable

    USD per million cache-read tokens. Null prices them as input tokens.

    Example: 0.028
    cache_write_per_mtoknumber | nullnullable

    USD per million cache-write tokens. Null prices them as input tokens.

    Example: 0.14
    context_windowinteger | nullnullable

    The model's context window, in tokens

    Example: 1000000
    supports_visionboolean

    Whether the model accepts images

    Example: false
    effort_routing_enabledboolean

    Lets the router pick the model's reasoning effort. Only on models the router model has efforts for (efforts in GET /v1/router-models); it's stored off on any other.

    Example: false
    extra_fieldsobject | nullnullable

    Per-model overrides, such as always_on_reasoning set to true for a model that can't turn reasoning off

    Example: null
  • ]
  • providers object[]

    The router's provider credentials, without their keys. Empty on a Proposal Mode router.

  • Array [
  • namestring
    Example: openrouter
    api_base_urlstring | nullnullable

    The endpoint used instead of the provider's default

    Example: null
    has_api_keyboolean
    Example: true
  • ]
  • created_atinteger

    Unix timestamp (seconds) of when the router was created

    Example: 1795551249
    updated_atinteger

    Unix timestamp (seconds) of the router's last change

    Example: 1795551257
    Router
    {
    "id": "gwcfg-4mvkcxd2g8znkdt8emswb8",
    "name": "prod",
    "mode": "proposal",
    "router_model": "emissary-model-router-shared-v3",
    "default": "claude-haiku-4.5",
    "confidence": 0.65,
    "is_zdr": true,
    "target_models": [
    {
    "name": "deepseek-v4-flash",
    "provider": "openrouter",
    "model_id": "deepseek/deepseek-v4-flash",
    "enabled": true,
    "input_per_mtok": 0.14,
    "output_per_mtok": 0.28,
    "cache_read_per_mtok": 0.028,
    "cache_write_per_mtok": 0.14,
    "context_window": 1000000,
    "supports_vision": false,
    "effort_routing_enabled": false,
    "extra_fields": null
    }
    ],
    "providers": [
    {
    "name": "openrouter",
    "api_base_url": null,
    "has_api_key": true
    }
    ],
    "created_at": 1795551249,
    "updated_at": 1795551257
    }