Custom LLMs
Custom LLMs covers two things.
LLM Connections store credentials for providers you want to reach directly rather than through the Router.
LLM Configurations define how a model is recognised in your traces and what it costs, which is what makes cost tracking work for calls that do not pass through the Router.
Connections
A connection stores the credentials the platform uses to reach an external provider: a display name, the provider type that determines the API schema, the endpoint, and the key itself. Leave the endpoint at its default for the provider's standard API, or set your own for a self-hosted or proxied deployment. Extra headers can be attached where a provider expects them.
You can hold several connections for the same provider, which is how teams keep production and development keys apart, or reach two accounts with one project.
Connections are what let an evaluator run against a model of your own rather than one the Router offers.

Adding a Connection
Click the + button in the top-right corner to open the Add LLM Connection modal.
Provider name
A display name to identify this connection within InteractiveAI (e.g., "OpenAI Production", "Gemini")
LLM adapter
The provider type that determines the API schema. Options include openai, google-ai-studio, anthropic, and others
API Base URL
Leave as default to use the provider's standard endpoint, or enter a custom URL for self-hosted or proxy configurations
API Key
Your provider's API key. Stored encrypted in the database
Extra Headers
Optional HTTP headers to include with requests (also stored encrypted)
Configurations
A configuration tells the platform how to recognise a model in your traces and what it costs, which is what makes cost tracking work for calls that never touch the Router. Each one carries the model name, a match pattern used to identify it, and a tokenizer.

The catalogue arrives populated. Hundreds of definitions ship with the platform and are maintained by InteractiveAI, so you are adding to an existing list rather than starting from nothing, and only when you are using a model it does not already know.
Adding a Model Definition
Click Add Model Definition to open the configuration modal.

Pricing is set per usage type, and the usage types have to match the keys in the usage data you send exactly. Input and output cover most providers; some also bill for cached reads, which is a separate type again. The dialog previews what you have entered per unit, per thousand, and per million, which is the quickest way to catch a price entered at the wrong order of magnitude.
Last updated
Was this helpful?

