64 docs indexed
Point obleth at any OpenAI-compatible base URL, list the models the provider actually serves, and import the ones you don't already have — with batch defaults and per-model overrides, additively and without hand-writing routes.
Registering models one route at a time is fine for a handful, but tedious when a provider serves dozens. Import from provider takes any OpenAI-compatible base URL (and an optional API key), asks the provider which models it serves, and lets you import the ones you don't already have — each as a normal model route, with batch defaults you set once and per-model overrides where you need them.
The catalog is fetched server-side, so the API key you supply never reaches the browser. The flow is additive: it only ever creates new routes — nothing existing is changed — so you can re-run it any time to pick up just what's new.
If you only need one or two routes, creating them directly on the Models page (or via the Management API) is quicker.
Open the dashboard Models page and choose Import from provider. The wizard runs in three steps.
Enter the provider's API base URL and an optional API key.
http(s) and is the OpenAI-style base — obleth fetches
GET {base}/models from it. If you get "No /models endpoint here (HTTP
404)", check whether the base should include or drop the /v1 suffix.401/403 is reported back as a
rejected key.obleth accepts either the OpenAI { "object": "list", "data": [...] } shape or a
bare JSON array, keeps entries with a non-empty id, and dedupes and sorts them.
You now see every model the provider returned, each classified:
A model counts as existing when one of your routes matches it by normalized model name, or by the same provider base URL and upstream id together. That dual check is what makes re-running the importer surface only genuinely new models, even if you renamed a route after importing it.
Set batch defaults once — they apply to every selected model:
input_cost_per_token,
output_cost_per_token, and the per-image / per-audio-second / per-character
costs where the type uses them).Then, per row, edit the model name obleth will register and apply any per-model overrides on top of the batch defaults. Filter the list by id or name to find specific models.
obleth builds an import plan from your selections and shows it before anything is written. Confirm to create the routes. Each imported model becomes a normal route pointing at the provider's base URL and upstream id, carrying the API key you supplied (if any).
Two selected models that normalize to the same name are rejected at the review step — rename one before continuing.