Skip to main content
Prem Router is a beta service that provides access to a curated model catalog through an OpenAI-compatible API.
Prem Router is not confidential. Do not send secrets, personal data, regulated data, or other sensitive data. Use Prem API for confidential processing.
Prem 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 Prem Router API key. Include Router access in your message. Store the key in an environment variable. Do not commit it to source control.

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:

Available models

The following models are currently available: For models marked Required, set stream=True in Python or stream: true in JavaScript. Use the exact lowercase model ID in every API request. Call GET /v1/models with your API key to retrieve the current catalog; availability may change during the beta. See API capabilities for tools, structured output, reasoning controls, vision, and log probabilities.

API capabilities

Use tool calls, structured output, reasoning, vision, log probabilities, and usage reporting.

Add a custom provider

Configure Prem Router in OpenCode, Pi, and other OpenAI-compatible tools.