Preview routing and cost
lobstack_route_previewScore a prompt to preview which model the router would pick and what it would cost, without running inference or needing an API key.
Instructions
Score a prompt and report which model the Lobstack router would serve it with, and what that would cost. Runs no inference, spends nothing, and NEEDS NO API KEY — use it to pick a model before calling lobstack_chat, or to show what the gateway does on a machine with no key configured. Token counts are estimates; the billed figure comes from the provider's usage block on the real call.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| prompt | Yes | The prompt to score. Scored, never sent to a model. | |
| plan_tier | No | Plan id, which sets the ceiling the router may reach. Defaults to the pro ceiling. | |
| requested_model | No | A model key to compare against, e.g. "claude-opus-5". Defaults to "auto". | |
| conversation_length | No | Messages already in the conversation; it feeds the complexity score. | |
| expected_output_tokens | No | How long the reply is expected to be. Defaults to half the prompt, which is the common chat ratio. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| tier | Yes | ||
| reason | Yes | ||
| routed | Yes | True when the router would serve something other than what was requested. | |
| baseline | Yes | Only present when a model was named and the router moved away from it — the "named" case. | |
| provider | Yes | ||
| estimated | Yes | Always true. These are estimates, not a bill. | |
| complexity | Yes | ||
| served_label | Yes | ||
| served_model | Yes | The model this prompt would actually be routed to. | |
| token_estimate | Yes | ||
| requested_model | Yes | ||
| estimated_cost_usd | Yes | Null when the registry cannot price the model. | |
| estimated_cost_display | Yes | ||
| managed_key_configured | Yes |