agentskit.js
Providers

bail (Qwen)

Alibaba Bailian — Qwen-2.5/3 + Qwen-VL via the DashScope OpenAI-compatibility endpoint.

import { bail } from '@agentskit/adapters'

const adapter = bail({
  apiKey: process.env.DASHSCOPE_API_KEY!,
  model: 'qwen-max',
})

qwen is exported as an alias for the same factory.

#Options

OptionTypeDefault
apiKeystringrequired
modelstringqwen-max
baseUrlstringhttps://dashscope.aliyuncs.com/compatible-mode/v1
retryRetryOptionsinherited

#Capabilities

{ streaming: true, tools: true, multiModal: true, usage: true }. The compat endpoint mirrors the OpenAI chat-completions schema, so request/response shapes match openai({ baseUrl }).

#Why bail / Qwen

  • APAC latency + data residency.
  • Qwen-VL handles image / audio / video inputs.
  • Strong Chinese-first reasoning.

#Env

VarPurpose
DASHSCOPE_API_KEYAPI key

Explore nearby

✎ Edit this page on GitHub·Found a problem? Open an issue →·How to contribute →

On this page