Authorize
Check the API key, organization, enabled model access, rate limits, and estimated cost.
Model routing
Pandoroute sends one request to an eligible model based on quality, speed, cost, health, and fallback requirements.
Request flow
The router authorizes the request, checks model access and quotas, selects an eligible channel, calls the provider, then settles actual usage.
Check the API key, organization, enabled model access, rate limits, and estimated cost.
Match request capabilities with model abilities, channel priority, weight, health, and fallback availability.
Record the provider's actual token, cache, and tool usage in the request ledger.
from openai import OpenAI
import os
client = OpenAI(
api_key=os.environ["PANDOROUTE_API_KEY"],
base_url="https://api.pandoroute.ai/v1",
)
response = client.chat.completions.create(
model="auto",
messages=[{"role": "user", "content": "Plan a database migration."}],
stream=True,
)
for chunk in response:
print(chunk)Routing inputs
Automatic routing is not a single benchmark score. Pandoroute separates organization access from channel selection and runtime protection.
| Input | What it controls |
|---|---|
| Capabilities | Streaming, tool calling, vision, and other request features that a model must support. |
| Priority and weight | The preferred order and relative share of eligible channels. |
| Health and circuit state | Whether a provider or channel is currently eligible to receive traffic. |
| Quota and cost reservation | Whether the key and organization can cover the estimated request before execution. |
| Fallback availability | Whether a degraded response can be served by another eligible model. |
Yes. The OpenAI-compatible chat endpoint supports streaming SSE and terminates with data: [DONE].
The current documentation describes fallback metadata headers that identify whether a response is degraded, why fallback happened, and which models were involved.
Yes. Use GET /v1/models to discover enabled model codes, then send a known model code in the request.
Product and competitor facts were checked on . Current pricing and availability can change.