Perplexity Orchestrator cookbook routes LLMs by capability
Perplexity CTO Denis Yarats outlines a plain-English Python recipe for routing requests across GPT-6.2-Sol, Claude Opus 5.5, and Gemini 4 Neon via Perplexity Orchestrator API's perplexity/auto endpoint and Decider v1.3. The example responds to Flexport CEO Ryan Petersen's report that capability-based routing with decision models cut LLM spend 46% for 3.7 percentage points fewer passes at equal median latency.
Plain-English route definitions backed by dedicated decision models turn multi-model routing from brittle heuristics into a few lines of request config, though the hard part remains defining capability boundaries rather than wiring the gateway.
- –Capability-based rules beat domain labels: Flexport found that tagging requests by needed skill (grouping records, arithmetic, handling missing data) rather than subject matter (such as invoices) was the only framing that delivered 46% cost savings without latency penalties.
- –Perplexity Orchestrator API (launched in November alongside open-weight Decider v1.3) lets developers pass up to five natural-language routes plus a `default_model` directly in OpenAI or Anthropic SDK calls, with zero-data-retention support and optional automatic `reasoning_effort` selection.
- –The decision model evaluates full conversation text and tool calls on every turn, allowing multi-turn workflows to switch models mid-thread—though switching models breaks per-model prompt caching, which can erode savings in long agent loops.
- –For teams comparing LiteLLM, OpenRouter, or standalone decision models like TypeSafe's Jev, bundling model routing with automatic same-model provider failover and `x-perplexity-autoroute-confidence` response headers streamlines production debugging and cost auditing.
DISCOVERED
58m ago
2026-12-02
PUBLISHED
1h ago
2026-12-02
RELEVANCE
AUTHOR
AravSrinivas
