Recommended Profile Settings
| Setting | Value | Reason |
|---|---|---|
| Tier floor | STANDARD | Never use NANO/SIMPLE/LIGHT for code - quality matters |
| Tier ceiling | COMPLEX | Allow Claude Opus, DeepSeek V4 Pro, or GPT-5.5 for hard algorithmic tasks |
| Cost cap | $0.05/request | Code prompts can be long; $0.05 is generous but bounded |
| Vision | Optional | Enable if users can paste screenshots of code/errors |
| Tool calling | On | Enable if the assistant calls functions (file read, terminal, etc.) |
| Tool quality | 70%+ | Require reliable tool use - code assistants often call tools |
Step 1 - Create the profile
- Go to Playground → Configure
- Name it
Code Assistant - Set tier floor: STANDARD, ceiling: COMPLEX
- Set cost cap:
$0.05 - Enable Tool calling if your assistant uses tools
- If tool calling is on, set tool quality to 70% minimum
- Click Save & get API key
Step 2 - Use the profile key in your app
Node.js - with tool calling
Python
How routing looks for code tasks
| Task | Expected tier | Typical model |
|---|---|---|
”What does x?.foo mean in TypeScript?” | STANDARD | Claude Haiku 4.5 |
| ”Write a regex to match email addresses” | STANDARD | GPT-5.4 |
| ”Refactor this 200-line auth module” | COMPLEX | Claude Sonnet 4.6 |
| ”Implement a lock-free concurrent queue in Rust” | COMPLEX | Claude Sonnet 4.6 |
| ”Prove this sorting algorithm is O(n log n)“ | COMPLEX | DeepSeek Reasoner |
| ”Design a distributed rate limiter” | COMPLEX | Claude Sonnet 4.6 |
Streaming for autocomplete
If you’re building an IDE extension or real-time autocomplete, enable streaming:Cost estimate
On a coding assistant handling 2,000 requests/day:| Scenario | Daily cost |
|---|---|
| All requests to Claude Sonnet 4.6 | ~$60 |
| With Routor (STANDARD→COMPLEX profile) | ~$35–42 |
| Savings | ~$18–25/day |
Related
- Create a routing profile
- Understanding routing tiers
- Cline / Roo Code integration - if you’re using AI coding assistants
- LangChain integration - if you’re using agents with tool calling