Skip to content
PluginStats

@agentor/dashscope weekly downloads statistics

By agentor · npm · AI SDKs

AI SDK provider for Alibaba Cloud DashScope (Bailian) API

View on npm Fresh · Oct 18, 2026

@agentor/dashscope has 1,059 recorded weekly downloads on npm, an increase of 353% over the past 30 days, ranking #1431 of 2,322 tracked listings.

Weekly downloads
1,059
Official API · Oct 18, 2026
7-day growth
-58.2%
-1.5K weekly downloads
30-day growth
+353%
+825 weekly downloads
90-day growth
+1726%
+1K weekly downloads
Rank
#1431
Among tracked npm listings

About @agentor/dashscope

@agentor/dashscope

English | 中文

npm version npm downloads npm license

AI SDK provider for Alibaba Cloud DashScope (Bailian) API.

Features

  • Chat Completions - /chat/completions with function calling, streaming, reasoning, and vision
  • Completions (FIM) - /completions for code completion with Qwen Coder models
  • Responses - /responses endpoint with built-in tools (web search, code interpreter, MCP, etc.)
  • Embedding - Text vectorization via /embeddings endpoint
  • Reranking - Document reranking via /reranks endpoint
  • Image Generation - Text-to-image via multimodal generation endpoint
  • Video Generation - Text-to-video and image-to-video with async polling
  • Speech Synthesis - Text-to-speech for CosyVoice and Qwen-TTS models
  • Transcription - Speech-to-text for short and long audio
  • Built-in Tools - Web search, code interpreter, web extractor, file search, web search image, image search, MCP integration
  • Thinking Mode - Enable reasoning/thinking with configurable budget
  • Multi-region - Beijing, Singapore, US, Germany regions
  • AI SDK V4 - Implements the LanguageModelV4 specification
  • TypeScript-First - Full type safety with comprehensive TypeScript support

Installation

# Install with npm
$ npm install @agentor/dashscope

# Install with yarn
$ yarn add @agentor/dashscope

# Install with pnpm
$ pnpm add @agentor/dashscope

Quick Start

Setup
import { createDashScope } from "@agentor/dashscope";

const dashscope = createDashScope({
  apiKey: process.env.DASHSCOPE_API_KEY,
});

Or use the default instance (reads DASHSCOPE_API_KEY from environment):

import { dashscope } from "@agentor/dashscope";
Basic Chat
import { dashscope } from "@agentor/dashscope";
import { generateText } from "ai";

const result = await generateText({
  model: dashscope("qwen3.5-flash"),
  prompt: "Introduce yourself in one sentence.",
});

console.log(result.text);
Streaming
import { streamText } from "ai";

const result = streamText({
  model: dashscope("qwen3.5-flash"),
  prompt: "Explain the Vercel AI SDK in three sentences.",
});

for await (const part of result.textStream) {
  process.stdout.write(part);
}
Function Calling
import { generateText, hasToolCall, tool } from "ai";
import { z } from "zod/v4";

const result = await generateText({
  model: dashscope("qwen3.5-flash"),
  tools: {
    weather: tool({
      description: "Get weather information for a city",
      inputSchema: z.object({
        city: z.string().describe("City name"),
      }),
      execute: async ({ city }) => {
        return `${city}: Sunny, 25°C`;
      },
    }),
  },
  prompt: "What's the weather in Beijing?",
  stopWhen: hasToolCall("weather"),
});

Chat Completions API

Web Search

Enable web search via providerOptions:

await generateText({
  model: dashscope("qwen3.5-flash"),
  providerOptions: {
    dashscope: {
      enableSearch: true,
    },
  },
  prompt: "What are the latest tech news today?",
});

Options: enableSearch, searchStrategy ("enable" | "enable_with_history" | "agent_max").

Code Interpreter

Enable code interpreter (requires thinking mode):

await generateText({
  model: dashscope("qwen3.5-flash"),
  providerOptions: {
    dashscope: {
      enableCodeInterpreter: true,
      enableThinking: true,
    },
  },
  prompt: "Calculate the sum of the first 20 Fibonacci numbers.",
});
Thinking Mode

Enable reasoning with configurable budget:

await generateText({
  model: dashscope("qwen3.5-flash"),
  providerOptions: {
    dashscope: {
      enableThinking: true,
      thinkingBudget: 5000,
    },
  },
  prompt: "Which is larger, 9.11 or 9.9?",
});

