Ask via Smart Router
ask_routerRoute a prompt to the appropriate LLM and get the answer plus the model, provider, routing reason, and latency. Set sandbox true for a free mock answer.
Instructions
Send a prompt through the AI Stupid Level Smart Router and return the answer, together with which model answered, its provider, why the router chose it and the latency. The router calls the model with the provider keys saved in the user's ASL account, so a real call is billed by that provider and counts against the router plan; set sandbox: true for a free mock answer. Needs a router key (ASL_ROUTER_KEY).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| mode | No | Routing mode (default auto = the strategy saved in the account): auto-best (highest combined score), auto-coding, auto-reasoning, auto-tooling (top model on that benchmark), auto-task (reads the prompt and picks the benchmark), auto-value, auto-value-coding, auto-value-reasoning, auto-value-tooling (most points per measured dollar among models within 5 points of the best), auto-fastest-quality, auto-consistent (fastest or steadiest near-top model), auto-fastest, auto-cheapest (no quality bar). | |
| prompt | Yes | The user message to send. | |
| system | No | An optional system message. | |
| sandbox | No | Sandbox: run the real routing as if the account had a key for every provider and return a mock answer. Nothing is called, spent or counted. | |
| pin_model | No | Pin a specific model id (for example gpt-6-sol) instead of a routing mode. | |
| max_tokens | No | Upper bound on the answer length in tokens. | |
| reasoning_effort | No | Reasoning effort for models that support it. |