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.
Migration
What this solves: What you need to change to migrate code that already runs against another model platform over to Tare, and in what order.
Don't switch all your models at once when migrating. Get one minimal path working first, then bring in channels, routing, and alerts step by step.
Recommended migration order
- Change only the base URL and key, and send one minimal chat request first.
- Confirm you can get a
gen-...ID and look up the cost. - Add one BYOK channel.
- Enter the cost price for this channel.
- In Routing, point a model at this channel.
- Configure alerts and error handling.
- Migrate more models.
The diagram below merges the seven steps above into four stages.
Things to watch out for when migrating from an OpenAI-compatible platform
- Tare's
modelis a platform-side model name, and it isn't necessarily the same as the upstream model name. - The images endpoint returns both a long-lived
b64_jsonand aurlthat expires after 24 hours. Don't persist the temporary URL. - Unrecognized fields are forwarded to the upstream as-is; if the upstream doesn't support them, you get the upstream's error back.
- The final streaming frame is mainly for usage; it doesn't necessarily have renderable text.
Details
From OpenAI
Change base_url to https://tare.jamerly.ai/v1 and swap the key for your ak-…. A client that only sends standard fields is fully migrated at this point.
From another aggregation platform
The endpoint is in OpenAI format, IDs start with gen-, and unrecognized request fields are forwarded to the upstream as-is rather than dropped, so most clients only need to change the base URL and key.
Three behaviors differ, so confirm them before switching:
- The model name is yours to define. On the Routing page you decide who
GLM 5.1points to; you don't have to follow the vendor's naming. - The cost of your own channel depends on the cost price you've entered. When the upstream self-reports the cost in its response, the self-reported value wins; when it doesn't (most BYOK channels), it's computed from the cost price you entered.
/v1/imagesis Tare's image-generation format. The response contains bothdata[].b64_jsonanddata[].url:b64_jsonis the image bytes, valid long term;urlis a hosted address for the same bytes that expires 24 hours after the call, with the expiry time indata[].expires_at. When you need to keep it long term, don't persist theurl— save theb64_jsonor copy it to your own object storage. Besides the OpenAI-stylesize, requests also acceptresolution/aspect_ratio. For the full format see the Endpoint list.
It's not just chat: /v1/embeddings, /v1/videos/generations (async, see the Endpoint list), and GET /v1/generation (look up the cost and duration of a call by request) all exist, and chat completions also has the two request fields models (backup model chain) and provider (per-request routing preference), both in the Routing section.
The side effect of forwarding unknown fields as-is
Forwarding unrecognized fields to the upstream as-is is a deliberate design, and also the most surprising part: when you pass a parameter the upstream doesn't support, you get back the upstream's error, not the platform's. What this trade-off buys is that cache_control, reasoning, plugins, and parameters vendors add later work on day one, without waiting for the platform to ship a release first.
Recommended order
- One key, one model, one call — confirm the path works first.
- Add your own channel, and enter the cost price before real traffic arrives. Reconstructing costs after the fact works far worse than recording them on the spot.
- Point one model at your channel first, and keep the platform one as a fallback later.
- Set up alerts and error handling.
- Then migrate the remaining models.
Next steps
- To get your first request working right away: read Quickstart.
- To connect your own provider: read Channels, Cost prices.
- To configure model routing: read Routing.
- To look up endpoint fields by task: read the Endpoint list.