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
- Register an international Alibaba Cloud account, enable Model Studio
- Open the Model Studio (Bailian) console, pick an intl region
- Select 'API Key' in the left nav, click 'Create API Key'
- Set workspace and permission, confirm
- Copy the key once (base URL dashscope-intl.aliyuncs.com)
New users get ~1M free tokens/model (valid ~180 days), then pay-as-you-go.
Enable
export DASHSCOPE_API_KEY=... # shell profile — survives foreveror in the terminal — validates the key live before saving:
/enable qwenor 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-maxqwen-plusqwen3-235b-a22bqwen3-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_KEYworks as an alias.- This is the international endpoint; mainland DashScope keys belong to a different console.