Skip to main content
Prentis is not in Portkey’s built-in provider list. It does not need to be: Portkey can send requests to any OpenAI-compatible host, and that is what this API is. You keep your Portkey key, logs, configs and guardrails; the model calls land here and are billed by us. There are two ways to wire it up. Use the first unless you are only trying it out.

Option 1: Add Prentis as a provider

Do this once per Portkey workspace.
  1. In Portkey, open the Model Catalog and click Add Provider.
  2. Choose the self-hosted / custom option rather than a provider from the list.
  3. Set the API specification to OpenAI.
  4. Set Custom Host to https://compute.prentis.ai/v1. Keep the /v1 — Portkey appends /chat/completions and the other paths itself.
  5. Add an authentication header Authorization with the value Bearer <your Prentis API key>. Keys are created in the console under API Keys.
  6. Name the provider. The slug you choose is how your code refers to it; this page uses prentis.
Then call it with your Portkey key and that slug:
The model value is passed to us unchanged, so it is a Prentis model name. See Models and resource names for where to find them.

Option 2: Per-request headers

Nothing is saved in Portkey; every request says where to go. Useful for a first test.
x-portkey-provider: openai names the API shape, not the vendor. The request still goes to the custom host.

Costs in the Portkey dashboard

Portkey does not know our prices, so out of the box its dashboard shows token counts for Prentis models but not spend. To see spend there, open the provider in Portkey, go to Model Provisioning, edit the model and enter its input and output cost per million tokens. That number is for Portkey’s dashboard only. What you are charged is what Prentis bills, from the usage on each response — see Usage and billing.

When it does not work

Errors from Prentis carry the codes listed in Errors. Portkey’s own reference for this setup is Bring Your Own LLM.