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.

Getting startedOverview

Overview

What this solves: What Tare is, when you need it, and in what order to integrate.

What Tare is

Tare is a model gateway that sits between your app and the various large models.

For your app, everything reduces to two values:

ConfigValue
base_urlhttps://tare.jamerly.ai/v1
api_keyA key you create in the Tare console

On the Tare server path, Tare decides and records which vendor and which model answer the request, which upstream it takes, and how much it costs. On a customer Local Node, the business connects to the node directly, and Tare records usage and the ledger.

Tare sits between your app and upstreams Your app base_url + api_key POST /v1/chat/completions Tare model gateway tare.jamerly.ai/v1 OpenAI-compatible Upstreams Platform models Tokens procured by Tare Billed on the platform price list Your own channel (BYOK) You pay tokens; fee floor 0.0001 Egress: server direct, or your node
Tare architecture: app, gateway, and two kinds of upstream

The Local Node in the diagram above is one direct egress for your own channel. It is not a third vendor. How the request travels, and how the governance fee is charged, are in Local Nodes and Billing rules. Limits and sensitive-content checks are in Rate limits and quotas and Data protection (DLP).

When you need Tare

If your app uses only one model, opens only one account, and doesn't care who spent how much, calling the provider's API directly is enough.

These situations are where Tare is worth it:

  • You don't want to be locked into a single vendor, and switching models only means changing config, not code.
  • You already have your own provider keys and want their usage, cost, and failures gathered in one place.
  • You want to issue separate keys to downstream users, teams, or customers — each with its own limit, individually disableable, and reconcilable.
  • Your upstreams are all over the place, and you want to call them all through OpenAI's API format.

At runtime Tare handles who can call, which vendor it goes to, how much was spent, how to fail over when something breaks, and how to investigate when something goes wrong.

Two modes of use, which can be mixed on the same account

Platform modelYour own channel (BYOK)
Who buys the tokensTare procures themYou buy them yourself, paying the provider directly
How Tare chargesBy the platform price listNo token fee. A governance fee is charged, floor 0.0001. A higher rate follows the trial or contract
Who decides the upstreamTare decidesYou configure it on the Routing page. After you mark a customer node, the business connects directly to your own node
What Tare gives youA unified address, failover, usage recordsAll of the above, plus cross-vendor cost attribution

BYOK = Bring Your Own Key: you connect your own provider credential to Tare. You still pay the provider for tokens. Tare also charges a governance fee, floor 0.0001.

Connecting your own provider doesn't make tokens cheaper. You were already paying the provider directly. Spend is recorded in one place, and you can break it down by model, by key, and by your own custom labels.

For your first integration, follow this order

  1. In the console's API Keys, create an Inference key, see Before you start.
  2. Change the base URL and key, send your first request, see Quickstart.
  3. To connect your own provider, add a channel, see Channels.
  4. Enter cost prices for this channel; BYOK cost is calculated from them, see Cost prices.
  5. Point the externally exposed model name at this channel, see Routing.
  6. Fill in governance config: alerts, limits, data protection, see Alerts, Rate limits and quotas, Data protection (DLP).

What a request goes through on the Tare server

The diagram below shows only a successful non-streaming chat on the Tare server path. Node mode is not on this diagram: the business connects to the upstream directly, and Tare only records usage and the ledger. See Local Nodes.

The usage record is written after the response returns. Querying immediately after you get the gen-... ID may return 404. For how to query and retry, see Endpoints.

One successful non-streaming chat on the Tare server path This diagram shows only calls through the Tare server: check the key, choose a route, forward upstream, return the response, then write usage and cost. Node mode is not on this diagram; the app calls upstream directly. The response is translated to the upstream's format and is not guaranteed byte-for-byte. One request on the Tare server path Your app base_url + api_key Tare gateway tare.jamerly.ai/v1 Upstream provider upstream API POST /v1/chat/completions Forward upstream Response comes back 200 response Check the key Choose a route Write usage and cost Translated if the upstream is not OpenAI Server path only. Node mode is not here: the app calls upstream directly, and Tare records usage and the bill.
One request on the Tare server path

The request body needs no changes. Fields Tare doesn't recognize are forwarded to the upstream as-is, so cache_control, reasoning, plugins, and any parameters a vendor adds later all work right away, without waiting for a Tare release.

Next steps

  • No account or key yet: read Before you start.
  • Want to get the first request running right away: read Quickstart.
  • Want to know what each console page does: read Console guide.
  • When you hit a term you don't recognize: check the Glossary.
Docs last updated Nov 27, 2026, 12:56 (UTC+8)