How to use Inferenz
Inferenz is a meter on your existing chat completions: same SDK, your keys, we only invoice a share of verified savings. One base URL change. Invited clients only.
1. Sign in
Open app.inferenz.com.au with the email Inferenz registered. There is no public sign-up.
2. Save a provider key
On Keys and endpoints, choose OpenAI or Anthropic, name the key, and paste your sk-… or sk-ant-… key. Then choose a lite model, a standard model, and a premium model from the current chat list, including older versions. Prices refresh daily and sit beside each name. Saving accepts the processing terms. The router holds each chat and reply in Sydney memory for 24 hours so a repeat can be served from cache. The first endpoint is minted for those three models.
3. Copy the URL and token
Copy the base URL and the inf_… token from the green box. The token is shown once. Store it like any other secret. If you lose it, add another endpoint — the old token cannot be retrieved.
4. Point the OpenAI SDK at Inferenz
Use this even when the backing key is Anthropic.
from openai import OpenAI
client = OpenAI(
api_key="inf_…",
base_url="https://api.inferenz.com.au/v1/your-slug",
)
response = client.chat.completions.create(
model="gpt-4o",
messages=[{"role": "user", "content": "Summarise this email in three points."}],
)
print(response.choices[0].message.content)
import OpenAI from "openai";
const client = new OpenAI({
apiKey: "inf_…",
baseURL: "https://api.inferenz.com.au/v1/your-slug",
});
How a request is routed
Every chat completion goes through these in order.
- Cache. Compared with recent replies in memory. The same chat is returned at no model cost. A close variation matches when the instructions and earlier turns are the same and the latest message overlaps.
- Complexity. A miss is scored before a model is called, from how demanding the task is, how densely it is written, its structure, and its vocabulary. Light goes to your lite model. The middle goes to your standard model. Heavy goes straight to your premium model.
- Cascade. Only a request between two of those models. The lower one is tried first and the reply is checked for coverage, confidence, and shape. If it holds, that reply is sent. If it does not, the model above answers instead.
- Tools. A request that includes tools is sent to your premium model. Your app still runs the tool. That call is not cached.
What works today
POST /v1/{slug}/chat/completionsandPOST /v1/{slug}/v1/messages, includingstream: true.- Complexity scores the latest user message. The cache compares the whole chat, including a system prompt and earlier turns.
- Savings on the dashboard are the total across every endpoint on the account.
What does not work yet
- Vision, audio, embeddings, or Assistants.
- Calling api.openai.com or api.anthropic.com from the product while expecting Inferenz savings.
More endpoints
Add another endpoint on the same key for staging, a second app, or a contractor. Each one gets its own URL, token, and its own lite, standard, and premium models. Revoke stops that token.