Skip to main content
Docs

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.

Upstream channelsChannels

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.

Where a channel sits in the chain A channel is one upstream you connect: a base URL plus a credential. Only LM Studio may omit the credential. Tare uses that config to decide where to call, which key to use, and which format to speak. The five upstreams are OpenRouter, Anthropic, Azure OpenAI, a self-hosted OpenAI-compatible gateway, and LM Studio. Where a channel sits in the chain Tare Where to call, which key, and which format, from this channel Your channel One base URL plus a credential. Only LM Studio may omit it. OpenRouter Anthropic Azure OpenAI Self-hosted LM Studio Adding a channel only connects the account. Still test it, enter prices when cost is omitted, and point a model at it. Five upstreams: OpenRouter, Anthropic, Azure OpenAI, a self-hosted OpenAI-compatible gateway, and LM Studio.
Where channels sit in the chain

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:

  1. Open the console → Tare → Channels.
  2. Click Add channel.
  3. Name: enter a name you can recognize, for example openrouter-prod.
  4. Base URL: enter it up to /v1, for example https://openrouter.ai/api/v1.
  5. API key: enter the key your upstream gave you, for example sk-or-....
  6. Endpoints → Non-streaming → Dialect: choose OpenAI (messages).
  7. Non-streaming URL: leave it empty for now.
  8. Streaming: leave it empty for now.
  9. Embeddings: leave it unchecked for now, unless you are sure this upstream has an embeddings endpoint.
  10. Local node: leave it unchecked for now.
  11. Click Add.
  12. Expand this channel and click Test or Chat to verify it.
  13. Click Browse upstream models, or enter model cost prices manually.
  14. 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:

Code / Terminal
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.

UpstreamBase URL example
OpenRouterhttps://openrouter.ai/api/v1
OpenAI-compatible self-hosted gatewayhttps://llm.example.com/v1
LM Studio LAN servicehttp://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:

Dialectchat addressmodel listcredential
OpenAI (messages){base}/chat/completions{base}/modelsRequired
Responses (input){base}/responses{base}/modelsRequired
Anthropic{base}/messages{base}/modelsRequired
LM Studio{base}/chat/completions{base}/modelsLeave empty
CustomNo appending; enter the full URLEnter the full URLRequired

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}/messages convention.

Azure example:

Code / Terminal
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 URLDialect
https://host/v1/chat/completionsOpenAI (messages)
https://host/v1/responsesResponses (input)
https://host/v1/messagesAnthropic
Azure full completions URLCustom

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 /responses for non-streaming but only supports /chat/completions for 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:

Code / Terminal
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 expectsChoose
messages, tools, stream, path usually /chat/completionsOpenAI (messages)
input, instructions, output, path usually /responsesResponses (input)
Anthropic Messages API, path usually /messagesAnthropic
A local LM Studio OpenAI-compatible serverLM Studio
Path, query, deployment, or model location all non-standardCustom
Choose Dialect by the upstream request format Dialect is how Tare translates an OpenAI-format request into what the upstream expects: OpenAI messages, Responses input, Anthropic Messages, LM Studio, or Custom with a full URL. Choose Dialect by the upstream request format The request format your upstream expects Dialect is how Tare translates an OpenAI request for that upstream OpenAI (messages) /chat/completions Responses (input) /responses Anthropic Messages API /messages LM Studio Local server /chat/completions Custom No path join Full URL Pick Dialect per channel, not by domain. One gateway may mix Chat Completions and Responses. Changing only the address, or only the Dialect, sends the upstream the wrong shape.
How to choose a Dialect: by the request format the upstream expects

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_tokens is 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:

Code / Terminal
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:

  1. 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.
  2. 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.
  3. 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.

Three checks before a channel goes live Before real traffic, run three checks: probe Dialect with an empty body, test address, key, and Dialect, then send one real sentence. None of the three is billed as your call. Three checks before a channel goes live 1 · Probe Dialect Send an empty body See which required field it wants 2 · Test connectivity Address, key, and Dialect A list of steps, not pass/fail 3 · Send one sentence Actually talk to the model Name, balance, content policy None of the three is a real call of yours. The first two spend no tokens. Step 3 spends real upstream tokens on a short reply. It is not billed and skips Call Traces.
The three checks before a channel goes live

The full sequence to follow:

  1. Expand the channel.
  2. Click Test to first check whether the address, credential, and Dialect basically match.
  3. Click Chat to actually send a short message and verify the model name, balance, content policy, and real request body.
  4. Click Browse upstream models to fetch the upstream model list; if you can't fetch it, you can enter the model name manually.
  5. Enter the prices of the upstream models you will use in cost prices.
  6. Point the external model name at this channel in Routing.
  7. 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.

