One endpoint,
every model.
Tare is an OpenAI-compatible gateway in front of every model you use — ours and the ones you bring yourself. One base URL, one key, and every token accounted for.
Channels
What this solves: Connect an upstream account you bought yourself to Tare, so Tare knows where to send requests, which credential to use, and which interface format to speak.
A channel is an upstream you connect to Tare yourself: one base URL plus one credential.
After you add a channel, Tare knows "if some model should go to your upstream, where to send it, which upstream key to use, and which interface format to speak".
Console entry: Channels → Add channel.
Add channel only means "connect the upstream account", not that traffic will use it immediately. After adding it you still need to test the channel, enter cost prices, and point a model name at this channel in Routing.
Fastest path: an OpenAI-compatible upstream
If your upstream is OpenAI-compatible, for example OpenRouter, LiteLLM, or a self-hosted /v1/chat/completions gateway, in most cases these values are enough to get it running:
- Open the console → Tare → Channels.
- Click Add channel.
- Name: enter a name you can recognize, for example
openrouter-prod. - Base URL: enter it up to
/v1, for examplehttps://openrouter.ai/api/v1. - API key: enter the key your upstream gave you, for example
sk-or-.... - Endpoints → Non-streaming → Dialect: choose OpenAI (messages).
- Non-streaming URL: leave it empty for now.
- Streaming: leave it empty for now.
- Embeddings: leave it unchecked for now, unless you are sure this upstream has an embeddings endpoint.
- Local node: leave it unchecked for now.
- Click Add.
- Expand this channel and click Test or Chat to verify it.
- Click Browse upstream models, or enter model cost prices manually.
- Go to the Routing page and route your model name to this channel.
The principle of this path is: get chat completions working first, then fill in the details for streaming, embeddings, cost prices, and routing.
The Add channel form, field by field
Name
Give this channel an easily recognizable display name.
Include the vendor, the environment, or the purpose:
openrouter-prod
anthropic-team-a
azure-gpt4o-sg
lmstudio-office
This name shows up in Channels, Routing, Model Health, call details, and troubleshooting information. Don't use a name like test, api, or default that nobody will recognize later.
Base URL
Normally, enter the Base URL up to /v1.
| Upstream | Base URL example |
|---|---|
| OpenRouter | https://openrouter.ai/api/v1 |
| OpenAI-compatible self-hosted gateway | https://llm.example.com/v1 |
| LM Studio LAN service | http://192.168.1.20:1234/v1 |
Tare uses the Dialect you choose to decide which path to append, how to list models, and whether a credential is needed:
| Dialect | chat address | model list | credential |
|---|---|---|---|
| OpenAI (messages) | {base}/chat/completions | {base}/models | Required |
| Responses (input) | {base}/responses | {base}/models | Required |
| Anthropic | {base}/messages | {base}/models | Required |
| LM Studio | {base}/chat/completions | {base}/models | Leave empty |
| Custom | No appending; enter the full URL | Enter the full URL | Required |
Do not put /chat/completions into the Base URL.
The Base URL is the https://host/v1 level. Only when you explicitly want to override the endpoint should you fill in the Non-streaming URL under Endpoints.
Upstream completions URL
When the Non-streaming Dialect is Custom, the form no longer has a Base URL field. Instead it asks you for the full Upstream completions URL.
Custom means: Tare no longer appends the path for you. Whatever you enter is what Tare sends.
Good for:
- Interfaces like Azure OpenAI where the path contains a deployment and the query must carry
api-version. - Interfaces like Gemini where the model name is in the path.
- Any gateway that does not follow the
{base}/chat/completions,{base}/responses,{base}/messagesconvention.
Azure example:
https://example.openai.azure.com/openai/deployments/gpt-4o/chat/completions?api-version=2024-02-01
Why there is a Custom option: upstreams like Azure that require an api-version query, or Gemini that puts the model name in the path, do not follow the path conventions above. If you force them into the OpenAI row, you get a 404 and no clue why. Custom is the escape hatch for these upstreams.
If you only have an OpenAI-compatible gateway, don't choose Custom. Filling in the Base URL and choosing OpenAI (messages) is more reliable.
API key
Enter the key your upstream vendor gave you. Tare stores it encrypted and only sends it to the upstream you entered when calling this channel.
Only LM Studio may be left empty, because it usually does not check credentials. Other upstreams usually return a 401 when you call them without a key.
When editing an existing channel:
- Not changing the key: keep the masked value in the input field as it is.
- Rotating the key: enter the new full key.
- The old key is never shown in plaintext; if you lose it, you can only regenerate it at the upstream.
The Endpoints section
The Endpoints section is where it's easiest to make a mistake. Remember one rule:
The address and the Dialect are a pair.
/chat/completions goes with OpenAI (messages), and /responses goes with Responses (input). Changing only the address and not the Dialect, or only the Dialect and not the address, causes the upstream to receive a request in the wrong format.
Non-streaming
Non-streaming is the address for ordinary non-streaming calls.
Most of the time:
- Leave the URL empty
- Dialect is required
Empty means: Tare derives the address from the Base URL plus the Dialect.
When do you need to fill in the Non-streaming URL?
- Your non-streaming address differs from the standard derivation.
- Your gateway only implements one specific full path.
- You need to include a fixed query.
- You chose Custom.
Common pairings:
| Non-streaming URL | Dialect |
|---|---|
https://host/v1/chat/completions | OpenAI (messages) |
https://host/v1/responses | Responses (input) |
https://host/v1/messages | Anthropic |
| Azure full completions URL | Custom |
Do not pair /responses with OpenAI (messages).
Responses receives input, not messages.
Streaming
Streaming is the address for streaming calls.
Most of the time:
- Leave the Streaming URL empty.
- Leave the Streaming Dialect empty.
Empty means: streaming calls use the same addresses and protocols as Non-streaming.
When do you need to fill in Streaming separately?
- Your upstream split SSE/stream onto a different path.
- Your reverse proxy opened a separate port or path for stream.
- Ordinary calls work, but as soon as you turn on stream you run into a 404, a timeout, or proxy buffering.
- The same gateway uses
/responsesfor non-streaming but only supports/chat/completionsfor streaming, or the other way around.
If you fill in a Streaming URL, you must choose a Streaming Dialect. They are a pair too.
Embeddings
Embeddings is disabled by default.
Only when you are sure this upstream has an embeddings endpoint should you check Supported and fill in the full Embeddings URL, for example:
https://host/v1/embeddings
OpenAI-compatible chat does not mean this upstream necessarily supports embeddings.
Tare will not derive /v1/embeddings from the Dialect. Only filling in the Embeddings URL means this channel serves embeddings.
If you are only connecting chat completions for now, leave Embeddings off.
How to choose a Dialect
The Dialect decides how Tare translates an OpenAI-format request for the upstream.
| The request format your upstream expects | Choose |
|---|---|
messages, tools, stream, path usually /chat/completions | OpenAI (messages) |
input, instructions, output, path usually /responses | Responses (input) |
Anthropic Messages API, path usually /messages | Anthropic |
| A local LM Studio OpenAI-compatible server | LM Studio |
| Path, query, deployment, or model location all non-standard | Custom |
OpenAI (messages)
For the Chat Completions format, common with OpenRouter, LiteLLM, vLLM, LM Studio, and many self-hosted OpenAI-compatible gateways.
Responses (input)
For the Responses format.
OpenAI Responses and OpenAI-compatible are genuinely different formats, not the same format at a different path.
The account, base URL, and key are the same as a regular OpenAI deployment, but messages becomes input, system becomes
instructions, tools are flattened, and the response goes from choices to an output array.
Don't choose OpenAI (messages) just because it is also an OpenAI account, OpenAI base URL, and OpenAI key.
A self-hosted gateway may well run some models with Chat Completions and others with Responses. This is also why the Dialect is chosen per channel, not guessed from the domain.
Anthropic
Tare translates the inbound OpenAI format into the Anthropic Messages API, then translates the response back.
When you choose Anthropic the request body itself is rewritten: outbound it translates OpenAI format into Anthropic format, and it reverses the translation on the way back.
The specific changes:
- system messages are pulled out of
messages. - Tool calls become content blocks.
- Images change format.
max_tokensis optional in OpenAI but required in Anthropic; Tare fills it in when you don't pass it.
The other fields are forwarded to the upstream as-is, translated only where they cannot be forwarded as-is.
LM Studio
LM Studio is for a local model service running on your own machine.
Do not enter localhost.
LM Studio runs on your own machine, but the connection is made by the Tare server, and the Tare server cannot reach localhost on your computer.
Turn on the LAN service in LM Studio and enter a LAN or public address that is reachable, for example:
http://192.168.1.20:1234/v1
If you want Tare in the cloud to reach it, also make sure it is reachable from the Tare server. In many cases it is better to use a local model together with a Local Node.
Custom
Custom does not append a path and does not guess the protocol. It only calls the full URL you enter. Good for non-standard interfaces. The downside is that you must know the full endpoint yourself.
Fetching the upstream model list
Click Browse upstream models and Tare queries the upstream for available models; when the upstream publishes prices, they come back too.
Two things to be clear about:
- Tare pages through the upstream to the end. Anthropic defaults to 20 per page and Gemini to 50, so taking only the first page gives you a small slice of the catalog, and the UI doesn't show that.
- Extremely long catalogs (aggregator gateways with thousands of models) are truncated, and the dialog says so when it happens. Search only covers what is listed, so if you can't find a model, just type the exact model name.
This is a suggested list, not an allowlist. Private deployments, canary models, and aliases do not appear in the vendor's list, but they are still usable; manually entering an unlisted model name is always allowed.
After adding a channel: test it before going live
A successful add is only the first step. Three checks, in the order you would actually use them, none of which counts as one of your real calls:
- Probe the Dialect: send an empty body and see which required field the upstream says is missing, then work back to which format it speaks. Costs not one token.
- Test connectivity: whether the address is reachable, whether the key is recognized, whether the Dialect is right. It gives you a series of steps, not a single pass/fail result, because "test failed" is useless to you; what you need to know is which step it got stuck on.
- Send one sentence: actually say something to the model. The first two can pass and the channel can still fail: a typo in the model name, the upstream took the model offline, the balance ran out, a content policy block. Only actually sending one call reveals these.
Step 3 does consume real upstream tokens (the reply length is deliberately kept very short), but it is not billed and does not enter Call Traces: this is a diagnostic you triggered by hand, not real business traffic.
The full sequence to follow:
- Expand the channel.
- Click Test to first check whether the address, credential, and Dialect basically match.
- Click Chat to actually send a short message and verify the model name, balance, content policy, and real request body.
- Click Browse upstream models to fetch the upstream model list; if you can't fetch it, you can enter the model name manually.
- Enter the prices of the upstream models you will use in cost prices.
- Point the external model name at this channel in Routing.
- If BYOK must call the upstream directly from your own network, register a node per Local Node, mark the channel
LOCAL_NODE, and point the business at the node address.
Evaluating a channel
Evaluate on a channel runs a fixed set of real calls against each model routed to it and reports, check by check, whether what the upstream bills and serves matches what it claims. The calls are billed to the channel's own credential, so the dialog shows the number of calls, the token budget and, when cost prices are set, the estimated cost before anything is sent. A typical run is about a dozen calls and a few thousand tokens per model.
| Check | What is sent | A mismatch looks like |
|---|---|---|
| Input token counts | Eight prompts of known length | A fixed number of extra tokens on every call (a hidden system prompt), or counts that do not grow with the prompt |
| Output token counts | A request to copy a known passage | More output tokens billed than the passage contains |
| Model identity | Graded questions, plus the model name the upstream reports in its raw response | A different model family or a smaller variant |
| Streaming | A short streamed answer | The whole answer in one frame, or no usage in the stream |
| Tool calls, JSON mode | One request each | Tools ignored, malformed arguments, response_format ignored |
| Image input | A solid red test image (only when the route declares image input) | The colour is not recognised |
max_tokens limit | max_tokens: 24 on a long-answer prompt | More than 24 output tokens billed |
| Long context (optional) | A fact placed in the middle of a 32K–1M-token prompt | Fewer input tokens processed than sent, or the fact not found |
| Prompt cache (optional) | The same long prompt twice, with a random first line | Cache hits on the first request, or none on the second |
| Injected content | Nothing extra; all replies above are scanned | Links or advertising nobody asked for |
Each check ends as Trustworthy, Doubtful, Mismatch or Skipped, with the measured numbers under Details. Where Tare holds a reference measurement for the same model taken on an official channel, token counts and the graded questions are compared against it; otherwise those checks only test the counts for internal consistency.
The report also summarises the channel's live traffic over the chosen window (1–30 days, free): success rate, latency, time to first byte, parked time, cost per successful call, cost per million output tokens, and, when hidden input tokens were found, an estimate of what they cost over that window.
Evaluation calls are not billed by Tare, do not appear in Call Traces and do not affect routing or channel health. They run where the channel's live traffic runs, through the node's own request handling (dialect translation, parameter rules, response translation):
| Channel | Evaluated on |
|---|---|
| Goes out through a Local Node | that Local Node |
| Direct (your own channel or a platform channel) | Tare's official node |
| Set to always go out through Tare | Tare |
One evaluation stays on one path, and the report names it. If that node is offline, or runs a version without evaluation support, the evaluation does not start; upgrade the node and let it reconnect. If the node drops out partway, the evaluation stops and keeps the checks finished so far. Download PDF on a finished evaluation saves the whole report (checks, live traffic and the measurements behind each verdict) as a PDF to keep or share. Behind the dialog: POST /v1/providers/{id}/evals/estimate, POST /v1/providers/{id}/evals, GET /v1/providers/{id}/evals[/{runId}] and GET /v1/providers/{id}/evals/{runId}/pdf, console-session only.
Pausing a channel
To take a channel out of traffic without deleting it, open the channel's ⋯ menu and choose Pause. The channel shows Paused, and within a minute no call is sent to it: requests go to the model's other routes, including the platform route behind yours when Use platform models is on (billed at the platform price). If no route is left, calls to that model fail until you resume; they do not fall to the catch-all route. Its routes, cost prices and credential stay as they are, and Test, Chat and Evaluate still work on it, so you can check the upstream before choosing Resume. The same switch is paused on PUT /v1/providers/{id}.
Grouping channels by vendor
The Channels page lets you group channels under vendor groups you name yourself (it first guesses a vendor from the channel name, and you can correct a wrong guess). This is useful when you have many channels from several resellers.
This grouping exists only in your own browser's local storage: it is never sent to Tare, it is not shared between team members or across devices, and it is gone if the browser data is cleared. Routing, billing, and any behavior of the channel itself do not depend on this grouping.
Checking the health of your own channels
Console → Model Health (GET /v1/health/channels) directly answers "why does my own channel no longer get traffic", without you having to work backward from a string of failures in call details.
This page gives you:
- The current status (healthy / degraded / disabled).
- Success rate and average latency.
- The reason for the last failure.
- A timeline with a timestamp for every time it was taken out of rotation and every time it recovered.
For the circuit breaker and trial request logic in the diagram, see the "circuit breaker" subsection of Routing; for the frequency and thresholds of active probing, see Limits and quota.
The live status on this page only serves the current routing decision and is not meant to be looked back at: it only reflects right now and keeps no history. To answer "did it actually go down this morning", use GET /v1/health/timeline instead, which queries the archived call history (granularity: minute/half-hour/hour/day, plus a model filter and how far back to look).
Both are console pages, not endpoints you can call with an API key, and like Channels and Routing they need a login session. What you see covers only your own channels. The version everyone sees in the model catalog is a view not divided by account, aggregated by model and not broken down by specific vendor. Which vendor sits behind a platform model is not public in the first place.
embeddings and video generation also report data into this same circuit breaker and success-rate statistics, the same set used by chat and image generation, so a channel that serves only these two kinds of calls is not invisible here. Video generation has two signal segments: whether the upstream accepted the task at submission time, and a later, separately recorded segment for whether it actually finished. A channel can look fine in the first segment and still be failing in the second.
How to fill in common upstreams
OpenRouter
| Field | Value |
|---|---|
| Name | openrouter-prod |
| Base URL | https://openrouter.ai/api/v1 |
| API key | OpenRouter key |
| Non-streaming Dialect | OpenAI (messages) |
| Non-streaming URL | Leave empty |
| Streaming | Leave empty |
| Embeddings | Leave off if unsure |
OpenAI-compatible self-hosted gateway
| Field | Value |
|---|---|
| Name | company-llm-gateway |
| Base URL | https://llm.example.com/v1 |
| API key | Your gateway key |
| Non-streaming Dialect | OpenAI (messages) |
| Non-streaming URL | Usually empty |
| Streaming | Usually empty |
If your gateway only has /responses, choose Responses (input).
Anthropic
| Field | Value |
|---|---|
| Name | anthropic-prod |
| Base URL | The Anthropic base URL the platform provides |
| API key | Anthropic key |
| Non-streaming Dialect | Anthropic |
| Streaming | Usually empty, unless you have a separate streaming path |
LM Studio
| Field | Value |
|---|---|
| Name | lmstudio-office |
| Base URL | http://192.168.1.20:1234/v1 |
| API key | Leave empty |
| Non-streaming Dialect | LM Studio |
| Streaming | Usually empty |
Azure OpenAI
Azure usually chooses Custom, because the deployment and api-version are in the path/query.
| Field | Value |
|---|---|
| Name | azure-gpt4o-prod |
| Non-streaming Dialect | Custom |
| Upstream completions URL | The Azure full completions URL, with the deployment and api-version |
| API key | Azure key |
Troubleshooting common errors
| Symptom | Common cause | Where to look |
|---|---|---|
Add shows Pick the dialect for the non-streaming endpoint | No Non-streaming Dialect chosen | Endpoints → Non-streaming → Dialect |
Add shows Upstream URL is required | Neither Base URL nor full URL is filled in | Base URL or Custom URL |
Add shows Custom dialects append nothing | Custom chosen but no full completions URL entered | Upstream completions URL |
Add shows Give the embeddings endpoint | Embeddings Supported is on but no URL entered | Embeddings URL |
| Call returns 401 | Wrong upstream API key, missing, expired, or insufficient permissions | API key |
| Call returns 404 | Base URL misspelled, endpoint doesn't exist, Custom URL incomplete, model doesn't exist | Base URL / Non-streaming URL / Routing |
Upstream reports messages is required | /chat/completions did not receive OpenAI messages format | Whether the Dialect is wrongly set to Responses |
Upstream reports input is required | /responses did not receive Responses input format | Whether the Dialect is wrongly set to OpenAI |
| Browse upstream models is empty | Upstream doesn't support listing models, key only allows chat, URL can't derive the models address | Not necessarily a problem for calls; enter the model manually |
| Ordinary calls work, stream fails | stream buffered by a proxy, different path, timeout, or different SSE configuration | Streaming URL / Streaming Dialect |
| LM Studio with localhost doesn't work | The Tare server reaches its own localhost, not your computer | Change to a LAN/public address or use a Local Node |
How the endpoints relate to the console
The Channels page is mainly backed by these endpoints, all using a login session rather than an API key:
| Action | Endpoint |
|---|---|
| List channels | GET /v1/providers |
| Add a channel | POST /v1/providers |
| Modify a channel | PUT /v1/providers/{id} |
| Delete a channel | DELETE /v1/providers/{id} |
| Read/write the Dialect choice | GET / PUT /v1/providers/{id}/dialects |
| Fetch upstream models | GET /v1/providers/{id}/upstream-models |
| Test a channel | POST /v1/providers/{id}/test |
| Send one sentence with a channel | POST /v1/providers/{id}/chat |
| Check channel health | GET /v1/health/channels |
| Check the health timeline | GET /v1/health/timeline |
Deleting a channel stops every route that points at it. Its recorded usage and cost history is kept.
Minimal acceptance checklist
- This channel shows up on the Channels page.
- Test channel can confirm that the address, key, and Dialect are all usable.
- Chat one sentence gets a model reply.
- Browse upstream models lists models; if it can't, you have confirmed the manual model name works.
- The upstream models you need are already in the cost price configuration, or you have confirmed the upstream reports real cost in its response.
- The Routing page has pointed the external model name at this channel.
- One real request with a business key returns
X-Generation-Id/gen-....
Next steps
These three articles are one chain; read them in order: connect a channel → enter cost prices → configure routing. You have just finished the first step.
- Next: enter upstream prices for this channel, read cost prices.
- After that: point the external model name at this channel, read Routing.
- To have BYOK call the upstream directly from your own network: read Local Node.
- To understand each console page first: read Console guide.