Context Cache

Applies to the Chat endpoint (dashscope(modelId)). The Responses endpoint (dashscope.responses(modelId)) caches via a session header instead — see Session Cache.

DashScope supports explicit caching to reduce cost and latency for repeated prefixes. Add cacheControl via providerOptions on messages or content parts:

import { generateText } from "ai";

// Cache a long system prompt (minimum 1024 tokens)
const first = await generateText({
  model: dashscope("qwen3.5-flash"),
  messages: [
    {
      role: "system",
      content: longText, // must be >= 1024 tokens
      providerOptions: {
        dashscope: { cacheControl: { type: "ephemeral" } },
      },
    },
    { role: "user", content: "What does this code do?" },
  ],
});

// Second request with same system prompt hits the cache
const second = await generateText({
  model: dashscope("qwen3.5-flash"),
  messages: [
    {
      role: "system",
      content: longText,
      providerOptions: {
        dashscope: { cacheControl: { type: "ephemeral" } },
      },
    },
    { role: "user", content: "How can it be optimized?" },
  ],
});

Cache on user message content parts:

await generateText({
  model: dashscope("qwen3.5-flash"),
  messages: [
    {
      role: "user",
      content: [
        {
          type: "text",
          text: longCode,
          providerOptions: {
            dashscope: { cacheControl: { type: "ephemeral" } },
          },
        },
        { type: "text", text: "Explain this code." },
      ],
    },
  ],
});

Implicit caching is enabled automatically for supported models — no configuration needed.

Combining with structured output…

Description from the npm listing.

  • ai
  • ai-sdk
  • alibaba
  • aliyun
  • bailian
  • dashscope
  • qwen

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

@agentor/dashscope weekly downloads on npm, last 90 days: 1,059 weekly downloads as of Oct 18, 2026, +1726% over 90 days.@agentor/dashscopeWeekly downloads on npm · Last 90 days1,059downloads / week+1726% over 90 days05001K1.5K2K2.5K3KJul 20Aug 4Aug 19Sep 3Sep 18Oct 3Oct 18downloads / weekobservedarchived (Internet Archive)no observationsJul 22, 2026 – Oct 18, 2026 · 89 observations · Updated Oc…pluginstats.com
@agentor/dashscope weekly downloads on npm, last 90 days: 1,059 weekly downloads as of Oct 18, 2026, +1726% over 90 days.

7/30/90-day growth

@agentor/dashscope weekly downloads growth on npm: -58.2% over 7 days, +353% over 30 days, +1726% over 90 days.@agentor/dashscopeWeekly downloads growth on npm1,059downloads / week now7-day growth-1,474 weekly downloads-58.2%30-day growth+825 weekly downloads+353%90-day growth+1,001 weekly downloads+1726%Growth vs. nearest observation to each baseline date · Updated Oct 18, 2026pluginstats.com
@agentor/dashscope weekly downloads growth on npm: -58.2% over 7 days, +353% over 30 days, +1726% over 90 days.

Ranking history

@agentor/dashscope npm ranking history: currently #1431 (by weekly downloads).@agentor/dashscopenpm ranking · by weekly downloads · Last 90 days#1431current rank#1380#1390#1400#1410#1420#1430#1440Jul 22Aug 6Aug 21Sep 5Sep 20Oct 5Oct 20rankOct 18, 2026 – Oct 20, 2026 · 3 observations · Updated Oct 18, 2026pluginstats.com
@agentor/dashscope npm ranking history: currently #1431 (by weekly downloads).

Listing placement

All npm2,320 listings · 116 pages · 1,162 shown · page 72, #14 (overall #1,434)
All npm: every listing in weekly downloads order

Listing placement

AI SDKs259 listings · 13 pages · page 7, #9 (overall #129)
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 @agentor/dashscope
Date (UTC)Weekly downloadsChange vs. previous
1,059+15
1,044-396
1,440-15
1,455-419
1,874-562
2,4360
2,436-97
2,533+15
2,518+343
2,175+382
1,793+365
1,428+518
910-53
963—

Similar npm AI SDKs plugins

All 20 @agentor/dashscope 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/@agentor/dashscope. First seen Oct 16, 2026; last successful collection Oct 20, 2026. See the methodology.