From 3b792029c3287b23775bf4a67c6287b3f3610135 Mon Sep 17 00:00:00 2001 From: Steven Yeung Date: Fri, 29 May 2026 15:10:39 +0800 Subject: [PATCH] feat(alibaba-token-plan): add provider and 15 model TOMLs Add Alibaba Cloud Model Studio Token Plan (Team Edition) provider with: - Provider config (Singapore region, OpenAI-compatible endpoint) - 10 models using extends pattern (zero-cost overrides from canonical providers) - 5 models with full definitions (no canonical source available) - Image generation models (qwen-image, wan2.7) with output=0 per convention - deepseek-v3.2 with structured_output and corrected release date Models: qwen3.7-max, qwen3.6-flash, qwen3.6-plus, kimi-k2.5, kimi-k2.6, glm-5, glm-5.1, MiniMax-M2.5, deepseek-v4-pro, deepseek-v4-flash, deepseek-v3.2, qwen-image-2.0, qwen-image-2.0-pro, wan2.7-image, wan2.7-image-pro --- providers/alibaba-token-plan/logo.svg | 3 +++ .../models/MiniMax-M2.5.toml | 16 +++++++++++++ .../models/deepseek-v3.2.toml | 23 +++++++++++++++++++ .../models/deepseek-v4-flash.toml | 7 ++++++ .../models/deepseek-v4-pro.toml | 7 ++++++ .../alibaba-token-plan/models/glm-5.1.toml | 11 +++++++++ .../alibaba-token-plan/models/glm-5.toml | 14 +++++++++++ .../alibaba-token-plan/models/kimi-k2.5.toml | 17 ++++++++++++++ .../alibaba-token-plan/models/kimi-k2.6.toml | 15 ++++++++++++ .../models/qwen-image-2.0-pro.toml | 21 +++++++++++++++++ .../models/qwen-image-2.0.toml | 21 +++++++++++++++++ .../models/qwen3.6-flash.toml | 8 +++++++ .../models/qwen3.6-plus.toml | 9 ++++++++ .../models/qwen3.7-max.toml | 8 +++++++ .../models/wan2.7-image-pro.toml | 20 ++++++++++++++++ .../models/wan2.7-image.toml | 20 ++++++++++++++++ providers/alibaba-token-plan/provider.toml | 5 ++++ 17 files changed, 225 insertions(+) create mode 100644 providers/alibaba-token-plan/logo.svg create mode 100644 providers/alibaba-token-plan/models/MiniMax-M2.5.toml create mode 100644 providers/alibaba-token-plan/models/deepseek-v3.2.toml create mode 100644 providers/alibaba-token-plan/models/deepseek-v4-flash.toml create mode 100644 providers/alibaba-token-plan/models/deepseek-v4-pro.toml create mode 100644 providers/alibaba-token-plan/models/glm-5.1.toml create mode 100644 providers/alibaba-token-plan/models/glm-5.toml create mode 100644 providers/alibaba-token-plan/models/kimi-k2.5.toml create mode 100644 providers/alibaba-token-plan/models/kimi-k2.6.toml create mode 100644 providers/alibaba-token-plan/models/qwen-image-2.0-pro.toml create mode 100644 providers/alibaba-token-plan/models/qwen-image-2.0.toml create mode 100644 providers/alibaba-token-plan/models/qwen3.6-flash.toml create mode 100644 providers/alibaba-token-plan/models/qwen3.6-plus.toml create mode 100644 providers/alibaba-token-plan/models/qwen3.7-max.toml create mode 100644 providers/alibaba-token-plan/models/wan2.7-image-pro.toml create mode 100644 providers/alibaba-token-plan/models/wan2.7-image.toml create mode 100644 providers/alibaba-token-plan/provider.toml diff --git a/providers/alibaba-token-plan/logo.svg b/providers/alibaba-token-plan/logo.svg new file mode 100644 index 000000000..b3a2edc3c --- /dev/null +++ b/providers/alibaba-token-plan/logo.svg @@ -0,0 +1,3 @@ + + + diff --git a/providers/alibaba-token-plan/models/MiniMax-M2.5.toml b/providers/alibaba-token-plan/models/MiniMax-M2.5.toml new file mode 100644 index 000000000..43fb4b4b7 --- /dev/null +++ b/providers/alibaba-token-plan/models/MiniMax-M2.5.toml @@ -0,0 +1,16 @@ +[extends] +from = "minimax/MiniMax-M2.5" + +[cost] +input = 0 +output = 0 +cache_read = 0 +cache_write = 0 + +[interleaved] +field = "reasoning_content" + +[limit] +context = 196_608 +input = 196_601 +output = 24_576 \ No newline at end of file diff --git a/providers/alibaba-token-plan/models/deepseek-v3.2.toml b/providers/alibaba-token-plan/models/deepseek-v3.2.toml new file mode 100644 index 000000000..caabf7530 --- /dev/null +++ b/providers/alibaba-token-plan/models/deepseek-v3.2.toml @@ -0,0 +1,23 @@ +name = "DeepSeek V3.2" +family = "deepseek" +release_date = "2025-12-03" +last_updated = "2025-12-05" +attachment = false +reasoning = true +structured_output = true +temperature = true +tool_call = true +knowledge = "2025-01" +open_weights = true + +[cost] +input = 0 +output = 0 + +[limit] +context = 131_072 +output = 65_536 + +[modalities] +input = ["text"] +output = ["text"] \ No newline at end of file diff --git a/providers/alibaba-token-plan/models/deepseek-v4-flash.toml b/providers/alibaba-token-plan/models/deepseek-v4-flash.toml new file mode 100644 index 000000000..a9d8a96e8 --- /dev/null +++ b/providers/alibaba-token-plan/models/deepseek-v4-flash.toml @@ -0,0 +1,7 @@ +[extends] +from = "deepseek/deepseek-v4-flash" + +[cost] +input = 0 +output = 0 +cache_read = 0 \ No newline at end of file diff --git a/providers/alibaba-token-plan/models/deepseek-v4-pro.toml b/providers/alibaba-token-plan/models/deepseek-v4-pro.toml new file mode 100644 index 000000000..853fe090b --- /dev/null +++ b/providers/alibaba-token-plan/models/deepseek-v4-pro.toml @@ -0,0 +1,7 @@ +[extends] +from = "deepseek/deepseek-v4-pro" + +[cost] +input = 0 +output = 0 +cache_read = 0 \ No newline at end of file diff --git a/providers/alibaba-token-plan/models/glm-5.1.toml b/providers/alibaba-token-plan/models/glm-5.1.toml new file mode 100644 index 000000000..4b661ba9a --- /dev/null +++ b/providers/alibaba-token-plan/models/glm-5.1.toml @@ -0,0 +1,11 @@ +[extends] +from = "zhipuai/glm-5.1" + +[cost] +input = 0 +output = 0 +cache_read = 0 + +[limit] +context = 202_752 +output = 128_000 \ No newline at end of file diff --git a/providers/alibaba-token-plan/models/glm-5.toml b/providers/alibaba-token-plan/models/glm-5.toml new file mode 100644 index 000000000..72c72bc19 --- /dev/null +++ b/providers/alibaba-token-plan/models/glm-5.toml @@ -0,0 +1,14 @@ +open_weights = false + +[extends] +from = "zhipuai/glm-5" + +[cost] +input = 0 +output = 0 +cache_read = 0 +cache_write = 0 + +[limit] +context = 202_752 +output = 16_384 \ No newline at end of file diff --git a/providers/alibaba-token-plan/models/kimi-k2.5.toml b/providers/alibaba-token-plan/models/kimi-k2.5.toml new file mode 100644 index 000000000..abf76aa87 --- /dev/null +++ b/providers/alibaba-token-plan/models/kimi-k2.5.toml @@ -0,0 +1,17 @@ +family = "kimi" +attachment = true +temperature = true + +[extends] +from = "moonshotai/kimi-k2.5" +omit = ["structured_output"] + +[cost] +input = 0 +output = 0 +cache_read = 0 +cache_write = 0 + +[limit] +context = 262_144 +output = 32_768 \ No newline at end of file diff --git a/providers/alibaba-token-plan/models/kimi-k2.6.toml b/providers/alibaba-token-plan/models/kimi-k2.6.toml new file mode 100644 index 000000000..c808118a5 --- /dev/null +++ b/providers/alibaba-token-plan/models/kimi-k2.6.toml @@ -0,0 +1,15 @@ +family = "kimi" + +[extends] +from = "moonshotai/kimi-k2.6" +omit = ["structured_output"] + +[cost] +input = 0 +output = 0 +cache_read = 0 +cache_write = 0 + +[limit] +context = 262_144 +output = 16_384 \ No newline at end of file diff --git a/providers/alibaba-token-plan/models/qwen-image-2.0-pro.toml b/providers/alibaba-token-plan/models/qwen-image-2.0-pro.toml new file mode 100644 index 000000000..41db9524c --- /dev/null +++ b/providers/alibaba-token-plan/models/qwen-image-2.0-pro.toml @@ -0,0 +1,21 @@ +name = "Qwen Image 2.0 Pro" +family = "qwen" +release_date = "2026-03-03" +last_updated = "2026-03-03" +attachment = false +reasoning = false +temperature = true +tool_call = false +open_weights = false + +[cost] +input = 0 +output = 0 + +[limit] +context = 8_192 +output = 0 + +[modalities] +input = ["text"] +output = ["image"] \ No newline at end of file diff --git a/providers/alibaba-token-plan/models/qwen-image-2.0.toml b/providers/alibaba-token-plan/models/qwen-image-2.0.toml new file mode 100644 index 000000000..9cac8e5a8 --- /dev/null +++ b/providers/alibaba-token-plan/models/qwen-image-2.0.toml @@ -0,0 +1,21 @@ +name = "Qwen Image 2.0" +family = "qwen" +release_date = "2026-03-03" +last_updated = "2026-03-03" +attachment = false +reasoning = false +temperature = true +tool_call = false +open_weights = false + +[cost] +input = 0 +output = 0 + +[limit] +context = 8_192 +output = 0 + +[modalities] +input = ["text"] +output = ["image"] \ No newline at end of file diff --git a/providers/alibaba-token-plan/models/qwen3.6-flash.toml b/providers/alibaba-token-plan/models/qwen3.6-flash.toml new file mode 100644 index 000000000..84cf1331c --- /dev/null +++ b/providers/alibaba-token-plan/models/qwen3.6-flash.toml @@ -0,0 +1,8 @@ +[extends] +from = "alibaba/qwen3.6-flash" + +[cost] +input = 0 +output = 0 +cache_read = 0 +cache_write = 0 diff --git a/providers/alibaba-token-plan/models/qwen3.6-plus.toml b/providers/alibaba-token-plan/models/qwen3.6-plus.toml new file mode 100644 index 000000000..c34e5256b --- /dev/null +++ b/providers/alibaba-token-plan/models/qwen3.6-plus.toml @@ -0,0 +1,9 @@ +[extends] +from = "alibaba/qwen3.6-plus" +omit = ["cost.tiers", "cost.context_over_200k"] + +[cost] +input = 0 +output = 0 +cache_read = 0 +cache_write = 0 \ No newline at end of file diff --git a/providers/alibaba-token-plan/models/qwen3.7-max.toml b/providers/alibaba-token-plan/models/qwen3.7-max.toml new file mode 100644 index 000000000..d944917f7 --- /dev/null +++ b/providers/alibaba-token-plan/models/qwen3.7-max.toml @@ -0,0 +1,8 @@ +[extends] +from = "alibaba/qwen3.7-max" + +[cost] +input = 0 +output = 0 +cache_read = 0 +cache_write = 0 diff --git a/providers/alibaba-token-plan/models/wan2.7-image-pro.toml b/providers/alibaba-token-plan/models/wan2.7-image-pro.toml new file mode 100644 index 000000000..ba9617a86 --- /dev/null +++ b/providers/alibaba-token-plan/models/wan2.7-image-pro.toml @@ -0,0 +1,20 @@ +name = "Wan2.7 Image Pro" +release_date = "2026-05-29" +last_updated = "2026-05-29" +attachment = false +reasoning = false +temperature = true +tool_call = false +open_weights = false + +[cost] +input = 0 +output = 0 + +[limit] +context = 8_192 +output = 0 + +[modalities] +input = ["text"] +output = ["image"] \ No newline at end of file diff --git a/providers/alibaba-token-plan/models/wan2.7-image.toml b/providers/alibaba-token-plan/models/wan2.7-image.toml new file mode 100644 index 000000000..4aec80a6b --- /dev/null +++ b/providers/alibaba-token-plan/models/wan2.7-image.toml @@ -0,0 +1,20 @@ +name = "Wan2.7 Image" +release_date = "2026-05-29" +last_updated = "2026-05-29" +attachment = false +reasoning = false +temperature = true +tool_call = false +open_weights = false + +[cost] +input = 0 +output = 0 + +[limit] +context = 8_192 +output = 0 + +[modalities] +input = ["text"] +output = ["image"] \ No newline at end of file diff --git a/providers/alibaba-token-plan/provider.toml b/providers/alibaba-token-plan/provider.toml new file mode 100644 index 000000000..97b34dae8 --- /dev/null +++ b/providers/alibaba-token-plan/provider.toml @@ -0,0 +1,5 @@ +name = "Alibaba Token Plan" +env = ["ALIBABA_TOKEN_PLAN_API_KEY"] +npm = "@ai-sdk/openai-compatible" +doc = "https://www.alibabacloud.com/help/en/model-studio/token-plan-overview" +api = "https://token-plan.ap-southeast-1.maas.aliyuncs.com/compatible-mode/v1"