Perplexity Orchestrator API Guide (2026): Failover vs Model Routing
On November 17, 2026, Perplexity launched Orchestrator, an API that puts proprietary and open-weight models behind one endpoint with consolidated billing. The launch bundles two features that sound similar and do different jobs. One is provider failover. The other is automatic model routing. If you read the headline and assume the router picks a cheaper model when things break, you will set up your retries wrong.
This guide separates the two features, shows the request formats, and gives you a pricing table to check the cost math against. It also shows a retry wrapper you can put in front of any OpenAI-compatible endpoint.
Key Takeaways
- Perplexity launched Orchestrator on November 17, 2026. It offers one API with consolidated billing for proprietary and open-weight models.
- Same-model failover retries another deployment of the model you already selected after an eligible provider error. It does not switch you to a different model.
- The optional
perplexity/autopreview chooses a model for each request. It is a separate feature from failover. - Orchestrator accepts OpenAI Chat Completions, OpenAI Responses, and Anthropic Messages request formats.
- In Perplexity's own 63-task comparison, two routed Claude Code setups each solved 41 tasks, versus 38 for Claude Fable 5.2 alone, at a higher estimated cost per task.
Failover and Routing Are Different Features
Failover solves a reliability problem. Suppose an Anthropic deployment returns an error that Orchestrator classifies as eligible for retry. Orchestrator sends the same model to another deployment of that model. Your code receives a response from, say, Claude Fable 5.2 either way. The model did not change, so your evals and output style stay the same.
Routing solves a selection problem. With perplexity/auto, you send a request without naming a model, and Orchestrator picks one. Your outputs may come from different models across calls. That is useful for a support bot with mixed difficulty. It is a bad fit for a pipeline where you tested one model's output format.
Perplexity describes both as optional, and you can use failover without routing. Keep the model name explicit if your downstream code depends on a specific model's behavior.
Pricing You Can Check Against
Orchestrator's own per-token rates were not in the sources we could fetch on November 20, so the table below lists direct provider list prices. Check Perplexity's pricing page before you budget a routed workload. Prices are USD per 1M tokens.
| Model | Input | Cached input | Output | Context window |
|---|---|---|---|---|
| Claude Fable 5.2 | $8.00 | $0.20 | $40.00 | 1,000,000 tokens |
| Claude Opus 5.5 | $4.00 | $0.20 | $20.00 | 1,000,000 tokens |
| Claude Sonnet 5.5 | $2.00 | $0.10 | $10.00 | 1,000,000 tokens |
| GPT-6.2 Sol | $2.00 | $0.10 | $10.00 | 1,050,000 tokens |
| GPT-6.1 Terra | $1.00 | $0.05 | $5.00 | 1,050,000 tokens |
The gap is large. One Fable 5.2 output token costs $40 per million, which is four times the Sonnet 5.5 output rate of $10. A routed setup that sends easy traffic to a cheaper model can cut spend, but Perplexity's own numbers show the routed Claude Code setups costing more per solved task than Fable alone. Measure cost per completed task on your own workload before you trust either claim.
How the Features Compare
| Mode | What triggers it | Does the model change? | Who picks the model |
|---|---|---|---|
| Same-model failover | An eligible provider error | No, the same model runs on another deployment | You, by name in the request |
| perplexity/auto (preview) | Every request | Yes, it can differ between calls | Orchestrator |
| Direct provider call | Your code only | No | You, and you write your own retries |
Calling Orchestrator with curl
Orchestrator accepts the Chat Completions shape, so a standard OpenAI-style body works. Get the base URL and key from your Perplexity dashboard. The variable names below are placeholders for your own values.
curl "$ORCHESTRATOR_BASE_URL/chat/completions" \
-H "Authorization: Bearer $ORCHESTRATOR_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"model": "perplexity/auto",
"messages": [
{"role": "user", "content": "Summarize this incident report in three bullets."}
]
}'
Swap perplexity/auto for a named model if you want failover without routing. For a multi-turn chat, send the whole history on every request. Orchestrator does not keep conversation state for you.
Python: A Retry Layer You Control
Failover happens on Perplexity's side, but you still need client-side handling for errors Orchestrator does not retry, such as a malformed request or a rate limit you hit yourself. This wrapper retries only on transient errors and logs which model answered.
import os
import time
from openai import OpenAI, APIStatusError, APIConnectionError
client = OpenAI(
base_url=os.environ["ORCHESTRATOR_BASE_URL"],
api_key=os.environ["ORCHESTRATOR_API_KEY"],
)
TRANSIENT = {408, 429, 500, 502, 503, 504}
def ask(messages, model="perplexity/auto", attempts=3):
for i in range(attempts):
try:
resp = client.chat.completions.create(model=model, messages=messages)
print("served_by:", getattr(resp, "model", "unknown"))
return resp.choices[0].message.content
except APIStatusError as e:
if e.status_code not in TRANSIENT or i == attempts - 1:
raise
except APIConnectionError:
if i == attempts - 1:
raise
time.sleep(2 ** i)
history = [{"role": "user", "content": "List two risks of rolling back a schema migration."}]
print(ask(history))
Log the model field from each response. If you use routing, that field is the only record of which model answered that request.
When Failover Helps, and When It Does Not
Failover helps when a single provider deployment has an outage or capacity problem during your traffic peak. It does not fix a bad prompt, a context overflow, or a model that rejects a parameter. Those errors come back on every deployment. Test each model with the exact request shape you send in production, then treat failover as an availability layer on top.
If you need a single key for Claude and GPT models without setting up each provider, KissAPI exposes both through one OpenAI-compatible endpoint. You still choose the model per request, so your output format stays predictable. Use the API cost calculator to compare per-task cost for each model before you pick a default, and check prompt sizes with the token counter.
Try Multi-Model Access Without the Setup
Create a free account at api.kissapi.ai/register and call Claude and GPT models through one OpenAI-compatible key.
Start FreeFAQ
What is the difference between Orchestrator failover and perplexity/auto routing?
Failover retries another deployment of the model you already chose after an eligible provider failure, so the model stays the same. perplexity/auto is an optional preview that picks a model for each request.
Which request formats does Orchestrator accept?
Orchestrator accepts OpenAI Chat Completions, OpenAI Responses, and Anthropic Messages. For multi-turn chats, your client must resend the conversation history.
Did the routed setup beat Claude Fable 5.2 alone?
In Perplexity's adjusted 63-task comparison, two routed Claude Code configurations each solved 41 tasks, versus 38 for Claude Fable 5.2 alone. The routed setups had a higher estimated cost per task. These are vendor-reported results, so run your own tasks before you rely on them.