Smart AI Routing
Forge Router Tool
Always use the best AI model for every task. Automatically.
All ToolsSubscribe Now
Forge Router
Smart AI Routing
Forge Router analyzes every request, classifies the task type, and routes to the optimal provider-model pair. Coding tasks go to Claude Sonnet. Classification tasks go to Gemini Flash (10x cheaper). Search tasks go to Perplexity. You write one API call, Forge Router picks the best model. Average cost reduction: 70%.
Features
- 340+ models across all providers
- Task-type classification (<1ms)
- Per-task-type routing profiles
- Cost vs quality tuning
- Automatic fallback chains
- Routing analytics dashboard
- OpenAI-compatible API endpoint
API Endpoints
POST
/v1/tools/router/routeRoute a request to optimal provider
GET
/v1/tools/router/modelsList available models
GET
/v1/tools/router/statsRouting statistics
GET
/v1/tools/router/healthHealth check
Use Cases
Stop overpaying by sending every request to GPT-4o
Automatically use cheaper models for simple tasks
Route coding tasks to Claude, search to Perplexity
A/B test models without code changes
Quick Start
const res = await fetch('https://api.optima-forge.com/v1/tools/router/route', {
method: 'POST',
headers: {
'Authorization': 'Bearer ftk_router_your_key_here',
'Content-Type': 'application/json',
},
body: JSON.stringify({
prompt: 'Write a React component for user authentication',
preferences: { optimize: 'cost' },
}),
});
const { provider, model, score, estimated_cost_usd } = await res.json();
// provider: "anthropic", model: "claude-sonnet-4-20250514"
// estimated_cost_usd: 0.003 (vs $0.01 if you always used opus)Ready to start?
Get your API key in seconds. $12/month, cancel anytime.