Back to blog

What a UK LLM router actually does: one key, three formats

Kalsenti is a British LLM router: one key, three API formats, and a change of base URL. What Auto routing and failover do, and what they don't.

A UK LLM router isn't a British-built model. It's a UK company that takes your request and hands it to a third-party provider that runs the model you chose.

Kalsenti Limited is registered in England and Wales. We don't make the models. You get one API and one dashboard, and we route each request to a Model Provider that serves the model you selected. We're the ones choosing which provider handles it. So the useful first question isn't "which lab built this", but "what do I change in my code, and what happens to the request".

This post is the practical answer. For what an abliterated model changes, and what it doesn't, see Abliterated vs standard models.

What you change to switch

If your tool already speaks the OpenAI or Anthropic API, you change three things: the base URL, the API key and the model id. The two SDKs add different paths to the host, so the base URLs differ:

SDKBase URLKey header it sends
OpenAI SDKhttps://gateway.kalsenti.ai/v1Authorization: Bearer
Anthropic SDKhttps://gateway.kalsenti.aix-api-key

The Anthropic SDK adds /v1 itself. Give it the /v1 address too and it asks for /v1/v1/messages, which doesn't exist. If the address on your dashboard's Developer page differs from these, use that one instead.

With the OpenAI SDK:

import os
from openai import OpenAI

client = OpenAI(
    api_key=os.environ["KALSENTI_API_KEY"],
    base_url="https://gateway.kalsenti.ai/v1",
)

reply = client.chat.completions.create(
    model="deepseek-v4-1-flash",
    messages=[{"role": "user", "content": "Hello"}],
)
print(reply.choices[0].message.content)

The same client also reaches Responses (client.responses.create) and the model list (client.models.list). With the Anthropic SDK the base URL is the host without /v1, and Messages always needs max_tokens:

import os
from anthropic import Anthropic

client = Anthropic(
    api_key=os.environ["KALSENTI_API_KEY"],
    base_url="https://gateway.kalsenti.ai",
)

message = client.messages.create(
    model="deepseek-v4-1-flash",
    max_tokens=1024,
    messages=[{"role": "user", "content": "Hello"}],
)
print(message.content[0].text)

Model ids belong to this API, not to another one. Use the id exactly as it is shown, such as deepseek-v4-1-flash, not the model's name above it. GET /v1/models lists the ids your key can use, the same list an SDK asking for models will see. A model that isn't in the catalogue, or can't be called right now, gets a 404 with the code model_not_found.

One key, three formats

One key reaches every model in the catalogue, in three reply formats. Use the one your code or SDK already speaks. The differences sit in the request, not in what a model can do. A model built for decisions is the exception: it answers only its own endpoint, POST /v1/systemone.

FormatEndpointWorks with
Chat completionsPOST /v1/chat/completionsThe OpenAI SDK, and other clients for this format
ResponsesPOST /v1/responsesThe OpenAI SDK's Responses interface
MessagesPOST /v1/messagesThe Anthropic SDK

All three can stream, call function tools and carry reasoning, though the field names differ: reasoning_effort on Chat completions, reasoning on Responses, thinking on Messages. Structured output is available on Chat completions and Responses; Messages refuses it. Nothing is stored between requests. There is no previous_response_id, no conversation and no stored reply: send the earlier turns in input or messages on every call. store is accepted and ignored.

A refusal is never quiet. Send something this API doesn't do and the request answers 400, naming the field in param. That covers long-running or background requests and more than one choice in a Chat completions reply. Files, batches, assistants, threads, embeddings, audio and image generation are not served, and other parts of the OpenAI SDK that call those endpoints get a 404.

Two helper endpoints sit beside the three formats: GET /v1/models and POST /v1/messages/count_tokens, which estimates the size of a request before you send it.

A key starts able to use every model. Later you can limit it to a list of models, give it its own spending limit or set a date for it to stop. No list means every model. The idea is one key per application: a key that leaks can't be used on models you kept off its list.

Auto routing and failover

You don't have to name a model on every call. Set a request to Auto and it goes to the best fit for the job, weighing speed, cost and the task. If a model is slow or unavailable, the request moves to the next best one, so your app keeps answering. In the API, that choice is the model id auto.

The terms describe the same idea, with one limit worth knowing. When you send a request, we route it to a Model Provider that serves the model you selected. Where you have turned on fallback or automatic routing, we may route a request to another provider of the same or a similar model.

Auto is a routing choice. It doesn't turn off the safety filter, it doesn't change the Acceptable use policy, and it doesn't mean the request is processed in the UK. Model providers operate in many countries, and the provider serving a model can change. Each model's page shows the region where that model is processed. If your account is set to zero-retention routing only, a request for auto only gets models that have a zero-retention option.

If a named model doesn't answer in time, or the service is unavailable for a moment, the API may still return a 502 or 503. Those are worth retrying, with backoff, as the errors documentation explains. Send an Idempotency-Key so a retry can't run and charge twice.

What this is not

Kalsenti is a British company in the sense that is true: we are registered in England and Wales, and the terms are governed by the law of England and Wales. It isn't a claim that we train the models or that every model is hosted in the UK. Read the labels on the model you actually call.

The catalogue includes both standard and abliterated models, on the same key. Both are covered by the safety filter.

Point your client at the gateway

Add credit, create a key and start with the Quickstart. The compatibility page shows what each format accepts, and the SDK guide collects the base URLs in one place. Model ids and prices are on the Models page.

Questions can go to support@kalsenti.ai.