Option 1: Add Prentis as a provider
Do this once per Portkey workspace.- In Portkey, open the Model Catalog and click Add Provider.
- Choose the self-hosted / custom option rather than a provider from the list.
- Set the API specification to OpenAI.
- Set Custom Host to
https://compute.prentis.ai/v1. Keep the/v1— Portkey appends/chat/completionsand the other paths itself. - Add an authentication header
Authorizationwith the valueBearer <your Prentis API key>. Keys are created in the console under API Keys. - Name the provider. The slug you choose is how your code refers to it; this page uses
prentis.
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 theusage 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.