Skip to content
PluginStats

ai-sdk-zhipu weekly downloads statistics

By coolkid141222 · npm · AI SDKs

Zhipu AI provider for Vercel AI SDK with full V3 specification support

View on npm Fresh · Oct 18, 2026

ai-sdk-zhipu has 987 recorded weekly downloads on npm, an increase of 2891% over the past 30 days, ranking #1448 of 2,322 tracked listings.

Weekly downloads
987
Official API · Oct 18, 2026
7-day growth
-51.9%
-1.1K weekly downloads
30-day growth
+2891%
+954 weekly downloads
90-day growth
+3848%
+962 weekly downloads
Rank
#1448
Among tracked npm listings

About ai-sdk-zhipu

ai-sdk-zhipu

Zhipu AI (智谱AI) provider for Vercel AI SDK with full V3 specification support.

NPM Version License

Features

  • ✅ AI SDK V3 Compatible - Fully implements the Language Model Specification V3
  • ✅ Compatibility - Supports ai v5-v6, @ai-sdk/provider v3.x, @ai-sdk/openai-compatible v2.x
  • ✅ OpenAI-Compatible API - Uses Zhipu AI's OpenAI-compatible API format
  • ✅ All Latest Models - Supports GLM-4.7, GLM-4.6, GLM-4.5, GLM-4-Flash, and more
  • ✅ Streaming Support - Full support for streaming responses
  • ✅ Multi-modal - Supports vision models (GLM-4V series)
  • ✅ Tool Calling - Supports function/tool calling
  • ✅ TypeScript - Written in TypeScript with full type definitions

Installation

npm install ai-sdk-zhipu
# or
pnpm add ai-sdk-zhipu
# or
yarn add ai-sdk-zhipu
# or
bun add ai-sdk-zhipu

Setup

  1. Get your API key from open.bigmodel.cn
  2. Set the ZHIPU_API_KEY environment variable:
export ZHIPU_API_KEY=your-api-key-here

Or create a .env file:

ZHIPU_API_KEY=your-api-key-here

Quick Start

import { generateText } from 'ai';
import { zhipu } from 'ai-sdk-zhipu';

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

console.log(result.text);

Usage Examples

Streaming
import { streamText } from 'ai';
import { zhipu } from 'ai-sdk-zhipu';

const result = await 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);
}
Multi-turn Conversations
import { generateText } from 'ai';
import { zhipu } from 'ai-sdk-zhipu';

const result = await generateText({
  model: zhipu('glm-4.7'),
  messages: [
    { role: 'system', content: 'You are a helpful assistant.' },
    { role: 'user', content: 'What is the capital of France?' },
    { role: 'assistant', content: 'The capital of France is Paris.' },
    { role: 'user', content: 'And what about Germany?' },
  ],
});

console.log(result.text);
Custom Configuration
import { createZhipu } from 'ai-sdk-zhipu';

const zhipu = createZhipu({
  baseURL: 'https://open.bigmodel.cn/api/paas/v4',
  apiKey: process.env.ZHIPU_API_KEY,
});

const result = await generateText({
  model: zhipu('glm-4.7'),
  prompt: 'Hello, world!',
});
Vision Models (Multi-modal)
import { generateText } from 'ai';
import { zhipu } from 'ai-sdk-zhipu';

const result = await generateText({
  model: zhipu('glm-4.6v'), // Vision model
  messages: [
    {
      role: 'user',
      content: [
        { type: 'text', text: 'What do you see in this image?' },
        { type: 'image', image: 'https://example.com/image.jpg' },
      ],
    },
  ],
});

console.log(result.text);
Tool Calling
import { generateText } from 'ai';
import { zhipu } from 'ai-sdk-zhipu';

const result = await generateText({
  model: zhipu('glm-4.7'),
  tools: {
    weather: {
      description: 'Get the weather for a location',
      parameters: {
        type: 'object',
        properties: {
          location: {
            type: 'string',
            description: 'The city and state',
          },
        },
        required: ['location'],
      },
    },
  },
  prompt: 'What is the weather in San Francisco?',
});

console.log(result.toolCalls);

Available Models

Text Models (文本模型)
Model IDDescriptionContextMax Output
glm-4.7Latest flagship model200K128K
glm-4.6High-performance model200K128K
glm-4.5Excellent performance128K96K
glm-4-plusExcellent performance128K4K
glm-4-air-250414High cost-performance128K16K
glm-4-longUltra-long input1M4K
glm-4-flash-250414Free model128K16K
glm-4.5-flashFree model128K96K
Vision Models (视觉模型)
Model IDDescriptionContextMax Output
glm-4.6vFlagship vision reasoning128K32K
glm-4.5vVision reasoning64K16K
glm-4.6v-flashFree vision model128K32K
glm-4v-flashFree vision model16K1K

