An inference project is a stateless, OpenAI-compatible endpoint that serves the models you choose. Use it when you already have an app, SDK or tool that speaks the OpenAI API (or the Anthropic API). Point the app at Tensic and you get per-project budgets, API keys scoped to the project, failover between models, and logs of every call. Your code does not change.
Create an inference project
- In the side menu, open Projects and select New project. You can also select New project on Home. On the What do you want to build? page, select An OpenAI-compatible API (labelled API GATEWAY). It creates an Inference project, and the type cannot be changed after the project is created. (The same project type is also offered as the OpenAI-Compatible Endpoint template under All templates and examples.)
- Enter a Project name and choose the Team that owns the project. A project belongs to one team. The model fields appear once you have chosen the team.
- Choose a Default model. This model is the project's default: apps that name it, and Responses API calls without a
model, use it. - Optionally, add Additional models, and an embedding model under Default embedding model
and Additional embedding models. Callers can pick any of them per request with the
modelfield. Only models that the project's team can use are offered. - Select Create project. The new project opens on its Overview tab.
Shortcut: Connect an app on Home creates an inference project and a project API key in one step. Choose OpenAI-compatible app, pick a team, a project name and the models to serve, and the dialog shows the base URL and an SDK example. See Connect OpenCode and other coding agents for the coding-agent options.
The project page has these tabs: Overview, Configuration, Orchestration, Containers, Access, Guards, Budget & limits, Pricing, Logging and Audit log. The buttons at the top are Logs, Evals, API, Connect, More (Clone, Save as template, Analytics, Comments, Delete) and Playground. Overview shows tokens, requests, cost, the number of your API keys scoped to the project, the last call, a traffic chart, the budget and recent activity, and a Setup at a glance table that links each setting (models, guards, budget cap, rate limit, in-flight limit, logging) to the tab where you change it.
Every inference project always has a default model. Chat completions and Anthropic Messages calls must
include model (a call without it is refused with a 400, "Field required"); send the default model's
id, or any other model or group the project serves. The Responses API accepts calls without model
and then uses the default.
Connect an app with the OpenAI or Anthropic SDK
Open the project and select API at the top. The Connect card at the top of the page shows the OpenAI base URL, the Anthropic base URL and the authentication header, with your instance's URL already filled in. Below it, What this project serves lists each endpoint (chat, embeddings, rerank, responses, containers, moderation, images, transcription, speech, classifiers) with the models behind it, Built in or Not served. A Language selector on the left switches the examples between Python, JavaScript and cURL. Create an API key and Set up a coding agent are shortcuts at the bottom of the card. Models and model groups appear next to each endpoint, and the page also covers the Responses API, Containers, Rerank and the classifier endpoints, with Show example for the kinds the project does not serve yet.
OpenAI spec. Use the official OpenAI SDK, or any tool built for the OpenAI API:
from openai import OpenAI
client = OpenAI(
base_url="https://<your-instance>/projects/<project-id>/v1",
api_key="YOUR_API_KEY", # an API key scoped to this project
)
response = client.chat.completions.create(
model="GLM-5.3", # an id exactly as listed by GET /v1/models; required
messages=[{"role": "user", "content": "What can you help me with?"}],
)
print(response.choices[0].message.content)
- The Base URL pins every call to this project. Copy it from the top of the API page.
modelis required and must be one of the project's models or model groups. An unknown name is refused with a 404 that lists the models the project serves.- The project's system message is always added on the server side, so do not send one yourself.
- Each endpoint has an example in the selected language, and chat completions has a streaming variant. Model groups you define are listed next to the models, marked group.
Anthropic spec. For clients that only speak the Anthropic Messages API, point the Anthropic SDK
at https://<your-instance>/projects/<project-id>/anthropic. Leave out /v1, because the SDK adds
it. Send the same project API key as x-api-key. max_tokens is required. The model can be any
LLM the project serves; it does not have to be a Claude model.
Other endpoints on the same base URL:
- Models (
GET /v1/models) lists every model the project serves. Each entry has akind(llm,embedding,speech_to_text,text_to_speech,classifier) and a classifier also has itstask. Model groups appear with theirmembers. - Completions (legacy) (
POST /v1/completions) accepts the olderpromptformat. Streaming is not supported on this endpoint and is refused with a 400. - Moderations (
POST /v1/moderations) is the platform's built-in content check. There is no model to pick, and the call counts against the project's rate limit. - Responses (
POST /v1/responses) is OpenAI's Responses API on the same models. Responses are stored, soprevious_response_idcontinues a conversation without resending it. Function tools come back asfunction_callitems for your code to run. Reasoning models return areasoningitem before the answer. You can also fetch (GET /v1/responses/{id}), cancel (POST /v1/responses/{id}/cancel), list the input items (GET /v1/responses/{id}/input_items) and delete (DELETE /v1/responses/{id}) a stored response. With thecode_interpreterorshelltool, the model writes and runs code in a container (see below). - Containers (
POST /v1/containers,GET /v1/containers, files under/v1/containers/{id}/files) create and manage the isolated containers that the code interpreter uses. A container has no network access, a memory limit (default 1g) and an idle expiry (expires_after.minutes, 20 by default). The instance's platform admin sets the maximums under Settings > General (Containers API), and the project's Containers tab lists the containers, how many run against the instance limit and the minutes used this month. - Rerank (
POST /v1/rerank) ordersdocumentsby relevance to aquery. The body hasqueryanddocuments(strings or objects withtext), and optionallymodel,top_nandreturn_documents. The project needs a reranker model (see the model section below). - Classifiers (
POST /v1/classifier,/v1/sentiment,/v1/entities,/v1/answer,/v1/fill-mask,/v1/decide,/v1/decisions) run the classifier models allocated to the project. Decisions (/v1/decisions) puts oneinput(text, or messages with images) and a list ofquestionsof typepredicate,choiceorscoreto the classifier and returns an answer per question, in the OpenAI Decisions API format. See the classifier section below.
To connect a coding agent, use Set up a coding agent on the API page, or the Connect button at the top of the project.
Add embedding, image, speech, classifier and evaluation models to a project
An inference project can serve more than chat models. Tensic covers most of the OpenAI API: text generation, embeddings, image generation, speech-to-text and text-to-speech. With that, an app built for OpenAI can generate images or transcribe audio through Tensic. You do not have to run your own GPU servers or image-generation software.
- Open the project and go to the Configuration tab. It starts with Basic information (Display name, Name (slug), Description), followed by the Model section.
- In the Model section, choose one of two options:
- Turn on Serve every model the team has. The project then serves whatever the team is granted, including models added later. For teams that follow the model catalog (the default for new teams), this switch is on for new inference projects.
- Leave it off and pick the models for each kind yourself.
- For each kind, set a default and optional extras:
- Default model / Additional models: LLMs.
- Default embedding model / Additional embedding models.
- Default reranker / Additional rerankers: models that order search results, for the
/v1/rerankendpoint. - Default image generator / Additional image generators.
- Default speech-to-text model / Additional speech-to-text models.
- Default text-to-speech model / Additional text-to-speech models.
- Default classifier / Additional classifiers: small task models for sentiment, entities, zero-shot classification, question answering and fill-mask.
- Optionally, set the Evaluation LLM, which is the model that scores eval runs. The default is the project's own LLM.
- Select Save changes in the bar at the bottom of the page. It shows No unsaved changes until you change a setting.
If a list says, for example, "The team has no other rerankers to add", your team has no access to more models of that kind. Ask your platform admin. The top of the Configuration tab also shows a read-only summary of the project's current models, guards, budget, rate limit and logging, with links to the tabs where you change them.
Set temperature and reasoning effort per model
At the bottom of the Configuration tab, the Model settings section lists every LLM the project serves with two optional settings:
- Temperature: the sampling temperature for that model in this project (0 to 2).
- Reasoning effort: one of the efforts the model supports, for example low, high or max. Which efforts you can pick depends on the model: some offer none, low, medium and xhigh, others low, high and max, and some have no choice.
Leave a field blank to inherit the model's own default (the field then shows "Model: provider default"). A request that sets its own value, such as the playground or an API call, still wins. Select Save changes to apply.
Through the API, the same settings are options.model_params, keyed by model id, for example {"<model-id>": {"temperature": 0.2, "reasoning_effort": "low"}}.
Classifiers, rerankers and the Decisions API
Classifiers. Classifier models are granted to teams like other models, and they are now served
by the project itself: call POST /projects/<project-id>/v1/entities (or /classifier,
/sentiment, /answer, /fill-mask, /decide) with a project API key. The older instance-wide
/tools/... classifier endpoints are gone. In the project Playground, the Classify tab
tests them. Rerankers are also granted to teams as models, for use in RAG projects and, with a
default or additional reranker on the Configuration tab, on the project's own /v1/rerank
endpoint.
Create a model group for failover and zero-code model changes
A model group is a name that callers can send as model. Behind the name is an ordered list of
models. The request goes to the first member that is available. If that member fails, the next
member answers. Model groups give you two benefits:
- Failover. If the first model is down or rate-limited, the next one answers.
- Zero code changes. Your code asks for the group name, for example
my-chat, instead of a model name. When a newer model comes out, change the group members in Tensic, and every app picks up the change without a deployment.
To create a group:
- Open the project and go to Configuration > Model groups.
- Select Add group.
- Enter a Group name. Callers send this name as
model. - Under Members, in order, pick the models in order of preference. A group can only contain models that the project already serves.
- Select Save changes.
The usage log records both the group and the model that answered.
Failover settings. The same tab has a collapsed Advanced · failover section (select it to expand) that controls when Tensic stops sending requests to a failing model, and for how long:
- Skip unhealthy models: when on, Tensic skips a model that is failing. When off, every request goes to the model it names, and the caller gets the real provider error.
- Failures before skipping: the number of consecutive failures before a model is skipped. Leave it blank to use the instance default.
- Cooldown (in seconds): how long a model stays skipped after its last failure. Leave it blank to use the instance default.
Only provider-health failures count: a 429, a 5xx or a connection error. A wrong API key does not count, because waiting does not fix it. Tensic counts failures separately in each worker.
Test models in the inference playground
Every project type has a playground. To open it, select Playground at the top of the project.
- Use the Model selector to choose which of the project's models to call. The default is preselected.
- Use the tabs to test each kind of model: Chat, Compare, Image, Transcribe, Speak, Embed, Rerank and Classify (which offers Zero-shot, Sentiment, Entities, Question answering, Fill mask and Decision). A tab without a matching model shows a link to the project's model form.
- The Temperature and reasoning effort for this conversation button sets the values for the test call. They override the project's model settings.
- Stream and Auto-scroll control how the answer is shown. The Live trace above the conversation shows the timing of each turn. Reasoning models show their reasoning as a collapsible thought block above the answer.
The inference playground works like a model playground: each message is a single, stateless call. It has no conversation memory and no tools. If you ask "what did I just ask?", the model cannot answer. This is expected for an inference project. For memory, tools and sessions, use an Agent project.
To see exactly what an app sends through an inference project, turn on Inference logging on the Logging tab (under Log hygiene, next to Redact in logs and Log retention (days); it is off for new projects unless a platform admin turned on Inference logging on for new projects under Settings > General), then open Logs at the top of the project. With logging off, usage and cost are still recorded, and the rows show Not recorded. Each row is one model call with its result, tokens, cost and latency; select a row to see the request, the response, the token counts and how the cost was calculated. This helps you understand how an existing tool uses the model.
Analyze usage of an inference project
Select Analytics in the More menu at the top of the project (or Full analytics on the Overview tab).
Choose a period (7d, 30d, 90d, This month, Last month or a date range) and
optionally filter by API key, User, Model or Status. The Overview, Usage and
Activity tabs show requests, conversations, tokens, cost, error rate and average latency (with
p95), the top API keys, users and models (Top in this window, ranked by Cost, Requests or Tokens), and a per-day table. Export requests (CSV) downloads
the individual requests. The same data is available through the API at
GET /projects/<project-id>/analytics/overview, /analytics/usage and /analytics/requests.csv.
Set a project price and publish it in the discovery file
Each inference project can advertise its own price per model to the apps that use it. Coding agents such as OpenCode read that price to show how much each request costs.
- Open the project and go to the Pricing tab.
- For each model, enter the Input, Output and optionally Cached input price, in EUR per 1M tokens. Under each model name, the platform price is shown as "Platform: €x / €y". Embedding and reranker models take an input price only. Image generators, speech-to-text, text-to-speech and classifier models are priced on the platform catalog and have no per-project price.
- Select Save. A Prices saved. confirmation appears.
After you save:
- The price appears in the project's discovery file,
https://<your-instance>/projects/<project-id>/.well-known/opencode. Models that reason also list their reasoning efforts there (for example low, high and max) as variants that OpenCode offers. - The price is returned as
usage.coston every OpenAI-compatible completion and on Anthropic Messages (and, input side only, on embeddings and rerank calls). For example, 13 input and 30 output tokens at €0.2 / €0.6 per 1M tokens return a cost of2.06e-05. - Through the API, the prices are
options.model_prices, keyed by model id:{"<model-id>": {"input": 1.0, "output": 3.0, "cache_read": 0.25}}, wherecache_readis the optional cached-input price. - If you leave the fields empty, the API bills the platform price instead.
- Leave Cached input empty unless the model charges less for a cached prompt. If it is empty, the whole prompt is billed at the input price.
The project price only changes what consuming apps see. It does not change what your instance is charged. You cannot edit the platform price.
The discovery file is public. The .well-known file needs no authentication. Anyone who can
reach the project's URL can read it. By default, a model that the project has not priced is not
published with the platform price. A platform admin can change this under Settings >
General with Publish platform prices in the OpenCode discovery file. When this is on, models
without a project price show the platform price, and a model that has no price at all is published
as 0.
Plan the replacement of a model
When a model that projects use is going away, a platform admin can first ask what that would touch. The preview changes nothing. GET /llms/<model-id>/replacement returns the number and names of the projects that use the model, the platform settings that name it, and the models that could replace it. Add ?replace_with=<other-model-id> to see what that replacement would do: the teams that would be granted the new model (teams_to_grant), the teams that cannot be given it (blocked_teams) and, for embedding models, how many knowledge bases would have to be rebuilt (knowledge_rebuilds).
The same preview exists for each model kind: /embeddings/<id>/replacement, /rerankers/<id>/replacement, /classifiers/<id>/replacement, /image-generators/<id>/replacement, /speech-to-text/<id>/replacement and /text-to-speech/<id>/replacement. Models that your provider supplies are read-only for you, so the preview is mainly useful for models you connected yourself.
Common questions
Do I have to change my app to use Tensic?
Usually not. Set the base URL to the project's URL and use a project API key. Most apps built for the OpenAI API work unchanged. Features specific to OpenAI's own platform may not be supported.
What happens if my app does not send a model name?
Chat completions and Anthropic Messages calls are refused with a 400 ("Field required"), so configure the app with a model name from GET /v1/models. The Responses API uses the project's default model when model is left out.
How do I switch to a newer model without redeploying?
Have your app call a model group name instead of a model name. Then change the group's members on the Configuration tab.
Why does the playground forget my previous message?
Inference projects are stateless. Each call stands alone. Use an Agent project if you need conversation memory.
Which models can I add to an inference project?
Any LLM, embedding, image, speech-to-text, text-to-speech or classifier model that the project's team can use. New teams can use every model on the instance by default.
Can I see which API key or user used a project the most?
Yes. Open Analytics on the project and look at Top API keys and Top users, or filter by key, user, model or status.
Can I use the Anthropic SDK?
Yes. Point it at …/projects/<project-id>/anthropic without /v1, and send the project key as
x-api-key. Any model the project serves can answer, not only Claude models.
Why does a failover not happen when my API key is wrong?
Only provider-health errors (429, 5xx, connection errors) count as failures. An authentication error is returned to the caller straight away.
Who can see the price I set?
Anyone who can reach the project URL. The price is in the unauthenticated .well-known/opencode
discovery file, and it is also returned as usage.cost on completions.
Can I use the OpenAI Responses API?
Yes. Use POST /projects/<project-id>/v1/responses with the same base URL and key. Responses are stored, so previous_response_id continues a conversation.
Why does the rerank endpoint say the project has no reranker?
Add a reranker under Default reranker on the Configuration tab. The team must have access to a reranker model first.
Can I limit how much a project spends?
Yes. Each project has its own budget, and API keys are scoped to the project. Use the Budget & Limits tab.