mantismantis
providers

Qwen (DashScope)

Alibaba's international (Singapore) endpoint for the Qwen family — qwen-max, qwen3, and the coder line, served by the people who train them.

endpoint https://dashscope-intl.aliyuncs.com/compatible-mode/v1
env var DASHSCOPE_API_KEY (aliases: QWEN_API_KEY)
get a key Alibaba Model Studio

Get an API key

  1. Register an international Alibaba Cloud account, enable Model Studio
  2. Open the Model Studio (Bailian) console, pick an intl region
  3. Select 'API Key' in the left nav, click 'Create API Key'
  4. Set workspace and permission, confirm
  5. Copy the key once (base URL dashscope-intl.aliyuncs.com)

Create a key ↗ · Pricing ↗

New users get ~1M free tokens/model (valid ~180 days), then pay-as-you-go.

Enable

export DASHSCOPE_API_KEY=...        # shell profile — survives forever

or in the terminal — validates the key live before saving:

/enable qwen

or pick any locked 🔒 Qwen (DashScope) model in /models and paste the key inline.

Models

Starter menu (once enabled, /models fetches the provider's full live list):

  • qwen-max
  • qwen-plus
  • qwen3-235b-a22b
  • qwen3-coder-plus

Switch anytime — /model qwen-max fuzzy-matches; context carries over.

SDK

from mantis_agent import MantisAgentOptions
options = MantisAgentOptions(
    model="qwen-max",
    backend="https://dashscope-intl.aliyuncs.com/compatible-mode/v1",     # key read from $DASHSCOPE_API_KEY
)

Notes

  • QWEN_API_KEY works as an alias.
  • This is the international endpoint; mainland DashScope keys belong to a different console.