For the complete model list, see the official documentation.

Full Model ID List

The full typed list is maintained in src/zhipu-chat-setting.ts and mirrors the official model overview (including less common and legacy IDs such as glm-4, glm-4-airx, glm-4-flashx-250414, glm-4.1v-thinking, and glm-4-0520).

Configuration

Provider Settings
import { createZhipu } from 'ai-sdk-zhipu';

const zhipu = createZhipu({
  baseURL: 'https://open.bigmodel.cn/api/paas/v4', // optional
  apiKey: 'your-api-key', // optional, defaults to ZHIPU_API_KEY env var
  headers: { // optional custom headers
    'X-Custom-Header': 'value',
  },
});
Model Settings
await generateText({
  model: zhipu('glm-4.7', {
    temperature: 0.7,
    maxTokens: 1000,
    topP: 0.9,
    topK: 40,
    stopSequences: ['END'],
    presencePenalty: 0.5,
    frequencyPenalty: 0.5,
  }),
  prompt: 'Your prompt here',
});

API Reference

createZhipu(settings?)

Creates a Zhipu AI provider instance.

Parameters:

  • settings.baseURL (string) - Base URL for the API
  • settings.apiKey (string) - API key
  • settings.headers (Record<string, string>) - Custom headers

Returns: Zhipu AI provider instance

zhipu(modelId, settings?)

Default provider instance.…

Description from the npm listing.

  • ai
  • ai-sdk
  • vercel-ai-sdk
  • zhipu
  • zhipuai
  • glm
  • glm-4
  • bigmodel
  • language-model
  • llm
  • provider

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

ai-sdk-zhipu weekly downloads on npm, last 90 days: 987 weekly downloads as of Oct 18, 2026, +3848% over 90 days.ai-sdk-zhipuWeekly downloads on npm · Last 90 days987downloads / week+3848% over 90 days05001K1.5K2K2.5KJul 20Aug 4Aug 19Sep 3Sep 18Oct 3Oct 18downloads / weekobservedarchived (Internet Archive)no observationsJul 22, 2026 – Oct 18, 2026 · 89 observations · Updated Oc…pluginstats.com
ai-sdk-zhipu weekly downloads on npm, last 90 days: 987 weekly downloads as of Oct 18, 2026, +3848% over 90 days.

7/30/90-day growth

ai-sdk-zhipu weekly downloads growth on npm: -51.9% over 7 days, +2891% over 30 days, +3848% over 90 days.ai-sdk-zhipuWeekly downloads growth on npm987downloads / week now7-day growth-1,065 weekly downloads-51.9%30-day growth+954 weekly downloads+2891%90-day growth+962 weekly downloads+3848%Growth vs. nearest observation to each baseline date · Updated Oct 18, 2026pluginstats.com
ai-sdk-zhipu weekly downloads growth on npm: -51.9% over 7 days, +2891% over 30 days, +3848% over 90 days.

Ranking history

ai-sdk-zhipu npm ranking history: currently #1448 (by weekly downloads).ai-sdk-zhipunpm ranking · by weekly downloads · Last 90 days#1448current rank#1370#1380#1390#1400#1410#1420#1430#1440#1450Jul 22Aug 6Aug 21Sep 5Sep 20Oct 5Oct 20rankOct 18, 2026 – Oct 20, 2026 · 3 observations · Updated Oct 18, 2026pluginstats.com
ai-sdk-zhipu npm ranking history: currently #1448 (by weekly downloads).

Listing placement

All npm2,320 listings · 116 pages · 1,161 shown · page 73, #11 (overall #1,451)
All npm: every listing in weekly downloads order

Listing placement

AI SDKs259 listings · 13 pages · page 7, #18 (overall #138)
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 ai-sdk-zhipu
Date (UTC)Weekly downloadsChange vs. previous
987-74
1,061-245
1,306+6
1,300-312
1,612-503
2,1150
2,115+63
2,052+103
1,949+20
1,929+37
1,892+37
1,855+236
1,619-272
1,891—

Similar npm AI SDKs plugins

All 20 ai-sdk-zhipu alternatives

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/ai-sdk-zhipu. First seen Oct 16, 2026; last successful collection Oct 20, 2026. See the methodology.