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.
API keys
What this solves: Lay out which four kinds of key Tare has, what endpoints each can call, what happens when you use the wrong type, and how to configure a key's quota and source IP allowlist.
Every request carries an Authorization: Bearer ak-… header. The kind of key in this header determines which endpoints the request can hit.
Four kinds of key; the wrong type is the most common 403
Tare has only four kinds of key, with non-overlapping capabilities:
| Key type | Can call | Cannot call |
|---|---|---|
| Inference key (this page) | Model endpoints: chat, embeddings, images, video, /v1/models, /v1/generation | Provisioning key management, reconciliation |
| Provisioning key | /v1/keys/*: create, read, update, revoke Child keys (see Provisioning Key) | Call models, read billing |
| Reconciliation key | /v1/integration/*: read-only billing/usage reports (see Reconciliation API) | Call models, manage keys |
| Management key | /v1/manage/*: channels, routing and DLP configuration (see Management keys) | Call models, read billing, manage keys |
The reason the three don't overlap is very practical: a reconciliation key gets pasted into ERP configs and ticketing systems, so it can't also spend money; a provisioning key can create child keys with unlimited quota, so it likewise can't spend money or read billing directly. A management key can repoint traffic and change protection, so it is kept away from money and billing too.
Calling an endpoint with the wrong type returns a rejection that clearly states "which key is required". When you hit an incomprehensible 403 on an endpoint you're sure exists, checking which kind of key you're holding is faster than checking anything else.
A key is the smallest unit of governance
There is no department/project layer here. Once you model an org chart, the first reorg will drift from reality, and a wrong org chart is harder to use than none at all.
The cost is that a ak-3f2a — $4,200 line on a bill can't be traced to a person. So write a clear purpose when you create a key, for example Support bot (production).
Key attributes
| Identity | Usage, spend, and billing all belong to this Key |
| Key limit | Optional. A runaway job stops at the limit, instead of at the account balance |
| Bound routes | Optional. Bind the Key to a set of specified routes, see Routing |
| Source IP allowlist | Optional. Calls from outside the list are rejected outright, see below |
How to find keys once you have many
GET /v1/api-keys (a console-session endpoint, the list endpoint behind the API Keys page) accepts keyType and arbitrary text q. Once an account has many keys, there are two more filters:
issuerKeyId: show only child keys issued by one specific provisioning key. It's not rare for an account to have more than one provisioning key (migration, canary, one per product line); otherwise you can't tell at all which provisioning key issued this batch of child keys.topLevel=true: show only those that aren't a child key of any key (provisioning keys and inference keys, excluding child keys). Each provisioning key returned this way also carries achildKeyCount: how many child keys it has issued, computed in one batch query rather than one query per key.
Restrict which addresses this key can be used from
Console → API Keys → edit that key → Only allow this key from certain IP addresses. One IP or CIDR per line; both IPv4 and IPv6 are recognized.
Calls from outside the list return 403 with metadata.refusal_reason = source_ip_not_allowed, and the key itself is still valid — this is a fence, not a revocation. Its value: a leaked key that still can't get into your network isn't worth much.
What you fill in is the address your server uses to reach the internet, not its internal address, and not the address of the computer you're using to open the console.
The console shows "we see this browser as X", but that's just a reference; in most deployments it's not the same as your server's egress address.
This value can also be read directly: GET /v1/api-keys/source-ip, and the response also includes which request header it was read from.
Three things that are easy to get wrong by accident — and all three are intentional:
- IPv4 and IPv6 don't substitute for each other. Fill in
203.0.113.7and the call comes over IPv6, and it's still rejected. If both are possible, fill in both ranges; casually allowing the other family is the same as this gate failing without anyone noticing. - Turning the toggle off ≠ clearing the list. The list stays; to open it up temporarily, you don't have to copy the list somewhere else.
- On with an empty list = reject everything, not allow everything. The console won't let you save it that way, and the server treats it as a rejection if it ever happens.
If Tare cannot establish the source address of a call, a key with the allowlist on refuses it. The console then shows "source IP unknown" instead of an address.
When rejected, the error message includes the address we saw, and which request header it was read from; troubleshooting is basically that one sentence. Three common surprises: you filled in an internal address, the server egresses over IPv6, or there's an extra NAT or proxy in between.
Rotation
Create a new key → roll it out → disable the old one. Disabling takes effect immediately and is reversible; usage already recorded on the old key doesn't migrate, and both keys appear in that month's bill, which is exactly what proves the switchover was complete.
The full key is shown only once, at creation time; the platform stores only a hash. After it's lost, no one can recover it — the platform can't either — and you can only create a new one.
Next steps
- To issue separate keys to downstream users: read Provisioning Key.
- To connect a finance system and pull billing reports: read Reconciliation API.
- To make different keys follow different model policies: read Routing.
- Hit a 403 / 429 and want to find the cause: read Error codes.