From 9ed6fad3df56f7a4e8def677ecc2115a855a1314 Mon Sep 17 00:00:00 2001 From: Romel Date: Wed, 21 Jan 2026 18:50:59 +0800 Subject: [PATCH 1/2] feat: add GLM-4.7-Flash and GLM-4.7-FlashX models Add two new Z.ai models: - GLM-4.7-FlashX: Lightweight, high-speed variant ($0.07/1M input, $0.4/1M output) - GLM-4.7-Flash: Free, lightweight variant Both models have 200K context, 128K max output, and support reasoning, tools, and JSON output. Co-Authored-By: Claude Opus 4.5 --- packages/models/src/models/zai.ts | 49 +++++++++++++++++++++++++++++++ 1 file changed, 49 insertions(+) diff --git a/packages/models/src/models/zai.ts b/packages/models/src/models/zai.ts index 0718aec6fe..5195e96d49 100644 --- a/packages/models/src/models/zai.ts +++ b/packages/models/src/models/zai.ts @@ -260,6 +260,55 @@ export const zaiModels = [ }, ], }, + { + id: "glm-4.7-flashx", + name: "GLM-4.7 FlashX", + description: "Lightweight, high-speed GLM-4.7 variant.", + family: "glm", + releasedAt: new Date("2025-12-22"), + providers: [ + { + providerId: "zai", + modelName: "glm-4.7-flashx", + inputPrice: 0.07 / 1e6, + cachedInputPrice: 0.01 / 1e6, + outputPrice: 0.4 / 1e6, + requestPrice: 0, + contextSize: 200000, + maxOutput: 128000, + streaming: true, + reasoning: true, + vision: false, + tools: true, + jsonOutput: true, + }, + ], + }, + { + id: "glm-4.7-flash", + name: "GLM-4.7 Flash", + description: "Free, lightweight GLM-4.7 model.", + family: "glm", + free: true, + releasedAt: new Date("2025-12-22"), + providers: [ + { + providerId: "zai", + modelName: "glm-4.7-flash", + inputPrice: 0, + cachedInputPrice: 0, + outputPrice: 0, + requestPrice: 0, + contextSize: 200000, + maxOutput: 128000, + streaming: true, + reasoning: true, + vision: false, + tools: true, + jsonOutput: true, + }, + ], + }, { id: "glm-4.6", name: "GLM-4.6", From cd3b5fe8526bc94e9a7047504fa03b5ad9faa92c Mon Sep 17 00:00:00 2001 From: Luca Steeb Date: Thu, 22 Jan 2026 13:43:25 +0000 Subject: [PATCH 2/2] Add discount field to glm-4.7-flashx model --- packages/models/src/models/zai.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/packages/models/src/models/zai.ts b/packages/models/src/models/zai.ts index 5195e96d49..469b3b5b7f 100644 --- a/packages/models/src/models/zai.ts +++ b/packages/models/src/models/zai.ts @@ -273,6 +273,7 @@ export const zaiModels = [ inputPrice: 0.07 / 1e6, cachedInputPrice: 0.01 / 1e6, outputPrice: 0.4 / 1e6, + discount: 0.1, requestPrice: 0, contextSize: 200000, maxOutput: 128000,