CheckWhat is sentA mismatch looks like
Input token countsEight prompts of known lengthA fixed number of extra tokens on every call (a hidden system prompt), or counts that do not grow with the prompt
Output token countsA request to copy a known passageMore output tokens billed than the passage contains
Model identityGraded questions, plus the model name the upstream reports in its raw responseA different model family or a smaller variant
StreamingA short streamed answerThe whole answer in one frame, or no usage in the stream
Tool calls, JSON modeOne request eachTools ignored, malformed arguments, response_format ignored
Image inputA solid red test image (only when the route declares image input)The colour is not recognised
max_tokens limitmax_tokens: 24 on a long-answer promptMore than 24 output tokens billed
Long context (optional)A fact placed in the middle of a 32K–1M-token promptFewer input tokens processed than sent, or the fact not found
Prompt cache (optional)The same long prompt twice, with a random first lineCache hits on the first request, or none on the second
Injected contentNothing extra; all replies above are scannedLinks 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):

ChannelEvaluated on
Goes out through a Local Nodethat Local Node
Direct (your own channel or a platform channel)Tare's official node
Set to always go out through TareTare

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.
Channel health: three states, one timeline The channel health page answers why your own channel stopped receiving traffic: healthy, degraded, or disabled, plus success rate, average latency, the last failure, and a timestamped timeline. Channel health: three states, one timeline Healthy Still sending traffic Degraded Failure rate over the line Disabled No new traffic Timeline: every disable and every recovery has a timestamp The same page shows success rate, latency, and the last failure Disabled is what routing calls parked: 5 counted failures open the breaker. A successful probe restores it. Live state here is in memory and clears on restart. To see a past outage, use the timeline API.
Channel health page: three states and one timeline

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

FieldValue
Nameopenrouter-prod
Base URLhttps://openrouter.ai/api/v1
API keyOpenRouter key
Non-streaming DialectOpenAI (messages)
Non-streaming URLLeave empty
StreamingLeave empty
EmbeddingsLeave off if unsure

OpenAI-compatible self-hosted gateway

FieldValue
Namecompany-llm-gateway
Base URLhttps://llm.example.com/v1
API keyYour gateway key
Non-streaming DialectOpenAI (messages)
Non-streaming URLUsually empty
StreamingUsually empty

If your gateway only has /responses, choose Responses (input).

Anthropic

FieldValue
Nameanthropic-prod
Base URLThe Anthropic base URL the platform provides
API keyAnthropic key
Non-streaming DialectAnthropic
StreamingUsually empty, unless you have a separate streaming path

LM Studio

FieldValue
Namelmstudio-office
Base URLhttp://192.168.1.20:1234/v1
API keyLeave empty
Non-streaming DialectLM Studio
StreamingUsually empty

Azure OpenAI

Azure usually chooses Custom, because the deployment and api-version are in the path/query.

FieldValue
Nameazure-gpt4o-prod
Non-streaming DialectCustom
Upstream completions URLThe Azure full completions URL, with the deployment and api-version
API keyAzure key

Troubleshooting common errors

SymptomCommon causeWhere to look
Add shows Pick the dialect for the non-streaming endpointNo Non-streaming Dialect chosenEndpoints → Non-streaming → Dialect
Add shows Upstream URL is requiredNeither Base URL nor full URL is filled inBase URL or Custom URL
Add shows Custom dialects append nothingCustom chosen but no full completions URL enteredUpstream completions URL
Add shows Give the embeddings endpointEmbeddings Supported is on but no URL enteredEmbeddings URL
Call returns 401Wrong upstream API key, missing, expired, or insufficient permissionsAPI key
Call returns 404Base URL misspelled, endpoint doesn't exist, Custom URL incomplete, model doesn't existBase URL / Non-streaming URL / Routing
Upstream reports messages is required/chat/completions did not receive OpenAI messages formatWhether the Dialect is wrongly set to Responses
Upstream reports input is required/responses did not receive Responses input formatWhether the Dialect is wrongly set to OpenAI
Browse upstream models is emptyUpstream doesn't support listing models, key only allows chat, URL can't derive the models addressNot necessarily a problem for calls; enter the model manually
Ordinary calls work, stream failsstream buffered by a proxy, different path, timeout, or different SSE configurationStreaming URL / Streaming Dialect
LM Studio with localhost doesn't workThe Tare server reaches its own localhost, not your computerChange 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:

ActionEndpoint
List channelsGET /v1/providers
Add a channelPOST /v1/providers
Modify a channelPUT /v1/providers/{id}
Delete a channelDELETE /v1/providers/{id}
Read/write the Dialect choiceGET / PUT /v1/providers/{id}/dialects
Fetch upstream modelsGET /v1/providers/{id}/upstream-models
Test a channelPOST /v1/providers/{id}/test
Send one sentence with a channelPOST /v1/providers/{id}/chat
Check channel healthGET /v1/health/channels
Check the health timelineGET /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.
Docs last updated Nov 27, 2026, 12:56 (UTC+8)