Model Router
Core PlatformLearn more in the guide: Model Router
model_router_settings_writeModel RouterPause or resume a facility's Model Router inference, or update its daily, monthly, and total spend limits.
Actions:
- set_pause: Pause or resume inference. Immediately pause or resume Model Router inference for the facility. Needs paused. Asks for confirmation.
- set_spend_limits: Update spend limits. Set or clear daily, monthly, or total spend limits (in USD cents). Pass null to clear a limit. Asks for confirmation.
Parameters
| Name | Type | Description |
|---|---|---|
action* | "set_pause" | "set_spend_limits" | What to do; each action is described in the tool description. |
facilityId | string | Facility ID. Optional when the connected facility is the one you mean. |
paused | boolean | True to pause inference, false to resume. (set_pause) |
spendLimitDailyCents | integernull | Daily spend cap in USD cents, or null to clear. (set_spend_limits) |
spendLimitMonthlyCents | integernull | Monthly spend cap in USD cents, or null to clear. (set_spend_limits) |
spendLimitTotalCents | integernull | Lifetime spend cap in USD cents, or null to clear. (set_spend_limits) |
confirm | boolean | Set only after the user confirmed the preview returned by the first call |
model_router_status_readModel RouterInspect a facility's Model Router status, available prepaid credit balance, configured spend limits, auto-recharge settings, and active API key count.
Actions:
- overview: Get Model Router overview. Return enabled/paused state, available credit balance, spend limits, and auto-recharge settings.
Parameters
| Name | Type | Description |
|---|---|---|
action* | "overview" | What to do; each action is described in the tool description. |
facilityId | string | Facility ID. Optional when the connected facility is the one you mean. |
model_router_usage_readModel RouterRead Model Router request counts and spend totals for today, the current month, and a configurable recent date range, broken down by model.
Actions:
- summary: Get usage summary. Return today, month-to-date, and range spend totals plus top models by spend.
Parameters
| Name | Type | Description |
|---|---|---|
action* | "summary" | What to do; each action is described in the tool description. |
facilityId | string | Facility ID. Optional when the connected facility is the one you mean. |
days | integer | Number of days to summarise (default 30, max 90) when startDate is omitted. |
startDate | string | Optional inclusive start date (YYYY-MM-DD). |
endDate | string | Optional inclusive end date (YYYY-MM-DD). |