As engineering teams move AI agents from demos into production—generating financial reports, legal summaries, clinical notes, or customer-facing workflows—they hit an architectural wall: chaining unverified LLM calls compounds hallucination probability at every step.
If a 4-step agent pipeline has a 15% fabrication risk at each step, the chance that the final report contains at least one fabricated claim approaches 48%.
Three drop-in API patterns for production agents
Sub-50 µs risk & complexity routing
Call the routing decision endpoint to classify prompt complexity, factual risk (0–100), and recommended model + reasoning effort before invoking your provider.
Cross-provider failover chains
Eliminate single-provider outages. Receive a ranked failover chain across Anthropic, OpenAI, Google, and Moonshot that preserves your factual reliability floor.
Speculative cascades with risk bypass
Run a fast draft model with a frontier verifier on routine tasks—while automatically bypassing cheap drafts when factual hallucination risk is high.
Budget-capped batch optimization
Route hundreds of sub-queries under a strict max_total_cost_usd ceiling using greedy marginal-utility allocation.
Example: Risk-aware routing with telemetry
curl https://edenrouter.com/v1/chat/completions \
-H "Authorization: Bearer $EDEN_ROUTER_KEY" \
-H "x-anthropic-key: $ANTHROPIC_API_KEY" \
-H "x-openai-key: $OPENAI_API_KEY" \
-H "x-gemini-key: $GEMINI_API_KEY" \
-H "content-type: application/json" \
-d '{
"model": "eden-router:level-3",
"x_eden": {"risk_aware": true, "classifier": "auto"},
"messages": [{"role": "user", "content": "Verify the 2025 revenue multiples cited in this draft report."}]
}'
Explore EVES and the 432-question benchmark to see how verification performs in practice.
Frequently asked questions
Do I use my own OpenAI, Anthropic, and Gemini API keys?
Yes. You pass your provider keys in request headers (x-openai-key, x-anthropic-key, x-gemini-key, x-moonshot-key). Eden never stores your provider keys or your prompt/response text.
What happens when a high-risk prompt is sent to /v1/route/cascade?
When risk_aware detects a high-risk factual domain (finance, medicine, law, citations), the cascade automatically bypasses the cheap draft stage and routes directly to a high-reliability verifier model.