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 channelsToken Market

Token Market

What this solves: Use upstream capacity that other Tare customers sell, or sell your own.

A listing says that one of the seller's channels can supply one upstream model, at a price the seller sets. It is not tied to any of the seller's routes. Using a listing adds it to one of your routes, like a channel of your own: you choose the model name, the tier and the weight. The public price list is at /market.

Buying

  • On /market, compare listings and click Use this. A share link from a seller opens the same listing. Use this opens the Routing page with the listing picked in the new-route row.
  • On the Routing page, the channel picker in the new-route row also lists market listings. Search by seller or model.

Pick the model name, the tier (primary or a fallback) and the weight, then click Add. The listing becomes a row in that model's route, next to your own channels. Tiers and weights work as for any route: a lower tier is tried first, and rows in the same tier split traffic by weight. Change the tier, the weight or switch it off in the route, or under Console → Market → Using. The platform default stays last.

When adding or editing a route, the Routing page also shows how that model did over the last 7 days on each line you used (your channels, market listings, the platform): calls, success rate, time to first token, latency, cache hit rate and generation speed.

A listing that is suspended or delisted is skipped. A listing that has sold its token quota for the current period is skipped until the period resets. If nothing else can serve the model, the request gets a 503 with MARKET_SOLD_OUT.

Market listings apply to chat requests. Images, video and embeddings do not use them.

What you pay: the listing price for the tokens used, plus Tare's routing fee. Both appear as one deduction, "Market tokens + routing fee". The usage.cost field in the response is the total. Your balance has to cover it, as with platform channels.

Where the request runs: each listing shows its source.

SourceWhat it means
Key hosted on TareThe seller's key is kept by Tare; Tare or the official node calls the upstream.
Runs on the seller's machineThe seller's own node calls the upstream (a key or a subscription on their node). Your prompt and the response pass through that machine. When you call through your own Local Node, it goes from your node to theirs directly.

Pick the second kind only for traffic you are willing to send through a third party's machine.

Price changes: a price decrease applies at once. An increase on a listed model takes effect 7 days after the seller sets it, and the market page shows the new price and its date during that week.

Selling

The first time you open Console → Market → Selling, set up your seller profile: a name, a page address (/market/seller/<address>, made from the name if you leave it blank) and an optional description. It belongs to your account, and every listing you create is shown under it. The address can't be changed once the profile is set up. The name and description can, with Edit next to your name.

Your seller page lists the models you have listed. For each one it shows tokens sold per day over the last 30 days, tokens left in the current period, and its quality: the admission evaluation, success rate, time to first token, full response time, generation speed, cache hit rate, and how many times in 30 days the token counts reported for it did not match Tare's. The market page links each listing's seller name to this page.

  1. Under Console → Market → Selling, click New listing.
  2. Pick one of your channels and the upstream model it supplies (the name sent to that channel; suggestions come from the channel's model list, and you can type any name). Optionally give the market page a different display name. Add prices per 1M tokens (input, output, and optionally cache read and cache write). The channel and upstream model cannot be changed later; one channel can list each upstream model once. You do not need a route for it. Optionally set Tokens for sale: unlimited, or a number of tokens (input + output) per period, reset every 5 hours, every day, every 7 days, every 30 days, or never. Change it any time under Quota; a change starts a new period at once. Buyers see how many tokens are left and when the period resets.
  3. Click Submit for review. This runs a channel evaluation of that upstream model on that channel, billed to the channel like any evaluation. If no check fails, the listing goes live. Warnings do not block it, and buyers see the counts. If a check fails, the listing is rejected with the reason; fix the channel and submit again.

You get the full listed price for every call; the routing fee is charged to the buyer on top. You do not see who the buyers are. Each call's earning shows the model, tokens, price version and amount.

Earnings: each call's earning is frozen for 7 days, then credited to your wallet balance as "Market earning". The Earnings panel shows the frozen amount, the amount already in your wallet, and the monthly statement as a CSV download.

Quality checks after listing:

  • The market page shows each listing's admission evaluation and its last 7 days of real traffic: calls, success rate, time to first token, cache hit rate and generation speed.
  • For listings that run on your own machine, Tare counts the tokens of each call itself. When the reported count is far above what was sent and received, the call is billed at Tare's count. Repeated cases suspend the listing.
  • Tare can suspend a listing. While earnings are still frozen, they can be clawed back and the listing fee refunded to the buyers.

Delisting: Delist stops new traffic at once. Earnings already recorded are still settled on schedule. Listing again runs a new evaluation.

Subscription channels

A subscription you pay for by the month can serve your own calls, or be sold as a listing, through your Local Node. The credential stays on that node. For every step from starting the node to listing it, see Sharing a subscription.

  1. On the Channels page, add a channel and switch to Self-hosted. Pick the hosting node (the machine that holds the subscription) and the endpoint: a Coding Plan from the list, or Local address on the node for a client or bridge you run on that machine (for example http://127.0.0.1:8317/v1).
  2. After you save, open the channel again: the hint there shows its channel id. Put the key in keys.json on that node, keyed by channel id:
SystemFile
Linux/etc/tare-local-node/keys.json
macOS~/.config/tare-local-node/keys.json
Code / Terminal
{"123": "sk-..."}

One entry per such channel on that node. A new or edited file takes effect within 10 seconds without restarting the node, and upgrading the node by running the install command again leaves it alone. On Linux, chmod 600 it. The node's startup log line held keys: N channel(s) in <file> shows how many it read.

If the endpoint is Local address on the node and that local service does not check keys, still add an entry with any non-empty value. Without it every call skips this channel (a caller with no other candidate gets 503), and the node log has a WARNING: channel <channel id> skipped line naming the missing channel id and the file to put it in.

This default location needs node 0.4.9 or later. On an older node, run the install command again to upgrade.

Tare stores no key for this channel, and the channel runs only on that node. If the node is offline, the channel is skipped and the next candidate serves the request.

CallerPath
Your code, on the node that holds itThat node calls the upstream.
Your code, on another of your nodesNode to node over P2P, through your internal network when both nodes are on it.
Your code, through Tare's addressTare, then the node, over the node's tunnel.
A buyer, through their own nodeTheir node to yours over P2P.
A buyer, through Tare's addressTare, then your node, over the node's tunnel.

When the two nodes cannot connect, calls go through Tare instead. See Local Nodes.

Billing for P2P calls: Tare does not see this traffic, so both nodes report each call. The buyer is billed on the buyer's node's count. If the seller's node got clearly more tokens from the upstream than the buyer's node reported, the buyer is billed at the seller's count; a buyer that does this repeatedly loses P2P and goes through Tare. If the usage in the response is far above what the buyer's node counted in the text, the call is billed at that count and counts against the listing, as for any listing that runs on the seller's machine.

Related: Routing, Channels, Billing rules.

Docs last updated Nov 27, 2026, 12:56 (UTC+8)