🚀 InferRoute Multi-LLM Gateway
Status: ONLINE
🔍 Real-Time Engineering Prompt & Token Optimization Inspector

Live AI Execution & Model Routing Inspector

Test custom prompts or select real prompts from allenai/WildChat-4.8M to inspect how InferRoute scores candidates, evaluates prefix caching, routes models, and calculates token & cost breakdowns step-by-step.

📝 Prompt Tester & WildChat Dataset Selector ESTIMATE
⚡ OpenAI Chat Completions-Compatible API (Tested with OpenAI Python SDK)

InferRoute: Multi-LLM Dynamic Router & Gateway

Optimizes model routing across OpenAI, Google Gemini, and self-hosted vLLM clusters. Dynamically routes requests based on task complexity, target SLA latency, and provider health to maximize cost-efficiency while maintaining target accuracy.

🔌 OpenAI Python SDK Drop-In Code Example
from openai import OpenAI client = OpenAI( api_key="sk-inferroute-demo", base_url="http://localhost:8080/v1" # Or public Space URL ) response = client.chat.completions.create( model="edge/auto", messages=[{"role": "user", "content": "Analyze technical indicators"}] ) print(response.choices[0].message.content)
curl http://localhost:8080/v1/chat/completions \ -H "Authorization: Bearer sk-inferroute-demo" \ -H "Content-Type: application/json" \ -d '{ "model": "edge/auto", "messages": [{"role": "user", "content": "Hello InferRoute"}] }'
Gateway Execution & Failover Architecture

1. Prefix-Aware & Cache Routing

Matches repeated prompt prefixes to route to self-hosted vLLM nodes holding warm KV states (--enable-prefix-caching). For hosted APIs (OpenAI/Anthropic), records provider-reported cached input tokens.

2. SLO & Complexity Classifier

Scored routing across candidate models. Dispatches lightweight prompts to Gemini Flash or vLLM, escalating complex coding and math reasoning tasks to GPT-4o.

3. Circuit Breaker & Deduplication

Sub-10ms routing decision overhead when bypassing an OPEN circuit provider. Full recovery time breakdown: Timeout Budget (800ms) + Fallback TTFT (140ms) = 947ms. Coalesces duplicate queries via Redis Pub/Sub.

🌐 Ecosystem App Showcase (Active & Planned Clients)
🟢 Active Integrations
📈

Quant-AI Financial Trading Agent

LIVE ACTIVE CLIENT

Autonomous quantitative strategy generator & market sentiment parser. Connected via OpenAI-compatible SDK endpoint.

Tenant ID: quant-app
Requests Routed: 1,284
Primary Route: Gemini Flash / Llama-3
Fallback Rate: 1.2%
Cost Saved: $8.42
Last Active: 4 mins ago
🟡 Planned Integrations
👤 Face & Vision Feature AI PLANNED

Facial attribute analysis and multimodal visual description. Routes visual queries to Gemini Flash / Vision nodes.

🤖 Multi-Agent Framework PLANNED

Autonomous multi-agent orchestration. Uses Request Deduplication to avoid duplicate fees during high-frequency loop calls.

📊 Empirical Benchmark Evidence & Reproducible Artifacts
🔍 Benchmark Provenance & Downloadable Artifacts REPRODUCIBLE
Run ID: rb-2026-07-30-001 | Commit SHA: 9b3fae3 | Date: 2026-07-30
Environment: Hugging Face Space CPU / us-east | Pricing Snapshot Date: 2026-07-30
Datasets Evaluated: WildChat-4.8M (3,684), GSM8K (2,500), Alpaca (2,500), MBPP (1,316)
📥 Download summary.csv 📥 Download requests.jsonl
📈 Benchmark Metrics (10,000 Prompts Workload)
10,000
Evaluation Requests
BENCHMARK
77.6%
Model Spend Saved
vs Direct GPT-4o
98.8%
Absolute Accuracy
99.6% Accuracy Retention
99.94%
Test Success Rate
Failure-Injection Benchmark
Accuracy & Accuracy Retention Distinction:
• GPT-4o Baseline Oracle Accuracy: 99.2%
• InferRoute Routed Accuracy: 98.8% (Absolute Difference: -0.4 percentage points)
• Accuracy Retention Rate: 99.6% (calculated as 98.8% / 99.2%)
💰 Real-Time Cost Savings & Baseline Comparison 87.7% Savings
🧮 Interactive API Spend Savings Calculator (明确计算每月可节约金额)

Adjust request volume, average tokens, and baseline provider to calculate your exact monthly and annual dollar savings:

Direct Provider Spend

$833.00

Unoptimized raw cost / mo

InferRoute Routed Spend

$124.90

Dynamic routed cost / mo

Monthly Dollar Savings

$708.10 / mo

85.0% Net Savings

Annual Projections

$8,497.20 / yr

Projected annual savings

⚡ Live Multi-Model A/B Benchmark & Latency Suite (多模型同场竞技测试)

Executes side-by-side benchmark comparing Direct GPT-4o vs InferRoute Cascade vs Gemini Flash vs Local vLLM on identical prompts:

📊 Unified Analytics & Real-Time Monitor Live Log Calculation
0
Total Requests
All Client Aggregation
$0.00
Total Cost Saved ($)
vs Direct GPT-4
0
OpenAI / Agent Requests
High-Reasoning Cluster
0
Gemini / Quant Requests
Fast Trading Cluster
📜 eval_results.json Benchmark Log Output
Loading evaluation metrics...