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.

OperationsMigration

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

  1. Change only the base URL and key, and send one minimal chat request first.
  2. Confirm you can get a gen-... ID and look up the cost.
  3. Add one BYOK channel.
  4. Enter the cost price for this channel.
  5. In Routing, point a model at this channel.
  6. Configure alerts and error handling.
  7. Migrate more models.

The diagram below merges the seven steps above into four stages.

Migrate one small path, then batch by batch Get one small chat path working, add one BYOK channel and its cost prices, point one model at it in Routing, then configure alerts before moving the rest one batch at a time. Migrate one small path, then batch by batch 1. Get one small path working Change only base URL and key. Send one small chat. Confirm a gen-… id and its cost. 2. Add one BYOK channel, enter prices if needed Enter prices only if cost is omitted, and do it before real traffic. 3. In Routing, point one model at this channel Keep the platform route as backup. enablePlatformModels must be on, and the model must exist there. 4. Set alerts and errors, then move the rest Back to step 2, one batch at a time. Do not cut every model over at once. From an OpenAI-compatible platform, most clients change base URL and key. Standard fields are done there. Unknown fields are forwarded as-is. If the upstream rejects a parameter, that error is the upstream's.
Recommended migration order: get one minimal path working first, then move over batch by batch

Things to watch out for when migrating from an OpenAI-compatible platform

  • Tare's model is 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_json and a url that 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.1 points 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/images is Tare's image-generation format. The response contains both data[].b64_json and data[].url: b64_json is the image bytes, valid long term; url is a hosted address for the same bytes that expires 24 hours after the call, with the expiry time in data[].expires_at. When you need to keep it long term, don't persist the url — save the b64_json or copy it to your own object storage. Besides the OpenAI-style size, requests also accept resolution/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

  1. One key, one model, one call — confirm the path works first.
  2. 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.
  3. Point one model at your channel first, and keep the platform one as a fallback later.
  4. Set up alerts and error handling.
  5. Then migrate the remaining models.

Next steps

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