feat(tium): add Tium provider with the GLM, DeepSeek and Kimi families - #7596
Open
curiousbox wants to merge 1 commit into
Open
curiousbox wants to merge 1 commit into
curiousbox wants to merge 1 commit into
Conversation
Tium is an OpenAI-compatible gateway operated in Germany, serving open-weight models from GLM, DeepSeek and Moonshot. - providers/tium/provider.toml: @ai-sdk/openai-compatible, api https://api.tium.ai/v1, env TIUM_API_KEY, with a leading comment recording the sources for the hand-authored data. - providers/tium/logo.svg: monochrome, currentColor, square viewBox, no fixed dimensions. - Five models: glm-5.3, glm-5.3-flash, deepseek-v4-flash, deepseek-v4-pro and kimi-k3, each with base_model inheritance and provider-specific cost, limit and modality overrides. Costs are the effective USD per million tokens at the published subscription rate, derived from each model's published multiplier and weights. Context and output limits are this host's policy ceilings rather than the base models' declared maximums. Capabilities, reasoning options and modalities were probed live against api.tium.ai rather than inferred from the base models. Only reasoning levels that proved distinguishable are published.
Contributor
|
No actionable findings. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Adds Tium, an OpenAI-compatible gateway operated in Germany that resells open-weight models from Z.ai, DeepSeek and Moonshot. Five models, all probed live before authoring. Entries will be kept current.
Provider
providers/tium/provider.toml:npm = "@ai-sdk/openai-compatible",api = "https://api.tium.ai/v1",env = ["TIUM_API_KEY"],doc = "https://tium.ai/models".providers/tium/logo.svg: single path,fill="currentColor", squareviewBox="0 0 32 32", no width or height attributes.Models
All five use
base_modelagainst lab entries that already exist in the catalog, and author only the provider-side fields. Nomodels/files are added or modified.base_modelreasoning_optionsglm-5.3-flashzhipuai/glm-5.3-flashdeepseek-v4-flashdeepseek/deepseek-v4-flashdeepseek-v4-prodeepseek/deepseek-v4-proglm-5.3zhipuai/glm-5.3kimi-k3moonshotai/kimi-k3Each also sets
limit.context = 128000,limit.output = 32768and[interleaved] field = "reasoning_content".Pricing basis
Costs are USD per million tokens, as required. Tium does not bill USD per token: it sells a monthly allotment of weighted tokens (WT). The figures above are the effective USD rate at the subscription price of $2.8302/MWT, the highest of the three published tiers, multiplied by each model's published multiplier and its output and cache weights. Prepaid credit packs bill higher, $3.56 to $4.50/MWT, so the published rate is the conservative end. Reasoning tokens are counted and billed as output tokens, hence
cost.reasoningmatchingcost.output. Source: https://tium.ai/pricing. There is no context-based tiering on this host, so no[[cost.tiers]].limit.contextandlimit.outputare this host's policy ceilings, not the base models' maximums, which are higher. They are authored on the provider files for that reason.Verification
Probed live against
api.tium.aion 2026-09-09. Per-file comments carry the measurements.glm-5.3andglm-5.3-flashacceptreasoning_effortoflow,highandmax;none,minimal,mediumandxhighreturn 400, so the negative control fired.thinking.type = disabledis also refused, making both models thinking-only on this host, which is why neither publishes a toggle.glm-5.3andglm-5.3-flash,reasoning_contentmedians over 3 runs on a fixed prompt were 94/266/753 and 121/252/1241 characters, with non-overlapping ranges. For the DeepSeek and Kimi models the wire acceptsminimal,mediumandxhigh, but medians across those levels overlapped with no ordering, and they are absent from the lab baselines, so they are omitted rather than published as real controls. The per-file comments record this and note that a 600-token output ceiling on the measurement compresses differences at the top end.{ type = "toggle" },thinking.type = disabledgenuinely removesreasoning_contentfrom the response rather than merely being accepted.kimi-k3rejects video with "unsupported video url" despite the lab entry listing it, and refuses PDF, hence the override to text and image.glm-5.3-flashlikewise overrides to text and image.glm-5.3rejects image, PDF and video alike, which matches its lab entry, so it carries no override. The DeepSeek models accept image and PDF parts, but the lab entries are text-only and acceptance alone does not demonstrate comprehension, so no extra modality is claimed.Notes
GET /v1/models,POST /v1/chat/completionsandPOST /v1/completions.POST /v1/responsesreturns 404, so clients that default to the Responses API need the chat-completions wire format. This is recorded in the provider comment.GET /v1/modelsrequires an API key, so it cannot be polled unauthenticated the waysync.mdmodules expect, and a five-model catalog is below the threshold where one earns its keep. Happy to add one if you would prefer it.