RouterTargetModelInput
A model for the router to route across.
Required: name, and on a gateway router, provider for every enabled model.
Everything else is optional. A field you leave out (or send as null) gets Emissary's default for the model: its entry in the router model's catalog, which GET /v1/router-models lists under router_models[].models. Send a field only to override that default, for example your own negotiated prices.
| Field | Default when left out |
|---|---|
model_id | Proposal Mode router: the model's name. Gateway router: the model's id at provider, from the catalog entry's providers. No default when the catalog has no id for the provider (litellm), so send it. |
input_per_mtok, output_per_mtok, cache_read_per_mtok, cache_write_per_mtok | The catalog entry's prices |
context_window, supports_vision | The catalog entry's values |
enabled | true |
effort_routing_enabled | false |
Defaults are copied into the router when it's saved, and the response shows every field as saved. A later change to the catalog doesn't change a saved router.
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
{
"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": {}
}