Router currently exposes a broader chat-model catalog than the Confidential API catalog documented on this site. The tradeoff is explicit: Router requests are not confidential. Use the Confidential API for sensitive data and use Router when model breadth is the priority.
Request an API key
Contact us to request a Router API key. IncludeRouter access in your message.
Store the key in an environment variable. Do not commit it to source control.
PREM_ROUTER_API_KEY and PREM_API_KEY are not interchangeable.
Make your first request
Python
Install the OpenAI Python SDK:Node.js test
Use Node.js 22 or later. Install the OpenAI JavaScript SDK:router.test.mjs:
Models
Model availability, context windows, capabilities, and streaming requirements can differ by API key. Use authenticatedGET /v1/models as the source of
truth, then send an exact model ID from that response in your chat request.
Router currently exposes a broader chat-model catalog than the Confidential
API. This comparison is about catalog breadth, not confidentiality or model
quality. A model listed for Router is not evidence that the same model runs in
a confidential enclave.
See Models for the base catalog, additional key-dependent
models, modality support, and streaming requirements.
Models
Browse model IDs and check which models are available to your API key.
API capabilities
Use tool calls, structured output, reasoning, vision, log probabilities, and usage reporting.
Add a custom provider
Configure Router in OpenCode, Pi, and other OpenAI-compatible tools.

