route
Selects the cheapest reachable free or paid LLM for a given prompt, returning the chosen model, cost estimates, fallback chain, and reasoning.
Instructions
Given a prompt, route it to the cheapest reachable free/cheap LLM. Returns the chosen model, estimated cost (USD + CNY), a fallback chain, and reasoning. Reuses Free & Cheap Tokens model channels (Kimi K2.6, Qwen, DeepSeek, Cloudflare Workers AI, Groq, Gemini, etc.).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| prompt | Yes | The task prompt to route. Token estimate is derived from it. | |
| region | No | CN = mainland-accessible without VPN. | global |
| priority | No | Routing objective. | cost |
| include_paid | No | Allow paid models as fallback when no free model fits. | |
| max_output_tokens | No | Expected output tokens for cost estimation. | |
| required_capabilities | No | Capabilities the model must support, e.g. ["chinese","reasoning"]. |