RouterUpdate
The fields to change. Any field left out keeps its current value.
A new name. Requests that use the old name fail with 404 from then on.
Possible values: <= 100 characters
prod-v2Can't change. Accepted only when it's the router's current mode.
Possible values: [proposal, gateway]
One of the router models GET /v1/router-models lists
emissary-model-router-shared-v3The name of the model the router falls back to. One of the enabled target_models.
claude-haiku-4.5Possible values: >= 0 and <= 1
0.5target_models object[]
Replaces the router's models as a whole: send every model the router should keep. Entries take defaults as on create, from GET /v1/router-models, not from the router's current models. A model you resend without its prices gets the catalog's prices again, so resend any you've overridden.
The model's catalog name, which is also the router model's label for it. Must be one the router model lists (router_models[].models[].name in GET /v1/router-models), and unique within the router.
deepseek-v4-flashWhere the gateway serves the model, with the key you add for it in providers. Required for every enabled model of a gateway router; not allowed on a Proposal Mode router. With a provider the catalog entry has no id for (such as litellm), send model_id too.
Possible values: [anthropic, openrouter, openai, litellm, baseten]
openrouterThe 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 for your app to send. Default, the model's name on a Proposal Mode router and its id at provider (catalog providers) on a gateway router; required for litellm, whose ids are your own.
deepseek/deepseek-v4-flashA disabled model stays on the router but is never picked. The router's default must be enabled.
trueUSD per million input tokens. Default, the catalog entry's input_per_mtok.
0.14USD per million output tokens. Default, the catalog entry's output_per_mtok.
0.28USD per million cache-read tokens. Default, the catalog entry's cache_read_per_mtok.
0.028USD per million cache-write tokens. Default, the catalog entry's cache_write_per_mtok.
0.14The model's context window, in tokens. Default, the catalog entry's context_window.
1000000Whether the model accepts images. Default, the catalog entry's supports_vision.
Lets the router pick the model's reasoning effort. Takes effect only on a model whose catalog entry lists efforts; on any other it's stored off.
falsePer-model overrides, such as always_on_reasoning set to true for a model that can't turn reasoning off
providers object[]
Replaces the router's provider credentials as a whole. A provider sent without api_key keeps its stored key.
Possible values: [anthropic, openrouter, openai, litellm, baseten]
openrouterAn endpoint to use instead of the provider's default. Required for litellm, which has none.
https://litellm.example.com/v1{
"name": "prod-v2",
"mode": "proposal",
"router_model": "emissary-model-router-shared-v3",
"default": "claude-haiku-4.5",
"confidence": 0.5,
"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": true,
"effort_routing_enabled": false,
"extra_fields": {}
}
],
"providers": [
{
"name": "openrouter",
"api_base_url": "https://litellm.example.com/v1"
}
]
}