Overview
Qwen models accessed through Alibaba Cloud’s DashScope service, supporting Qwen-Max, Qwen-Plus, Qwen-Turbo and more.Class Signature
Configuration
Model name: ‘qwen-max’, ‘qwen-plus’, ‘qwen-turbo’, ‘qwen-vl-max’, etc.
DashScope API key (or set DASHSCOPE_API_KEY env var)
Must be ‘qwen_dashscope’
Generation parameters:
temperature(float): 0.0 - 2.0top_p(float): 0.0 - 1.0max_tokens(int): Maximum tokens to generateseed(int): Random seed
Usage Example
Available Models
- qwen-max: Most capable model
- qwen-plus: Balanced performance
- qwen-turbo: Fast responses
- qwen-vl-max: Vision-language model
- qwen3-max: Latest Qwen 3 series