Model routing

LLM router API for production applications

Pandoroute sends one request to an eligible model based on quality, speed, cost, health, and fallback requirements.

Request flow

From request to model

The router authorizes the request, checks model access and quotas, selects an eligible channel, calls the provider, then settles actual usage.

01

Authorize

Check the API key, organization, enabled model access, rate limits, and estimated cost.

02

Route

Match request capabilities with model abilities, channel priority, weight, health, and fallback availability.

03

Settle

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

What the router evaluates

Automatic routing is not a single benchmark score. Pandoroute separates organization access from channel selection and runtime protection.

InputWhat it controls
CapabilitiesStreaming, tool calling, vision, and other request features that a model must support.
Priority and weightThe preferred order and relative share of eligible channels.
Health and circuit stateWhether a provider or channel is currently eligible to receive traffic.
Quota and cost reservationWhether the key and organization can cover the estimated request before execution.
Fallback availabilityWhether a degraded response can be served by another eligible model.

Questions

Does Pandoroute support streaming?

Yes. The OpenAI-compatible chat endpoint supports streaming SSE and terminates with data: [DONE].

How are fallback responses identified?

The current documentation describes fallback metadata headers that identify whether a response is degraded, why fallback happened, and which models were involved.

Can applications request a specific model?

Yes. Use GET /v1/models to discover enabled model codes, then send a known model code in the request.

Sources

Product and competitor facts were checked on . Current pricing and availability can change.