Skip to content
PluginStats

zhipu-ai-sdk-provider weekly downloads statistics

By meabed · npm · AI SDKs

Vercel AI SDK provider for Zhipu AI — GLM language models, embeddings, image generation, web search, and text-to-speech

View on npm Stale · Oct 18, 2026

zhipu-ai-sdk-provider has 1,722 recorded weekly downloads on npm, an increase of 515% over the past 30 days.

Weekly downloads
1,722
Official API · Oct 18, 2026
7-day growth
-20.5%
-445 weekly downloads
30-day growth
+515%
+1.4K weekly downloads
90-day growth
+528%
+1.4K weekly downloads
Rank
—
Among tracked npm listings

About zhipu-ai-sdk-provider

zhipu-ai-sdk-provider

Zhipu AI provider for the Vercel AI SDK. Integrates GLM language models, embedding models, image generation, and text-to-speech from bigmodel.cn.

npm version license

Installation

npm install zhipu-ai-sdk-provider ai

Configuration

Set your API key from bigmodel.cn:

export ZHIPU_API_KEY=your-api-key

Quick Start

import { generateText } from "ai";
import { zhipu } from "zhipu-ai-sdk-provider";

const { text } = await generateText({
  model: zhipu("glm-4.7"),
  prompt: "Why is the sky blue?",
});

console.log(text);

Provider Setup

Default instance — reads ZHIPU_API_KEY from environment:

import { zhipu } from "zhipu-ai-sdk-provider";

Custom instance — pass your own config:

import { createZhipu } from "zhipu-ai-sdk-provider";

const zhipu = createZhipu({
  apiKey: "your-api-key",
  baseURL: "https://open.bigmodel.cn/api/paas/v4", // default
  headers: { "X-Custom": "value" }, // optional
});
Settings
OptionTypeDescription
apiKeystringAPI key. Defaults to ZHIPU_API_KEY env var.
baseURLstringAPI base URL. Defaults to https://open.bigmodel.cn/api/paas/v4.
headersRecord<string, string>Custom headers to include in requests.
fetchFetchFunctionCustom fetch implementation (e.g. for testing or proxying).

Supported Models

Language Models
ModelDescription
glm-5Latest flagship, designed for agent applications
glm-4.7High-performance with deep thinking
glm-4.7-flashFast variant of GLM-4.7
glm-4.7-flashxExtended fast variant of GLM-4.7
glm-4.6Previous-gen flagship, supports tool_stream
glm-4.5GLM-4.5 with thinking support
glm-4.5-airLightweight GLM-4.5
glm-4.5-xExtended GLM-4.5
glm-4.5-airxExtended lightweight GLM-4.5
glm-4.5-flashFast GLM-4.5
glm-4-plusEnhanced GLM-4
glm-4-airLightweight GLM-4
glm-4-air-250414GLM-4-air dated snapshot
glm-4-airxExtended lightweight GLM-4
glm-4-longLong-context GLM-4
glm-4-flashFast GLM-4
glm-4-flash-250414GLM-4-flash dated snapshot
glm-4-flashxExtended fast GLM-4
glm-4-32b-0414-128kOpen-source 32B model, 128K context
Vision Models
ModelDescription
glm-4.6vGLM-4.6 vision model
glm-4.6v-flashFast GLM-4.6 vision
glm-4.6v-flashxExtended fast GLM-4.6 vision
glm-4.5vGLM-4.5 vision model
glm-4v-plus-0111Enhanced GLM-4 vision
glm-4v-plusGLM-4 vision
glm-4vStandard GLM-4 vision
glm-4v-flashFast GLM-4 vision
Reasoning Models
ModelDescription
glm-z1-airLightweight reasoning model
glm-z1-airxExtended reasoning model
glm-z1-flashFast reasoning model
glm-4.1v-thinking-flashVision + reasoning
glm-4.1v-thinking-flashxExtended vision + reasoning
Embedding Models
ModelDescription
embedding-3Latest embedding model (recommended)
embedding-2Standard embedding model
Image Generation Models
ModelDescription
cogview-4-250304Latest CogView 4, supports quality: "hd"
cogview-4Standard CogView 4
cogview-3-flashFast image generation
Speech Models
ModelDescription
glm-ttsText-to-speech model

Usage

Text Generation
import { generateText } from "ai";
import { zhipu } from "zhipu-ai-sdk-provider";

const { text } = await generateText({
  model: zhipu("glm-4.7"),
  prompt: "Explain quantum computing in simple terms.",
});
Streaming
import { streamText } from "ai";
import { zhipu } from "zhipu-ai-sdk-provider";

const result = streamText({
  model: zhipu("glm-4.7"),
  prompt: "Write a short story about a robot.",
});

for await (const chunk of result.textStream) {
  process.stdout.write(chunk);
}
Thinking / Reasoning Mode

GLM-5 and GLM-4.7 models have thinking enabled by default. You can control this via model settings:

// Enable with preserved thinking (retains reasoning across turns)
const { text } = await generateText({
  model: zhipu("glm-4.7", {
    thinking: {
      type: "enabled",
      clearThinking: false, // preserve reasoning context across turns
    },
  }),
  prompt: "Solve step by step: What is 23 * 47?",
});
// Disable thinking for faster responses
const { text } = await generateText({
  model: zhipu("glm-4.7", {
    thinking: { type: "disabled" },
  }),
  prompt: "What is 2 + 2?",
});

You can also configure thinking at call time with zhipuOptions:

import { generateText } from "ai";
import { zhipu, zhipuOptions } from "zhipu-ai-sdk-provider";

const { text } = await generateText({
  model: zhipu("glm-4.7"),
  prompt: "Solve this complex math problem.",
  providerOptions: zhipuOptions({
    thinking: { type: "enabled", clear_thinking: false },
  }),
});
Provider Options (zhipuOptions)

Use zhipuOptions to pass Zhipu-specific API parameters at call time. Options are passed directly — no nesting required:

import { generateText } from "ai";
import { zhipu, zhipuOptions } from "zhipu-ai-sdk-provider";

const { text } = await generateText({
  model: zhipu("glm-4.7"),
  prompt: "Hello!",
  providerOptions: zhipuOptions({
    temperature: 0.7,
    top_p: 0.9,
    max_tokens: 4096,
    do_sample: true,
  }),
});
Available Options…

Description from the npm listing.

  • zhipu
  • bigmodel
  • glm
  • ai
  • provider
  • vercel-ai
  • vercel
  • ai-sdk

README badge

Show your rank in a README or on your website. The badge updates automatically.

Charts

Images: 30d · 1y · all time · 1600×900 dark

Adoption over time

zhipu-ai-sdk-provider weekly downloads on npm, last 90 days: 1,722 weekly downloads as of Oct 18, 2026, +528% over 90 days.zhipu-ai-sdk-providerWeekly downloads on npm · Last 90 days1,722downloads / week+528% over 90 days05001K1.5K2K2.5KJul 20Aug 4Aug 19Sep 3Sep 18Oct 3Oct 18downloads / weekobservedarchived (Internet Archive)no observationsJul 25, 2026 – Oct 18, 2026 · 86 observations · Updated Oc…pluginstats.com
zhipu-ai-sdk-provider weekly downloads on npm, last 90 days: 1,722 weekly downloads as of Oct 18, 2026, +528% over 90 days.

7/30/90-day growth

zhipu-ai-sdk-provider weekly downloads growth on npm: -20.5% over 7 days, +515% over 30 days, +528% over 90 days.zhipu-ai-sdk-providerWeekly downloads growth on npm1,722downloads / week now7-day growth-445 weekly downloads-20.5%30-day growth+1,442 weekly downloads+515%90-day growth+1,448 weekly downloads+528%Growth vs. nearest observation to each baseline date · Updated Oct 18, 2026pluginstats.com
zhipu-ai-sdk-provider weekly downloads growth on npm: -20.5% over 7 days, +515% over 30 days, +528% over 90 days.

Ranking history

zhipu-ai-sdk-provider npm ranking history: currently #1377 (by weekly downloads).zhipu-ai-sdk-providernpm ranking · by weekly downloads · Last 90 days#1377current rank#1350#1355#1360#1365#1370#1375#1380Jul 23Aug 7Aug 22Sep 6Sep 21Oct 6Oct 21rankOct 18, 2026 – Oct 21, 2026 · 4 observations · Updated Oct 18, 2026pluginstats.com
zhipu-ai-sdk-provider npm ranking history: currently #1377 (by weekly downloads).

Listing placement

All npm2,422 listings · 122 pages · 1,212 shown · page 71, #3 (overall #1,403)
All npm: every listing in weekly downloads order

Listing placement

AI SDKs270 listings · 14 pages · page 6, #12 (overall #112)
AI SDKs: every listing in weekly downloads order

Filled points are observed values; hollow points come from Internet Archive snapshots of the listing page. Dashed segments span periods with no observations — values between points are not interpolated.

Each band is one page of 20. Weekly downloads on a linear scale. Placement is projected from weekly downloads, so it can differ from the marketplace's own sort order. Hover a dot to see the listing.

Recent observations

Full history (122)
Recent weekly downloads observations for zhipu-ai-sdk-provider
Date (UTC)Weekly downloadsChange vs. previous
1,722+496
1,226-286
1,512+36
1,476-362
1,838-438
2,2760
2,276+109
2,167+97
2,070+49
2,021+31
1,990-19
2,009+105
1,904-314
2,218—

Data source

Weekly downloads (trailing 7 complete days) come from the official npm downloads API. Downloads include CI and mirrors and are not equivalent to installs or users. npm publishes no ratings.

Listing: https://www.npmjs.com/package/zhipu-ai-sdk-provider. First seen Oct 16, 2026; last successful collection Oct 22, 2026. See the methodology.