Developer documentation

Pandoroute API quickstart

Use one OpenAI-compatible API at api.pandoroute.ai/v1. Send model:auto or select an enabled model code.

Last reviewed 19 November 2026 · Focused quickstart with links to the complete reference

First request

Connect with the OpenAI SDK

Create an API key in the console, store it in an environment variable, and point the client at the Pandoroute runtime API.

export PANDOROUTE_BASE_URL="https://api.pandoroute.ai/v1" # Create a key in the console and load it from your shell or secret manager. # PANDOROUTE_API_KEY should already be set in the environment. curl "$PANDOROUTE_BASE_URL/chat/completions" \ -H "Authorization: Bearer $PANDOROUTE_API_KEY" \ -H "Content-Type: application/json" \ -d '{ "model": "auto", "messages": [ { "role": "user", "content": "Write a release note for our API launch." } ] }'
from openai import OpenAI import os client = OpenAI( api_key=os.environ["PANDOROUTE_API_KEY"], base_url=os.environ["PANDOROUTE_BASE_URL"], ) response = client.chat.completions.create( model="auto", messages=[ {"role": "user", "content": "Summarize this product for a CTO."} ], ) print(response.choices[0].message.content)

Runtime API

Supported endpoints

The current runtime exposes OpenAI-compatible chat plus Responses, Anthropic-style Messages, model discovery, token counting, and file uploads.

MethodEndpointUse
GET/v1/modelsList models enabled to the organization.
GET/v1/models/{modelId}Fetch one enabled model.
POST/v1/chat/completionsOpenAI-compatible chat with streaming support.
POST/v1/responsesResponses-style input mapped into chat routing.
POST/v1/messagesAnthropic-style Messages surface.
POST/v1/filesUpload files for file-aware workflows.
Runtime identifiers

The API documentation still uses the X-SKYLINE-* prefix for fallback metadata headers. Keep the documented header names when logging degraded responses.

Model selection

Choose a model or use auto

model:"auto" lets the router choose an eligible channel. A specific model code is better when the application has fixed quality, context, or cost requirements.

Automatic

Let the router choose

Send model:"auto". The router evaluates capabilities, priority, weight, health, and fallback availability before selecting a channel.

Explicit

Choose a model code

Call GET /v1/models and send a model code enabled to your organization.

Questions

What is the Pandoroute API base URL?

Customer API calls use https://api.pandoroute.ai/v1 according to the current Pandoroute developer documentation.

Which endpoint should I use first?

Start with POST /v1/chat/completions. Responses and Anthropic-style Messages are also available when the client needs those request shapes.

How do I let Pandoroute select the model?

Send model set to auto. The router considers request capabilities, organization model access, channel health, priority, weight, and fallback availability.

Sources

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