Skip to main content
Beta Router is a beta service that provides access to a curated model catalog through an OpenAI-compatible API.
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.
Router is not confidential. Do not send secrets, personal data, regulated data, or other sensitive data. Use Prem API for confidential processing.
Router uses the Chat Completions API. All models accept text. Selected models accept base64 images. The model catalog and API behavior can change during the beta.

Request an API key

Contact us to request a Router API key. Include Router access in your message. Store the key in an environment variable. Do not commit it to source control.
The Router key is separate from the Confidential API key. PREM_ROUTER_API_KEY and PREM_API_KEY are not interchangeable.

Make your first request

Python

Install the OpenAI Python SDK:
Create a Python file with this code:
Run the file. The response appears in your terminal.

Node.js test

Use Node.js 22 or later. Install the OpenAI JavaScript SDK:
Create a file named router.test.mjs:
Run the live test:

Models

Model availability, context windows, capabilities, and streaming requirements can differ by API key. Use authenticated GET /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.